public static final class Norm2AllModes.FCDNormalizer2 extends Norm2AllModes.Normalizer2WithImpl
Normalizer2.Modeimpl| Constructor and Description |
|---|
FCDNormalizer2(Normalizer2Impl ni) |
| Modifier and Type | Method and Description |
|---|---|
int |
getQuickCheck(int c) |
boolean |
hasBoundaryAfter(int c)
Tests if the character always has a normalization boundary after it,
regardless of context.
|
boolean |
hasBoundaryBefore(int c)
Tests if the character always has a normalization boundary before it,
regardless of context.
|
boolean |
isInert(int c)
Tests if the character is normalization-inert.
|
protected void |
normalize(CharSequence src,
Normalizer2Impl.ReorderingBuffer buffer) |
protected void |
normalizeAndAppend(CharSequence src,
boolean doNormalize,
Normalizer2Impl.ReorderingBuffer buffer) |
int |
spanQuickCheckYes(CharSequence s)
Returns the end of the normalized substring of the input string.
|
append, composePair, getCombiningClass, getDecomposition, getRawDecomposition, isNormalized, normalize, normalize, normalizeSecondAndAppend, normalizeSecondAndAppend, quickCheckgetInstance, getNFCInstance, getNFDInstance, getNFKCCasefoldInstance, getNFKCInstance, getNFKCSimpleCasefoldInstance, getNFKDInstance, normalizepublic FCDNormalizer2(Normalizer2Impl ni)
protected void normalize(CharSequence src, Normalizer2Impl.ReorderingBuffer buffer)
normalize in class Norm2AllModes.Normalizer2WithImplprotected void normalizeAndAppend(CharSequence src, boolean doNormalize, Normalizer2Impl.ReorderingBuffer buffer)
normalizeAndAppend in class Norm2AllModes.Normalizer2WithImplpublic int spanQuickCheckYes(CharSequence s)
Normalizer2end=spanQuickCheckYes(s);
the substring s.subSequence(0, end)
will pass the quick check with a "yes" result.
The returned end index is usually one or more characters before the "no" or "maybe" character: The end index is at a normalization boundary. (See the class documentation for more about normalization boundaries.)
When the goal is a normalized string and most input strings are expected to be normalized already, then call this method, and if it returns a prefix shorter than the input string, copy that prefix and use normalizeSecondAndAppend() for the remainder.
spanQuickCheckYes in class Normalizer2s - input stringpublic int getQuickCheck(int c)
getQuickCheck in class Norm2AllModes.Normalizer2WithImplpublic boolean hasBoundaryBefore(int c)
Normalizer2hasBoundaryBefore in class Normalizer2c - character to testpublic boolean hasBoundaryAfter(int c)
Normalizer2Note that this operation may be significantly slower than hasBoundaryBefore().
hasBoundaryAfter in class Normalizer2c - character to testpublic boolean isInert(int c)
Normalizer2Note that this operation may be significantly slower than hasBoundaryBefore().
isInert in class Normalizer2c - character to test