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 $
34 public class Soundex implements StringEncoder {
37 * An instance of Soundex using the US_ENGLISH_MAPPING mapping.
41 public static final Soundex US_ENGLISH = new Soundex();
59 * @see Soundex#Soundex(char[])
90 * The maximum length of a Soundex code - Soundex codes are only four characters by definition.
105 * @see Soundex#Soundex(char[])
106 * @see Soundex#US_ENGLISH_MAPPING
108 public Soundex() {
113 * Creates a soundex instance using the given mapping. This constructor can be used to provide an internationalized
122 public Soundex(char[] mapping) {
127 * Encodes an Object using the soundex algorithm. This method is provided in order to satisfy the requirements of
132 * @return An object (or type java.lang.String) containing the soundex code which corresponds to the String
141 throw new EncoderException("Parameter supplied to Soundex encode is not of type java.lang.String");
143 return soundex((String) pObject);
147 * Encodes a String using the soundex algorithm.
151 * @return A Soundex code corresponding to the String supplied
156 return soundex(pString);
160 * Used internally by the SoundEx algorithm.
189 * Returns the maxLength. Standard Soundex
199 * Returns the soundex mapping.
212 * @return A Soundex code.
246 * Retreives the Soundex code for a given String object.
249 * String to encode using the Soundex algorithm
250 * @return A soundex code for the String supplied
254 public String soundex(String str) {