List of utility methods to do String Accent
String | stripAccents(final String s) Remove accents return Normalizer.normalize(s, Normalizer.Form.NFD).replaceAll("[\\p{InCombiningDiacriticalMarks}]", ""); |
String | stripAccents(String input) Remove all accents of a string return Normalizer.normalize(input, Normalizer.Form.NFD).replaceAll("\\p{InCombiningDiacriticalMarks}+", ""); |
String | stripAccents(String input) Removes diacritics (~= accents) from a string. if (input == null) { return null; try { String result = null; if (java6Available) { result = removeAccentsJava6(input); } else if (sunAvailable) { ... |
String | stripAccents(String input) strip Accents if (input == null) { return null; final String decomposed = Normalizer.normalize(input, Normalizer.Form.NFD); String stripped = findAccentsPattern.matcher(decomposed).replaceAll(""); for (Map.Entry<Character, Character> e : visualEquivalents.entrySet()) { stripped = stripped.replace(e.getKey(), e.getValue()); return stripped; |
String | stripAccents(String v) strip Accents if (v != null) { String s = Normalizer.normalize(v, Normalizer.Form.NFD); return s.replaceAll("\\p{M}", ""); } else { return null; |
String | stripAccentsToLowerCase(String str) Remove all accents in the string provided. return stripAccents(str).toLowerCase();
|
String | toLatinUnaccented(String s) Converts a string with cyrillic text to unaccented latin. return removeAccents(toLatin(s));
|
String | toUnaccented(String s) Normalize string by removing diacritical marks. return COMBINING_DIACRIT_PAT.matcher(Normalizer.normalize(s, Form.NFD)).replaceAll(""); |