|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.commons.codec.language.SoundexUtils
final class SoundexUtils
Utility methods for Soundex and RefinedSoundex classes.
| Constructor Summary | |
|---|---|
SoundexUtils()
|
|
| Method Summary | |
|---|---|
(package private) static java.lang.String |
clean(java.lang.String str)
Cleans up the input string before Soundex processing by only returning upper case letters. |
(package private) static int |
difference(StringEncoder encoder,
java.lang.String s1,
java.lang.String s2)
Encodes the Strings and returns the number of characters in the two encoded Strings that are the same. |
(package private) static int |
differenceEncoded(java.lang.String es1,
java.lang.String es2)
Returns the number of characters in the two Soundex encoded Strings that are the same. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
SoundexUtils()
| Method Detail |
|---|
static java.lang.String clean(java.lang.String str)
str - The String to clean.
static int difference(StringEncoder encoder,
java.lang.String s1,
java.lang.String s2)
throws EncoderException
encoder - The encoder to use to encode the Strings.s1 - A String that will be encoded and compared.s2 - A String that will be encoded and compared.
EncoderException - if an error occurs encoding one of the stringsdifferenceEncoded(String,String),
MS T-SQL DIFFERENCE
static int differenceEncoded(java.lang.String es1,
java.lang.String es2)
es1 - An encoded String.es2 - An encoded String.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||