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

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

Go to download

docx4j is a library which helps you to work with the Office Open XML file format as used in docx documents, pptx presentations, and xlsx spreadsheets.

There is a newer version: 6.1.2
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