| Modifier and Type | Class and Description |
|---|---|
| public static class | |
| public static class | |
| private static class | |
| private static class | |
| public static class | |
| private static class | |
| public abstract static class |
| Modifier and Type | Field and Description |
|---|---|
| public final Norm2AllModes. | |
| public final Norm2AllModes. | |
| public final NormalizerImpl | |
| public static final Norm2AllModes. |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| private static Norm2AllModes | |
| public static Norm2AllModes | |
| public static Norm2AllModes |
| comp | back to summary |
|---|---|
| public final Norm2AllModes. | |
| decomp | back to summary |
|---|---|
| public final Norm2AllModes. | |
| impl | back to summary |
|---|---|
| public final NormalizerImpl impl | |
| NOOP_NORMALIZER2 | back to summary |
|---|---|
| public static final Norm2AllModes. | |
| Norm2AllModes | back to summary |
|---|---|
| private Norm2AllModes(NormalizerImpl ni) | |
| getInstanceFromSingleton | back to summary |
|---|---|
| private static Norm2AllModes getInstanceFromSingleton(Norm2AllModes. | |
| getNFCInstance | back to summary |
|---|---|
| public static Norm2AllModes getNFCInstance() | |
| getNFKCInstance | back to summary |
|---|---|
| public static Norm2AllModes getNFKCInstance() | |
| Modifier and Type | Field and Description |
|---|---|
| private final boolean |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public boolean | hasBoundaryBefore(int c)
Implements abstract jdk. Tests if the character always has a normalization boundary before it, regardless of context. |
| public boolean | isNormalized(CharSequence s)
Overrides jdk. Tests if the string is normalized. |
| protected void | normalize(CharSequence src, NormalizerImpl.
Implements abstract jdk.
|
| protected void | normalizeAndAppend(CharSequence src, boolean doNormalize, NormalizerImpl.
Implements abstract jdk.
|
| public int | spanQuickCheckYes(CharSequence s)
Implements abstract jdk. Returns the end of the normalized substring of the input string. |
| onlyContiguous | back to summary |
|---|---|
| private final boolean onlyContiguous | |
| ComposeNormalizer2 | back to summary |
|---|---|
| public ComposeNormalizer2(NormalizerImpl ni, boolean fcc) | |
| hasBoundaryBefore | back to summary |
|---|---|
| public boolean hasBoundaryBefore(int c) Implements abstract jdk. Doc from jdk. Tests 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.
| |
| isNormalized | back to summary |
|---|---|
| public boolean isNormalized(CharSequence s) Overrides jdk. Doc from jdk. Tests if the string is normalized. Internally, in cases where the quickCheck() method would return "maybe" (which is only possible for the two COMPOSE modes) this method resolves to "yes" or "no" to provide a definitive result, at the cost of doing more work in those cases.
| |
| normalize | back to summary |
|---|---|
| protected void normalize(CharSequence src, NormalizerImpl. Implements abstract jdk.
| |
| normalizeAndAppend | back to summary |
|---|---|
| protected void normalizeAndAppend(CharSequence src, boolean doNormalize, NormalizerImpl. Implements abstract jdk.
| |
| spanQuickCheckYes | back to summary |
|---|---|
| public int spanQuickCheckYes(CharSequence s) Implements abstract jdk. Doc from jdk. Returns the end of the normalized substring of the input string.
In other words, with 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.
| |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public boolean | hasBoundaryBefore(int c)
Implements abstract jdk. Tests if the character always has a normalization boundary before it, regardless of context. |
| protected void | normalize(CharSequence src, NormalizerImpl.
Implements abstract jdk.
|
| protected void | normalizeAndAppend(CharSequence src, boolean doNormalize, NormalizerImpl.
Implements abstract jdk.
|
| public int | spanQuickCheckYes(CharSequence s)
Implements abstract jdk. Returns the end of the normalized substring of the input string. |
| DecomposeNormalizer2 | back to summary |
|---|---|
| public DecomposeNormalizer2(NormalizerImpl ni) | |
| hasBoundaryBefore | back to summary |
|---|---|
| public boolean hasBoundaryBefore(int c) Implements abstract jdk. Doc from jdk. Tests 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.
| |
| normalize | back to summary |
|---|---|
| protected void normalize(CharSequence src, NormalizerImpl. Implements abstract jdk.
| |
| normalizeAndAppend | back to summary |
|---|---|
| protected void normalizeAndAppend(CharSequence src, boolean doNormalize, NormalizerImpl. Implements abstract jdk.
| |
| spanQuickCheckYes | back to summary |
|---|---|
| public int spanQuickCheckYes(CharSequence s) Implements abstract jdk. Doc from jdk. Returns the end of the normalized substring of the input string.
In other words, with 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.
| |
| Modifier and Type | Field and Description |
|---|---|
| private static final Norm2AllModes. |
| Access | Constructor and Description |
|---|---|
| private |
| INSTANCE | back to summary |
|---|---|
| private static final Norm2AllModes. | |
| NFCSingleton | back to summary |
|---|---|
| private NFCSingleton() | |
| Modifier and Type | Field and Description |
|---|---|
| private static final Norm2AllModes. |
| Access | Constructor and Description |
|---|---|
| private |
| INSTANCE | back to summary |
|---|---|
| private static final Norm2AllModes. | |
| NFKCSingleton | back to summary |
|---|---|
| private NFKCSingleton() | |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public StringBuilder | append(StringBuilder first, CharSequence second)
Implements abstract jdk. Appends the second string to the first string (merging them at the boundary) and returns the first string. |
| public String | getDecomposition(int c)
Implements abstract jdk. Gets the decomposition mapping of c. |
| public boolean | hasBoundaryBefore(int c)
Implements abstract jdk. Tests if the character always has a normalization boundary before it, regardless of context. |
| public boolean | isNormalized(CharSequence s)
Implements abstract jdk. Tests if the string is normalized. |
| public StringBuilder | normalize(CharSequence src, StringBuilder dest)
Implements abstract jdk. Writes the normalized form of the source string to the destination string (replacing its contents) and returns the destination string. |
| public Appendable | normalize(CharSequence src, Appendable dest)
Implements abstract jdk. Writes the normalized form of the source string to the destination Appendable and returns the destination Appendable. |
| public StringBuilder | normalizeSecondAndAppend(StringBuilder first, CharSequence second)
Implements abstract jdk. Appends the normalized form of the second string to the first string (merging them at the boundary) and returns the first string. |
| public int | spanQuickCheckYes(CharSequence s)
Implements abstract jdk. Returns the end of the normalized substring of the input string. |
| NoopNormalizer2 | back to summary |
|---|---|
| public NoopNormalizer2() | |
| append | back to summary |
|---|---|
| public StringBuilder append(StringBuilder first, CharSequence second) Implements abstract jdk. Doc from jdk. Appends the second string to the first string (merging them at the boundary) and returns the first string. The result is normalized if both the strings were normalized. The first and second strings must be different objects.
| |
| getDecomposition | back to summary |
|---|---|
| public String getDecomposition(int c) Implements abstract jdk. Doc from jdk. Gets the decomposition mapping of c. Roughly equivalent to normalizing the String form of c on a DECOMPOSE Normalizer2 instance, but much faster, and except that this function returns null if c does not have a decomposition mapping in this instance's data. This function is independent of the mode of the Normalizer2.
| |
| hasBoundaryBefore | back to summary |
|---|---|
| public boolean hasBoundaryBefore(int c) Implements abstract jdk. Doc from jdk. Tests 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.
| |
| isNormalized | back to summary |
|---|---|
| public boolean isNormalized(CharSequence s) Implements abstract jdk. Doc from jdk. Tests if the string is normalized. Internally, in cases where the quickCheck() method would return "maybe" (which is only possible for the two COMPOSE modes) this method resolves to "yes" or "no" to provide a definitive result, at the cost of doing more work in those cases.
| |
| normalize | back to summary |
|---|---|
| public StringBuilder normalize(CharSequence src, StringBuilder dest) Implements abstract jdk. Doc from jdk. Writes the normalized form of the source string to the destination string (replacing its contents) and returns the destination string. The source and destination strings must be different objects.
| |
| normalize | back to summary |
|---|---|
| public Appendable normalize(CharSequence src, Appendable dest) Implements abstract jdk. Doc from jdk. Writes the normalized form of the source string to the destination Appendable and returns the destination Appendable. The source and destination strings must be different objects. Any
| |
| normalizeSecondAndAppend | back to summary |
|---|---|
| public StringBuilder normalizeSecondAndAppend(StringBuilder first, CharSequence second) Implements abstract jdk. Doc from jdk. Appends the normalized form of the second string to the first string (merging them at the boundary) and returns the first string. The result is normalized if the first string was normalized. The first and second strings must be different objects.
| |
| spanQuickCheckYes | back to summary |
|---|---|
| public int spanQuickCheckYes(CharSequence s) Implements abstract jdk. Doc from jdk. Returns the end of the normalized substring of the input string.
In other words, with 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.
| |
| Modifier and Type | Field and Description |
|---|---|
| private Norm2AllModes | |
| private RuntimeException |
| Access | Constructor and Description |
|---|---|
| private |
| allModes | back to summary |
|---|---|
| private Norm2AllModes allModes | |
| exception | back to summary |
|---|---|
| private RuntimeException exception | |
| Norm2AllModesSingleton | back to summary |
|---|---|
| private Norm2AllModesSingleton(String name) | |
| Modifier and Type | Field and Description |
|---|---|
| public final NormalizerImpl |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public StringBuilder | append(StringBuilder first, CharSequence second)
Implements abstract jdk. Appends the second string to the first string (merging them at the boundary) and returns the first string. |
| public int | getCombiningClass(int c)
Overrides jdk. Gets the combining class of c. |
| public String | getDecomposition(int c)
Implements abstract jdk. Gets the decomposition mapping of c. |
| public boolean | isNormalized(CharSequence s)
Implements abstract jdk. Tests if the string is normalized. |
| public StringBuilder | normalize(CharSequence src, StringBuilder dest)
Implements abstract jdk. Writes the normalized form of the source string to the destination string (replacing its contents) and returns the destination string. |
| public Appendable | normalize(CharSequence src, Appendable dest)
Implements abstract jdk. Writes the normalized form of the source string to the destination Appendable and returns the destination Appendable. |
| protected abstract void | |
| protected abstract void | |
| public StringBuilder | normalizeSecondAndAppend(StringBuilder first, CharSequence second)
Implements abstract jdk. Appends the normalized form of the second string to the first string (merging them at the boundary) and returns the first string. |
| public StringBuilder |
| impl | back to summary |
|---|---|
| public final NormalizerImpl impl | |
| Normalizer2WithImpl | back to summary |
|---|---|
| public Normalizer2WithImpl(NormalizerImpl ni) | |
| append | back to summary |
|---|---|
| public StringBuilder append(StringBuilder first, CharSequence second) Implements abstract jdk. Doc from jdk. Appends the second string to the first string (merging them at the boundary) and returns the first string. The result is normalized if both the strings were normalized. The first and second strings must be different objects.
| |
| getCombiningClass | back to summary |
|---|---|
| public int getCombiningClass(int c) Overrides jdk. Doc from jdk. Gets the combining class of c. The default implementation returns 0 but all standard implementations return the Unicode Canonical_Combining_Class value.
| |
| getDecomposition | back to summary |
|---|---|
| public String getDecomposition(int c) Implements abstract jdk. Doc from jdk. Gets the decomposition mapping of c. Roughly equivalent to normalizing the String form of c on a DECOMPOSE Normalizer2 instance, but much faster, and except that this function returns null if c does not have a decomposition mapping in this instance's data. This function is independent of the mode of the Normalizer2.
| |
| isNormalized | back to summary |
|---|---|
| public boolean isNormalized(CharSequence s) Implements abstract jdk. Doc from jdk. Tests if the string is normalized. Internally, in cases where the quickCheck() method would return "maybe" (which is only possible for the two COMPOSE modes) this method resolves to "yes" or "no" to provide a definitive result, at the cost of doing more work in those cases.
| |
| normalize | back to summary |
|---|---|
| public StringBuilder normalize(CharSequence src, StringBuilder dest) Implements abstract jdk. Doc from jdk. Writes the normalized form of the source string to the destination string (replacing its contents) and returns the destination string. The source and destination strings must be different objects.
| |
| normalize | back to summary |
|---|---|
| public Appendable normalize(CharSequence src, Appendable dest) Implements abstract jdk. Doc from jdk. Writes the normalized form of the source string to the destination Appendable and returns the destination Appendable. The source and destination strings must be different objects. Any
| |
| normalize | back to summary |
|---|---|
| protected abstract void normalize(CharSequence src, NormalizerImpl. | |
| normalizeAndAppend | back to summary |
|---|---|
| protected abstract void normalizeAndAppend(CharSequence src, boolean doNormalize, NormalizerImpl. | |
| normalizeSecondAndAppend | back to summary |
|---|---|
| public StringBuilder normalizeSecondAndAppend(StringBuilder first, CharSequence second) Implements abstract jdk. Doc from jdk. Appends the normalized form of the second string to the first string (merging them at the boundary) and returns the first string. The result is normalized if the first string was normalized. The first and second strings must be different objects.
| |
| normalizeSecondAndAppend | back to summary |
|---|---|
| public StringBuilder normalizeSecondAndAppend(StringBuilder first, CharSequence second, boolean doNormalize) | |