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.

Nested Class Summary

enum Normalizer.Form The normalization forms supported by the Normalizer. 

Public Method Summary

static boolean
isNormalized(CharSequence src, Normalizer.Form form)
Check whether the given character sequence src is normalized according to the normalization method form.
static String
normalize(CharSequence src, Normalizer.Form form)
Normalize the character sequence src according to the normalization method form.

Inherited Method Summary

Public Methods

public static boolean isNormalized (CharSequence src, Normalizer.Form form)

Check whether the given character sequence src is normalized according to the normalization method form.

Parameters
src character sequence to check
form normalization form to check against
Returns
  • true if normalized according to form

public static String normalize (CharSequence src, Normalizer.Form form)

Normalize the character sequence src according to the normalization method form.

Parameters
src character sequence to read for normalization
form normalization form
Returns
  • string normalized according to form