org.apache.lucene.util
Class StringHelper
java.lang.Object
org.apache.lucene.util.StringHelper
public abstract class StringHelper
extends java.lang.Object
Methods for manipulating strings.
$Id: StringHelper.java,v 1.2 2004/03/25 13:39:59 otis Exp $
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.
|
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.
s1
- The first string to compares2
- The second string to compare
- The first position where the two strings differ.
Copyright © 2000-2006 Apache Software Foundation. All Rights Reserved.