org.apache.lucene.util
Class StringHelper
- java.lang.Object
-
- org.apache.lucene.util.StringHelper
-
public abstract class StringHelper extends java.lang.ObjectMethods for manipulating strings. $Id: StringHelper.java 472959 2006-11-09 16:21:50Z yonik $
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method and Description static intstringDifference(java.lang.String s1, java.lang.String s2)Compares two strings, character by character, and returns the first position where the two strings differ from one another.
-
-
-
Method Detail
-
stringDifference
public static final int stringDifference(java.lang.String s1, java.lang.String s2)Compares two strings, character by character, and returns the first position where the two strings differ from one another.- Parameters:
s1- The first string to compares2- The second string to compare- Returns:
- The first position where the two strings differ.
-
-
DataMelt 3.0 © DataMelt by jWork.ORG