public class Normalizer
extends java.lang.Object
Modifier and Type | Field | Description |
---|---|---|
static byte |
C |
Normalization Form Selector
|
(package private) static byte |
COMPATIBILITY_MASK |
Masks for the form selector
|
(package private) static byte |
COMPOSITION_MASK |
Masks for the form selector
|
static byte |
D |
Normalization Form Selector
|
static byte |
KC |
Normalization Form Selector
|
static byte |
KD |
Normalization Form Selector
|
Constructor | Description |
---|---|
Normalizer(byte form) |
Create a normalizer for a given form.
|
Modifier and Type | Method | Description |
---|---|---|
(package private) boolean |
getExcluded(char ch) |
Just accessible for testing.
|
(package private) java.lang.String |
getRawDecompositionMapping(char ch) |
Just accessible for testing.
|
java.lang.CharSequence |
normalize(java.lang.CharSequence source) |
Normalizes text according to the chosen form
|
java.lang.StringBuffer |
normalize(java.lang.CharSequence source,
java.lang.StringBuffer target) |
Normalizes text according to the chosen form,
replacing contents of the target buffer.
|
static final byte COMPATIBILITY_MASK
static final byte COMPOSITION_MASK
public static final byte D
public static final byte C
public static final byte KD
public static final byte KC
public java.lang.StringBuffer normalize(java.lang.CharSequence source, java.lang.StringBuffer target)
source
- the original text, unnormalizedtarget
- the resulting normalized textpublic java.lang.CharSequence normalize(java.lang.CharSequence source)
source
- the original text, unnormalizedboolean getExcluded(char ch)
java.lang.String getRawDecompositionMapping(char ch)