public static final class Norm2AllModes.ComposeNormalizer2 extends Norm2AllModes.Normalizer2WithImpl
Normalizer2.Modeimpl| Constructor and Description |
|---|
ComposeNormalizer2(Normalizer2Impl ni,
boolean fcc) |
| 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.
|
boolean |
isNormalized(CharSequence s)
Tests if the string is normalized.
|
protected void |
normalize(CharSequence src,
Normalizer2Impl.ReorderingBuffer buffer) |
protected void |
normalizeAndAppend(CharSequence src,
boolean doNormalize,
Normalizer2Impl.ReorderingBuffer buffer) |
Normalizer.QuickCheckResult |
quickCheck(CharSequence s)
Tests if the string is normalized.
|
int |
spanQuickCheckYes(CharSequence s)
Returns the end of the normalized substring of the input string.
|
append, composePair, getCombiningClass, getDecomposition, getRawDecomposition, normalize, normalize, normalizeSecondAndAppend, normalizeSecondAndAppendgetInstance, getNFCInstance, getNFDInstance, getNFKCCasefoldInstance, getNFKCInstance, getNFKDInstance, normalizepublic ComposeNormalizer2(Normalizer2Impl ni, boolean fcc)
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 boolean isNormalized(CharSequence s)
Normalizer2isNormalized in class Norm2AllModes.Normalizer2WithImpls - input stringpublic Normalizer.QuickCheckResult quickCheck(CharSequence s)
Normalizer2quickCheck in class Norm2AllModes.Normalizer2WithImpls - input stringpublic 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