public class NormalizerData extends Object
| Modifier and Type | Field and Description |
|---|---|
(package private) static String |
copyright |
static int |
NOT_COMPOSITE
Constant for use in getPairwiseComposition
|
| Constructor and Description |
|---|
NormalizerData(IntToIntHashMap canonicalClass,
IntHashMap decompose,
IntToIntHashMap compose,
BitSet isCompatibility,
BitSet isExcluded)
Only accessed by NormalizerBuilder.
|
| Modifier and Type | Method and Description |
|---|---|
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) String |
getRawDecompositionMapping(char ch)
Just accessible for testing.
|
void |
getRecursiveDecomposition(boolean canonical,
int ch,
StringBuffer buffer)
Gets recursive decomposition of a character from the
Unicode Character Database.
|
static final String copyright
public static final int NOT_COMPOSITE
NormalizerData(IntToIntHashMap canonicalClass, IntHashMap decompose, IntToIntHashMap compose, BitSet isCompatibility, BitSet isExcluded)
public int getCanonicalClass(int ch)
ch - the source characterpublic 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,
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)
String getRawDecompositionMapping(char ch)