net.sf.saxon.codenorm
public class Normalizer extends Object
| Field Summary | |
|---|---|
| static byte | C
Normalization Form Selector |
| static byte | COMPATIBILITY_MASK
Masks for the form selector |
| 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 |
| static byte | NO_ACTION
Normalization Form Selector |
| Constructor Summary | |
|---|---|
| Normalizer(byte form)
Create a normalizer for a given form. | |
| Normalizer(CharSequence formCS)
Create a normalizer for a given form, expressed as a character string | |
| Method Summary | |
|---|---|
| boolean | getExcluded(char ch)
Just accessible for testing. |
| String | getRawDecompositionMapping(char ch)
Just accessible for testing. |
| CharSequence | normalize(CharSequence source)
Normalizes text according to the chosen form |
Parameters: form the normalization form required: for example C, D
Parameters: formCS the normalization form required: for example "NFC" or "NFD"
Parameters: ch a character
Returns: true if the character is an excluded character
Parameters: ch a character
Returns: the raw decomposition mapping of the character
Parameters: source the original text, unnormalized
Returns: target the resulting normalized text