|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.sf.saxon.codenorm.Normalizer
public class Normalizer
Implements Unicode Normalization Forms C, D, KC, KD.
Copyright (c) 1991-2005 Unicode, Inc.
For terms of use, see http://www.unicode.org/terms_of_use.html
For documentation, see UAX#15.
The Unicode Consortium makes no expressed or implied warranty of any
kind, and assumes no liability for errors or omissions.
No liability is assumed for incidental and consequential damages
in connection with or arising out of the use of the information here.
Field Summary | |
---|---|
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 Summary | |
---|---|
Normalizer(byte form)
Create a normalizer for a given form. |
Method Summary | |
---|---|
(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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
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
Constructor Detail |
---|
public Normalizer(byte form)
Method Detail |
---|
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, unnormalized
boolean getExcluded(char ch)
java.lang.String getRawDecompositionMapping(char ch)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |