Android APIs
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)

Added in API level 9

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

Parameters
src CharSequence: character sequence to check
form Normalizer.Form: normalization form to check against
Returns
boolean true if normalized according to form

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

Added in API level 9

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

Parameters
src CharSequence: character sequence to read for normalization
form Normalizer.Form: normalization form
Returns
String string normalized according to form