Home | History | Annotate | Download | only in language

Lines Matching defs:soundex

23  * Encodes a string into a Soundex value. Soundex is an encoding used to relate similar names, but can also be used as a
27 * @version $Id: Soundex.java,v 1.26 2004/07/07 23:15:24 ggregory Exp $
29 public class Soundex implements StringEncoder {
32 * An instance of Soundex using the US_ENGLISH_MAPPING mapping.
36 public static final Soundex US_ENGLISH = new Soundex();
54 * @see Soundex#Soundex(char[])
85 * The maximum length of a Soundex code - Soundex codes are only four characters by definition.
100 * @see Soundex#Soundex(char[])
101 * @see Soundex#US_ENGLISH_MAPPING
103 public Soundex() {
108 * Creates a soundex instance using the given mapping. This constructor can be used to provide an internationalized
117 public Soundex(char[] mapping) {
122 * Encodes an Object using the soundex algorithm. This method is provided in order to satisfy the requirements of
127 * @return An object (or type java.lang.String) containing the soundex code which corresponds to the String
136 throw new EncoderException("Parameter supplied to Soundex encode is not of type java.lang.String");
138 return soundex((String) pObject);
142 * Encodes a String using the soundex algorithm.
146 * @return A Soundex code corresponding to the String supplied
151 return soundex(pString);
155 * Used internally by the SoundEx algorithm.
184 * Returns the maxLength. Standard Soundex
194 * Returns the soundex mapping.
207 * @return A Soundex code.
241 * Retreives the Soundex code for a given String object.
244 * String to encode using the Soundex algorithm
245 * @return A soundex code for the String supplied
249 public String soundex(String str) {