public final class

Normalizer

extends Object
java.lang.Object
   ↳ java.text.Normalizer

Class Overview

Provides normalization functions according to Unicode Standard Annex #15: Unicode Normalization Forms. Normalization can decompose and compose characters for equivalency checking.

Summary

Nested Classes
enum Normalizer.Form The normalization forms supported by the Normalizer. 
Public Methods
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.
[Expand]
Inherited Methods
From class java.lang.Object

Public Methods

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

Since: API Level 9

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)

Since: API Level 9

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