Class Norm2AllModes.DecomposeNormalizer2
java.lang.Object
org.graalvm.shadowed.com.ibm.icu.text.Normalizer2
org.graalvm.shadowed.com.ibm.icu.impl.Norm2AllModes.Normalizer2WithImpl
org.graalvm.shadowed.com.ibm.icu.impl.Norm2AllModes.DecomposeNormalizer2
- Enclosing class:
Norm2AllModes
public static final class Norm2AllModes.DecomposeNormalizer2
extends Norm2AllModes.Normalizer2WithImpl
-
Nested Class Summary
Nested classes/interfaces inherited from class org.graalvm.shadowed.com.ibm.icu.text.Normalizer2
Normalizer2.Mode -
Field Summary
Fields inherited from class org.graalvm.shadowed.com.ibm.icu.impl.Norm2AllModes.Normalizer2WithImpl
impl -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintgetQuickCheck(int c) booleanhasBoundaryAfter(int c) Tests if the character always has a normalization boundary after it, regardless of context.booleanhasBoundaryBefore(int c) Tests if the character always has a normalization boundary before it, regardless of context.booleanisInert(int c) Tests if the character is normalization-inert.protected voidnormalize(CharSequence src, Normalizer2Impl.ReorderingBuffer buffer) protected voidnormalizeAndAppend(CharSequence src, boolean doNormalize, Normalizer2Impl.ReorderingBuffer buffer) intReturns the end of the normalized substring of the input string.Methods inherited from class org.graalvm.shadowed.com.ibm.icu.impl.Norm2AllModes.Normalizer2WithImpl
append, composePair, getCombiningClass, getDecomposition, getRawDecomposition, isNormalized, normalize, normalize, normalizeSecondAndAppend, normalizeSecondAndAppend, quickCheckMethods inherited from class org.graalvm.shadowed.com.ibm.icu.text.Normalizer2
getInstance, getNFCInstance, getNFDInstance, getNFKCCasefoldInstance, getNFKCInstance, getNFKCSimpleCasefoldInstance, getNFKDInstance, normalize
-
Constructor Details
-
DecomposeNormalizer2
-
-
Method Details
-
normalize
- Specified by:
normalizein classNorm2AllModes.Normalizer2WithImpl
-
normalizeAndAppend
protected void normalizeAndAppend(CharSequence src, boolean doNormalize, Normalizer2Impl.ReorderingBuffer buffer) - Specified by:
normalizeAndAppendin classNorm2AllModes.Normalizer2WithImpl
-
spanQuickCheckYes
Description copied from class:Normalizer2Returns the end of the normalized substring of the input string. In other words, withend=spanQuickCheckYes(s);the substrings.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.
- Specified by:
spanQuickCheckYesin classNormalizer2- Parameters:
s- input string- Returns:
- "yes" span end index
-
getQuickCheck
public int getQuickCheck(int c) - Specified by:
getQuickCheckin classNorm2AllModes.Normalizer2WithImpl
-
hasBoundaryBefore
public boolean hasBoundaryBefore(int c) Description copied from class:Normalizer2Tests if the character always has a normalization boundary before it, regardless of context. If true, then the character does not normalization-interact with preceding characters. In other words, a string containing this character can be normalized by processing portions before this character and starting from this character independently. This is used for iterative normalization. See the class documentation for details.- Specified by:
hasBoundaryBeforein classNormalizer2- Parameters:
c- character to test- Returns:
- true if c has a normalization boundary before it
-
hasBoundaryAfter
public boolean hasBoundaryAfter(int c) Description copied from class:Normalizer2Tests if the character always has a normalization boundary after it, regardless of context. If true, then the character does not normalization-interact with following characters. In other words, a string containing this character can be normalized by processing portions up to this character and after this character independently. This is used for iterative normalization. See the class documentation for details.Note that this operation may be significantly slower than hasBoundaryBefore().
- Specified by:
hasBoundaryAfterin classNormalizer2- Parameters:
c- character to test- Returns:
- true if c has a normalization boundary after it
-
isInert
public boolean isInert(int c) Description copied from class:Normalizer2Tests if the character is normalization-inert. If true, then the character does not change, nor normalization-interact with preceding or following characters. In other words, a string containing this character can be normalized by processing portions before this character and after this character independently. This is used for iterative normalization. See the class documentation for details.Note that this operation may be significantly slower than hasBoundaryBefore().
- Specified by:
isInertin classNormalizer2- Parameters:
c- character to test- Returns:
- true if c is normalization-inert
-