Please note that the contents of this offline web site may be out of date. To access the most recent documentation visit the online version .
Note that links that point to online resources are green in color and will open in a new window.
We would love it if you could give us feedback about this material by filling this form (You have to be online to fill it)
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 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)

Added in 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