public static String normalise ( String s ) { if ( sDiacritics == null ) { sDiacritics = Pattern . compile ( "\\p{InCombiningDiacriticalMarks}+" ) ; } return sDiacritics . matcher ( Normalizer . normalize ( s , NFD ) ) . replaceAll ( "" ) . toUpperCase ( US ) ; }
Remove diacritics from the string and convert it to upper case .