|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.sf.saxon.codenorm.NormalizerData
public class NormalizerData
Accesses the Normalization Data used for Forms C and D.
Copyright ? 1998-1999 Unicode, Inc. All Rights Reserved.
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 | |
---|---|
(package private) static java.lang.String |
copyright
|
static int |
NOT_COMPOSITE
Constant for use in getPairwiseComposition |
Constructor Summary | |
---|---|
NormalizerData(IntToIntHashMap canonicalClass,
IntHashMap decompose,
IntToIntHashMap compose,
java.util.BitSet isCompatibility,
java.util.BitSet isExcluded)
Only accessed by NormalizerBuilder. |
Method Summary | |
---|---|
int |
getCanonicalClass(int ch)
Gets the combining class of a character from the Unicode Character Database. |
(package private) boolean |
getExcluded(char ch)
Just accessible for testing. |
char |
getPairwiseComposition(int first,
int second)
Returns the composite of the two characters. |
(package private) java.lang.String |
getRawDecompositionMapping(char ch)
Just accessible for testing. |
void |
getRecursiveDecomposition(boolean canonical,
int ch,
java.lang.StringBuffer buffer)
Gets recursive decomposition of a character from the Unicode Character Database. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
static final java.lang.String copyright
public static final int NOT_COMPOSITE
Constructor Detail |
---|
NormalizerData(IntToIntHashMap canonicalClass, IntHashMap decompose, IntToIntHashMap compose, java.util.BitSet isCompatibility, java.util.BitSet isExcluded)
Method Detail |
---|
public int getCanonicalClass(int ch)
ch
- the source character
public char getPairwiseComposition(int first, int second)
first
- first character (e.g. 'c')second
- second character (e.g. '?' cedilla)
public void getRecursiveDecomposition(boolean canonical, int ch, java.lang.StringBuffer buffer)
canonical
- If true
bit is on in this byte, then selects the recursive
canonical decomposition, otherwise selects
the recursive compatibility and canonical decomposition.ch
- the source characterbuffer
- buffer to be filled with the decompositionboolean 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 |