gate.creole.annic.apache.lucene.util
Class StringHelper
java.lang.Object
gate.creole.annic.apache.lucene.util.StringHelper
public abstract class StringHelper
- extends Object
Methods for manipulating strings.
$Id: StringHelper.java 529 2004-10-05 11:55:26Z niraj $
Method Summary |
static int |
stringDifference(String s1,
String s2)
Compares two strings, character by character, and returns the
first position where the two strings differ from one another. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
stringDifference
public static final int stringDifference(String s1,
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.