public final class Normalizer2Impl extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
Normalizer2Impl.Hangul |
static class |
Normalizer2Impl.ReorderingBuffer
Writable buffer that takes care of canonical ordering.
|
static class |
Normalizer2Impl.UTF16Plus |
| Modifier and Type | Field and Description |
|---|---|
static int |
COMP_1_LAST_TUPLE |
static int |
COMP_1_TRAIL_LIMIT |
static int |
COMP_1_TRAIL_MASK |
static int |
COMP_1_TRAIL_SHIFT |
static int |
COMP_1_TRIPLE |
static int |
COMP_2_TRAIL_MASK |
static int |
COMP_2_TRAIL_SHIFT |
static int |
DELTA_SHIFT |
static int |
DELTA_TCCC_0 |
static int |
DELTA_TCCC_1 |
static int |
DELTA_TCCC_GT_1 |
static int |
DELTA_TCCC_MASK |
static int |
HAS_COMP_BOUNDARY_AFTER |
static int |
INERT |
static int |
IX_COUNT |
static int |
IX_EXTRA_DATA_OFFSET |
static int |
IX_LIMIT_NO_NO |
static int |
IX_MIN_COMP_NO_MAYBE_CP |
static int |
IX_MIN_DECOMP_NO_CP |
static int |
IX_MIN_LCCC_CP |
static int |
IX_MIN_MAYBE_YES |
static int |
IX_MIN_NO_NO
Mappings are comp-normalized.
|
static int |
IX_MIN_NO_NO_COMP_BOUNDARY_BEFORE
Mappings are not comp-normalized but have a comp boundary before.
|
static int |
IX_MIN_NO_NO_COMP_NO_MAYBE_CC
Mappings do not have a comp boundary before.
|
static int |
IX_MIN_NO_NO_EMPTY
Mappings to the empty string.
|
static int |
IX_MIN_YES_NO
Mappings & compositions in [minYesNo..minYesNoMappingsOnly[.
|
static int |
IX_MIN_YES_NO_MAPPINGS_ONLY
Mappings only in [minYesNoMappingsOnly..minNoNo[.
|
static int |
IX_NORM_TRIE_OFFSET |
static int |
IX_RESERVED3_OFFSET |
static int |
IX_SMALL_FCD_OFFSET |
static int |
IX_TOTAL_SIZE |
static int |
JAMO_L |
static int |
JAMO_VT |
static int |
MAPPING_HAS_CCC_LCCC_WORD |
static int |
MAPPING_HAS_RAW_MAPPING |
static int |
MAPPING_LENGTH_MASK |
static int |
MAX_DELTA |
static int |
MIN_NORMAL_MAYBE_YES |
static int |
MIN_YES_YES_WITH_CC |
static int |
OFFSET_SHIFT |
| Constructor and Description |
|---|
Normalizer2Impl() |
| Modifier and Type | Method and Description |
|---|---|
void |
addCanonIterPropertyStarts(UnicodeSet set) |
void |
addLcccChars(UnicodeSet set) |
void |
addPropertyStarts(UnicodeSet set) |
boolean |
compose(CharSequence s,
int src,
int limit,
boolean onlyContiguous,
boolean doCompose,
Normalizer2Impl.ReorderingBuffer buffer) |
void |
composeAndAppend(CharSequence s,
boolean doCompose,
boolean onlyContiguous,
Normalizer2Impl.ReorderingBuffer buffer) |
int |
composePair(int a,
int b) |
int |
composeQuickCheck(CharSequence s,
int src,
int limit,
boolean onlyContiguous,
boolean doSpan)
Very similar to compose(): Make the same changes in both places if relevant.
|
int |
decompose(CharSequence s,
int src,
int limit,
Normalizer2Impl.ReorderingBuffer buffer) |
void |
decompose(CharSequence s,
int src,
int limit,
StringBuilder dest,
int destLengthEstimate)
Decomposes s[src, limit[ and writes the result to dest.
|
Appendable |
decompose(CharSequence s,
StringBuilder dest) |
void |
decomposeAndAppend(CharSequence s,
boolean doDecompose,
Normalizer2Impl.ReorderingBuffer buffer) |
Normalizer2Impl |
ensureCanonIterData()
Builds the canonical-iterator data for this instance.
|
boolean |
getCanonStartSet(int c,
UnicodeSet set)
Returns true if there are characters whose decomposition starts with c.
|
int |
getCC(int norm16) |
static int |
getCCFromNormalYesOrMaybe(int norm16) |
static int |
getCCFromYesOrMaybe(int norm16) |
int |
getCCFromYesOrMaybeCP(int c) |
int |
getCompQuickCheck(int norm16) |
String |
getDecomposition(int c)
Gets the decomposition for one code point.
|
int |
getFCD16(int c)
Returns the FCD data for code point c.
|
int |
getFCD16FromNormData(int c)
Gets the FCD value from the regular normalization data.
|
int |
getNorm16(int c) |
String |
getRawDecomposition(int c)
Gets the raw decomposition for one code point.
|
int |
getRawNorm16(int c) |
boolean |
hasCompBoundaryAfter(int c,
boolean onlyContiguous) |
boolean |
hasCompBoundaryBefore(int c) |
boolean |
hasDecompBoundaryAfter(int c) |
boolean |
hasDecompBoundaryBefore(int c) |
boolean |
hasFCDBoundaryAfter(int c) |
boolean |
hasFCDBoundaryBefore(int c) |
boolean |
isAlgorithmicNoNo(int norm16) |
boolean |
isCanonSegmentStarter(int c)
Returns true if code point c starts a canonical-iterator string segment.
|
boolean |
isCompInert(int c,
boolean onlyContiguous) |
boolean |
isCompNo(int norm16) |
boolean |
isDecompInert(int c) |
boolean |
isDecompYes(int norm16) |
boolean |
isFCDInert(int c) |
Normalizer2Impl |
load(ByteBuffer bytes) |
Normalizer2Impl |
load(String name) |
int |
makeFCD(CharSequence s,
int src,
int limit,
Normalizer2Impl.ReorderingBuffer buffer) |
void |
makeFCDAndAppend(CharSequence s,
boolean doMakeFCD,
Normalizer2Impl.ReorderingBuffer buffer) |
boolean |
norm16HasDecompBoundaryAfter(int norm16) |
boolean |
norm16HasDecompBoundaryBefore(int norm16) |
boolean |
singleLeadMightHaveNonZeroFCD16(int lead)
Returns true if the single-or-lead code unit c might have non-zero FCD data.
|
public static final int MIN_YES_YES_WITH_CC
public static final int JAMO_VT
public static final int MIN_NORMAL_MAYBE_YES
public static final int JAMO_L
public static final int INERT
public static final int HAS_COMP_BOUNDARY_AFTER
public static final int OFFSET_SHIFT
public static final int DELTA_TCCC_0
public static final int DELTA_TCCC_1
public static final int DELTA_TCCC_GT_1
public static final int DELTA_TCCC_MASK
public static final int DELTA_SHIFT
public static final int MAX_DELTA
public static final int IX_NORM_TRIE_OFFSET
public static final int IX_EXTRA_DATA_OFFSET
public static final int IX_SMALL_FCD_OFFSET
public static final int IX_RESERVED3_OFFSET
public static final int IX_TOTAL_SIZE
public static final int IX_MIN_DECOMP_NO_CP
public static final int IX_MIN_COMP_NO_MAYBE_CP
public static final int IX_MIN_YES_NO
public static final int IX_MIN_NO_NO
public static final int IX_LIMIT_NO_NO
public static final int IX_MIN_MAYBE_YES
public static final int IX_MIN_YES_NO_MAPPINGS_ONLY
public static final int IX_MIN_NO_NO_COMP_BOUNDARY_BEFORE
public static final int IX_MIN_NO_NO_COMP_NO_MAYBE_CC
public static final int IX_MIN_NO_NO_EMPTY
public static final int IX_MIN_LCCC_CP
public static final int IX_COUNT
public static final int MAPPING_HAS_CCC_LCCC_WORD
public static final int MAPPING_HAS_RAW_MAPPING
public static final int MAPPING_LENGTH_MASK
public static final int COMP_1_LAST_TUPLE
public static final int COMP_1_TRIPLE
public static final int COMP_1_TRAIL_LIMIT
public static final int COMP_1_TRAIL_MASK
public static final int COMP_1_TRAIL_SHIFT
public static final int COMP_2_TRAIL_SHIFT
public static final int COMP_2_TRAIL_MASK
public Normalizer2Impl load(ByteBuffer bytes)
public Normalizer2Impl load(String name)
public void addLcccChars(UnicodeSet set)
public void addPropertyStarts(UnicodeSet set)
public void addCanonIterPropertyStarts(UnicodeSet set)
public Normalizer2Impl ensureCanonIterData()
Normalizer2Impl.isCanonSegmentStarter(int) or
Normalizer2Impl.getCanonStartSet(int, UnicodeSet) are called,
or else they crash.public int getNorm16(int c)
public int getRawNorm16(int c)
public int getCompQuickCheck(int norm16)
public boolean isAlgorithmicNoNo(int norm16)
public boolean isCompNo(int norm16)
public boolean isDecompYes(int norm16)
public int getCC(int norm16)
public static int getCCFromNormalYesOrMaybe(int norm16)
public static int getCCFromYesOrMaybe(int norm16)
public int getCCFromYesOrMaybeCP(int c)
public int getFCD16(int c)
c - A Unicode code point.public boolean singleLeadMightHaveNonZeroFCD16(int lead)
public int getFCD16FromNormData(int c)
public String getDecomposition(int c)
c - code pointpublic String getRawDecomposition(int c)
c - code pointpublic boolean isCanonSegmentStarter(int c)
Normalizer2Impl.ensureCanonIterData() must have been called before this method,
or else this method will crash.c - A Unicode code point.public boolean getCanonStartSet(int c,
UnicodeSet set)
Normalizer2Impl.ensureCanonIterData() must have been called before this method,
or else this method will crash.c - A Unicode code point.set - A UnicodeSet to receive the characters whose decompositions
start with c, if there are any.public Appendable decompose(CharSequence s, StringBuilder dest)
public void decompose(CharSequence s, int src, int limit, StringBuilder dest, int destLengthEstimate)
public int decompose(CharSequence s, int src, int limit, Normalizer2Impl.ReorderingBuffer buffer)
public void decomposeAndAppend(CharSequence s, boolean doDecompose, Normalizer2Impl.ReorderingBuffer buffer)
public boolean compose(CharSequence s, int src, int limit, boolean onlyContiguous, boolean doCompose, Normalizer2Impl.ReorderingBuffer buffer)
public int composeQuickCheck(CharSequence s, int src, int limit, boolean onlyContiguous, boolean doSpan)
public void composeAndAppend(CharSequence s, boolean doCompose, boolean onlyContiguous, Normalizer2Impl.ReorderingBuffer buffer)
public int makeFCD(CharSequence s, int src, int limit, Normalizer2Impl.ReorderingBuffer buffer)
public void makeFCDAndAppend(CharSequence s, boolean doMakeFCD, Normalizer2Impl.ReorderingBuffer buffer)
public boolean hasDecompBoundaryBefore(int c)
public boolean norm16HasDecompBoundaryBefore(int norm16)
public boolean hasDecompBoundaryAfter(int c)
public boolean norm16HasDecompBoundaryAfter(int norm16)
public boolean isDecompInert(int c)
public boolean hasCompBoundaryBefore(int c)
public boolean hasCompBoundaryAfter(int c,
boolean onlyContiguous)
public boolean isCompInert(int c,
boolean onlyContiguous)
public boolean hasFCDBoundaryBefore(int c)
public boolean hasFCDBoundaryAfter(int c)
public boolean isFCDInert(int c)
public int composePair(int a,
int b)