String function ( final String arg0 ) { String loc0 = arg0 . toUpperCase ( ) ; for ( final String loc1 : DOUBLE_CONSONANT ) { if ( loc0 . contains ( loc1 ) ) { final String loc2 = loc1 . substring ( 0 , 1 ) ; loc0 = loc0 . replace ( loc1 , loc2 ) ; } } return loc0 ; }
replaces any double consonant pair with the single letter equivalent . api usage consider this method private , it is package protected for unit testing only . concode_field_sep int EIGHT concode_elem_sep String PLAIN_ASCII concode_elem_sep int ONE concode_elem_sep int SEVEN concode_elem_sep int TWO concode_elem_sep int FOUR concode_elem_sep String[] DOUBLE_CONSONANT concode_elem_sep int FIVE concode_elem_sep String SPACE concode_elem_sep String EMPTY concode_elem_sep int SIX concode_elem_sep int TWELVE concode_elem_sep int ELEVEN concode_elem_sep int THREE concode_elem_sep String UNICODE concode_field_sep String cleanName concode_elem_sep Object encode concode_elem_sep String encode concode_elem_sep boolean isVowel concode_elem_sep String removeAccents concode_elem_sep int leftToRightThenRightToLeftProcessing concode_elem_sep String getFirst3Last3 concode_elem_sep boolean isEncodeEquals concode_elem_sep int getMinRating concode_elem_sep String removeVowels