Package java.text
Class Normalizer
java.lang.Object
java.text.Normalizer
public final class Normalizer extends Object
Provides normalization functions according to
Unicode Standard Annex #15:
Unicode Normalization Forms. Normalization can decompose and compose
characters for equivalency checking.
- Since:
- 1.6
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classNormalizer.FormThe normalization forms supported by the Normalizer. -
Method Summary
Modifier and Type Method Description static booleanisNormalized(CharSequence src, Normalizer.Form form)Check whether the given character sequencesrcis normalized according to the normalization methodform.static Stringnormalize(CharSequence src, Normalizer.Form form)Normalize the character sequencesrcaccording to the normalization methodform.
-
Method Details
-
isNormalized
Check whether the given character sequencesrcis normalized according to the normalization methodform.- Parameters:
src- character sequence to checkform- normalization form to check against- Returns:
- true if normalized according to
form
-
normalize
Normalize the character sequencesrcaccording to the normalization methodform.- Parameters:
src- character sequence to read for normalizationform- normalization form- Returns:
- string normalized according to
form
-