All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.eclipse.compare.StringComparator Maven / Gradle / Ivy

There is a newer version: 11.5.0
Show newest version

package org.eclipse.compare;

import java.util.ArrayList;
import java.util.List;

import org.eclipse.compare.internal.LCSSettings;
import org.eclipse.compare.rangedifferencer.IRangeComparator;
import org.eclipse.compare.rangedifferencer.RangeDifference;
import org.eclipse.compare.rangedifferencer.RangeDifferencer;

/**
 * A comparator that compares strings.
 */
public class StringComparator implements IRangeComparator {

    private List leafs = new ArrayList();

    public StringComparator(String paragraphContent) {
    	
    	String[] result = paragraphContent.split("\\s");
        for (int x=0; x




© 2015 - 2024 Weber Informatics LLC | Privacy Policy