File tree Expand file tree Collapse file tree
src/java/org/apache/commons/codec/language Expand file tree Collapse file tree Original file line number Diff line number Diff line change 2828 * <i>Computer Language</i> of Dec. 1990, p 39
2929 *
3030 * @author Apache Software Foundation
31- * @version $Id: Metaphone.java,v 1.16 2004/04/18 21:33:38 tobrien Exp $
31+ * @version $Id: Metaphone.java,v 1.17 2004/05/24 00:19:13 ggregory Exp $
3232 */
3333public class Metaphone implements StringEncoder {
3434
@@ -81,7 +81,6 @@ public String metaphone(String txt) {
8181
8282 char [] inwd = txt .toUpperCase ().toCharArray () ;
8383
84- String tmpS ;
8584 StringBuffer local = new StringBuffer (40 ); // manipulate
8685 StringBuffer code = new StringBuffer (10 ) ; // output
8786 // handle initial 2 characters exceptions
@@ -153,7 +152,6 @@ public String metaphone(String txt) {
153152 (this .frontv .indexOf (local .charAt (n + 1 )) >= 0 ) ) {
154153 break ;
155154 }
156- tmpS = local .toString ();
157155 if (regionMatch (local , n , "CIA" )) { // "CIA" -> X
158156 code .append ('X' );
159157 break ;
@@ -199,7 +197,6 @@ public String metaphone(String txt) {
199197 !isVowel (local ,n +2 )) {
200198 break ;
201199 }
202- tmpS = local .toString ();
203200 if ((n > 0 ) &&
204201 ( regionMatch (local , n , "GN" ) ||
205202 regionMatch (local , n , "GNED" ) ) ) {
You can’t perform that action at this time.
0 commit comments