Skip to content

Most visited

Recently visited

navigation
Added in API level 9

Normalizer

public final class Normalizer
extends Object

java.lang.Object
   ↳ java.text.Normalizer


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.

Inherited methods

From class java.lang.Object

Public methods

isNormalized

Added in API level 9
boolean isNormalized (CharSequence src, 
                Normalizer.Form form)

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

normalize

Added in API level 9
String normalize (CharSequence src, 
                Normalizer.Form form)

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
This site uses cookies to store your preferences for site-specific language and display options.

Hooray!

This class requires API level or higher

This doc is hidden because your selected API level for the documentation is . You can change the documentation API level with the selector above the left navigation.

For more information about specifying the API level your app requires, read Supporting Different Platform Versions.