Class UnicodeUtils
java.lang.Object
org.w3c.epubcheck.util.text.UnicodeUtils
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final com.ibm.icu.text.CaseMap.Foldprivate static final com.ibm.icu.text.Normalizer2 -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic StringcanonicalCaseFold(String string) Applies Unicode Canonical Case Fold Normalization as defined in https://www.w3.org/TR/charmod-norm/#CanonicalFoldNormalizationStep This applies, in sequence: - canonical decomposition (NFD) - case folding Note that the result is **not** recomposed (NFC), i.e.
-
Field Details
-
NFD_NORMALIZER
private static final com.ibm.icu.text.Normalizer2 NFD_NORMALIZER -
CASE_FOLDER
private static final com.ibm.icu.text.CaseMap.Fold CASE_FOLDER
-
-
Constructor Details
-
UnicodeUtils
private UnicodeUtils()
-
-
Method Details
-
canonicalCaseFold
Applies Unicode Canonical Case Fold Normalization as defined in https://www.w3.org/TR/charmod-norm/#CanonicalFoldNormalizationStep This applies, in sequence: - canonical decomposition (NFD) - case folding Note that the result is **not** recomposed (NFC), i.e. the optional post-folding NFC normalization is not applied. In other words, the result is suitable for string comparison for case-insensitive string comparison, but not for display.- Parameters:
string- the string to normalize- Returns:
- the string normalized by applying NFD then case folding
-