APIdia Launch Partner
Top Inners Fields Constructors Methods
jdk.internal.icu.impl

public final Class Norm2AllModes

extends Object
Class Inheritance
Imports
java.io.IOException, jdk.internal.icu.text.Normalizer2, jdk.internal.icu.util.VersionInfo

Nested and Inner Type Summary

Modifier and TypeClass and Description
public static class
public static class
private static class
private static class
public static class
private static class
public abstract static class

Field Summary

Modifier and TypeField and Description
public final Norm2AllModes.ComposeNormalizer2
public final Norm2AllModes.DecomposeNormalizer2
public final NormalizerImpl
public static final Norm2AllModes.NoopNormalizer2

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
private static Norm2AllModes
public static Norm2AllModes
public static Norm2AllModes
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

compback to summary
public final Norm2AllModes.ComposeNormalizer2 comp
decompback to summary
public final Norm2AllModes.DecomposeNormalizer2 decomp
implback to summary
public final NormalizerImpl impl
NOOP_NORMALIZER2back to summary
public static final Norm2AllModes.NoopNormalizer2 NOOP_NORMALIZER2

Constructor Detail

Norm2AllModesback to summary
private Norm2AllModes(NormalizerImpl ni)

Method Detail

getInstanceFromSingletonback to summary
private static Norm2AllModes getInstanceFromSingleton(Norm2AllModes.Norm2AllModesSingleton singleton)
getNFCInstanceback to summary
public static Norm2AllModes getNFCInstance()
getNFKCInstanceback to summary
public static Norm2AllModes getNFKCInstance()
jdk.internal.icu.impl back to summary

public final Class Norm2AllModes.ComposeNormalizer2

extends Normalizer2WithImpl
Class Inheritance

Field Summary

Modifier and TypeField and Description
private final boolean
Inherited from jdk.internal.icu.impl.Norm2AllModes.Normalizer2WithImpl:
impl

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public boolean
hasBoundaryBefore(int c)

Implements abstract jdk.internal.icu.text.Normalizer2.hasBoundaryBefore.

Tests if the character always has a normalization boundary before it, regardless of context.

public boolean
protected void
protected void
public int
spanQuickCheckYes(CharSequence s)

Implements abstract jdk.internal.icu.text.Normalizer2.spanQuickCheckYes.

Returns the end of the normalized substring of the input string.

Inherited from jdk.internal.icu.impl.Norm2AllModes.Normalizer2WithImpl:
appendgetCombiningClassgetDecompositionnormalizenormalizenormalizeSecondAndAppendnormalizeSecondAndAppend

Field Detail

onlyContiguousback to summary
private final boolean onlyContiguous

Constructor Detail

ComposeNormalizer2back to summary
public ComposeNormalizer2(NormalizerImpl ni, boolean fcc)

Method Detail

hasBoundaryBeforeback to summary
public boolean hasBoundaryBefore(int c)

Implements abstract jdk.internal.icu.text.Normalizer2.hasBoundaryBefore.

Doc from jdk.internal.icu.text.Normalizer2.hasBoundaryBefore.

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.

Annotations
@Override
isNormalizedback to summary
public boolean isNormalized(CharSequence s)

Overrides jdk.internal.icu.impl.Norm2AllModes.Normalizer2WithImpl.isNormalized.

Doc from jdk.internal.icu.text.Normalizer2.isNormalized.

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.

Annotations
@Override
normalizeback to summary
protected void normalize(CharSequence src, NormalizerImpl.ReorderingBuffer buffer)

Implements abstract jdk.internal.icu.impl.Norm2AllModes.Normalizer2WithImpl.normalize.

Annotations
@Override
normalizeAndAppendback to summary
protected void normalizeAndAppend(CharSequence src, boolean doNormalize, NormalizerImpl.ReorderingBuffer buffer)

Implements abstract jdk.internal.icu.impl.Norm2AllModes.Normalizer2WithImpl.normalizeAndAppend.

Annotations
@Override
spanQuickCheckYesback to summary
public int spanQuickCheckYes(CharSequence s)

Implements abstract jdk.internal.icu.text.Normalizer2.spanQuickCheckYes.

Doc from jdk.internal.icu.text.Normalizer2.spanQuickCheckYes.

Returns the end of the normalized substring of the input string. In other words, with end=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.

Annotations
@Override
jdk.internal.icu.impl back to summary

public final Class Norm2AllModes.DecomposeNormalizer2

extends Normalizer2WithImpl
Class Inheritance

Field Summary

Inherited from jdk.internal.icu.impl.Norm2AllModes.Normalizer2WithImpl:
impl

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public boolean
hasBoundaryBefore(int c)

Implements abstract jdk.internal.icu.text.Normalizer2.hasBoundaryBefore.

Tests if the character always has a normalization boundary before it, regardless of context.

protected void
protected void
public int
spanQuickCheckYes(CharSequence s)

Implements abstract jdk.internal.icu.text.Normalizer2.spanQuickCheckYes.

Returns the end of the normalized substring of the input string.

Inherited from jdk.internal.icu.impl.Norm2AllModes.Normalizer2WithImpl:
appendgetCombiningClassgetDecompositionisNormalizednormalizenormalizenormalizeSecondAndAppendnormalizeSecondAndAppend

Constructor Detail

DecomposeNormalizer2back to summary
public DecomposeNormalizer2(NormalizerImpl ni)

Method Detail

hasBoundaryBeforeback to summary
public boolean hasBoundaryBefore(int c)

Implements abstract jdk.internal.icu.text.Normalizer2.hasBoundaryBefore.

Doc from jdk.internal.icu.text.Normalizer2.hasBoundaryBefore.

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.

Annotations
@Override
normalizeback to summary
protected void normalize(CharSequence src, NormalizerImpl.ReorderingBuffer buffer)

Implements abstract jdk.internal.icu.impl.Norm2AllModes.Normalizer2WithImpl.normalize.

Annotations
@Override
normalizeAndAppendback to summary
protected void normalizeAndAppend(CharSequence src, boolean doNormalize, NormalizerImpl.ReorderingBuffer buffer)

Implements abstract jdk.internal.icu.impl.Norm2AllModes.Normalizer2WithImpl.normalizeAndAppend.

Annotations
@Override
spanQuickCheckYesback to summary
public int spanQuickCheckYes(CharSequence s)

Implements abstract jdk.internal.icu.text.Normalizer2.spanQuickCheckYes.

Doc from jdk.internal.icu.text.Normalizer2.spanQuickCheckYes.

Returns the end of the normalized substring of the input string. In other words, with end=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.

Annotations
@Override
jdk.internal.icu.impl back to summary

private final Class Norm2AllModes.NFCSingleton

extends Object
Class Inheritance

Field Summary

Modifier and TypeField and Description
private static final Norm2AllModes.Norm2AllModesSingleton

Constructor Summary

AccessConstructor and Description
private

Method Summary

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

INSTANCEback to summary
private static final Norm2AllModes.Norm2AllModesSingleton INSTANCE

Constructor Detail

NFCSingletonback to summary
private NFCSingleton()
jdk.internal.icu.impl back to summary

private final Class Norm2AllModes.NFKCSingleton

extends Object
Class Inheritance

Field Summary

Modifier and TypeField and Description
private static final Norm2AllModes.Norm2AllModesSingleton

Constructor Summary

AccessConstructor and Description
private

Method Summary

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

INSTANCEback to summary
private static final Norm2AllModes.Norm2AllModesSingleton INSTANCE

Constructor Detail

NFKCSingletonback to summary
private NFKCSingleton()
jdk.internal.icu.impl back to summary

public final Class Norm2AllModes.NoopNormalizer2

extends Normalizer2
Class Inheritance

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public StringBuilder
append(StringBuilder first, CharSequence second)

Implements abstract jdk.internal.icu.text.Normalizer2.append.

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.internal.icu.text.Normalizer2.getDecomposition.

Gets the decomposition mapping of c.

public boolean
hasBoundaryBefore(int c)

Implements abstract jdk.internal.icu.text.Normalizer2.hasBoundaryBefore.

Tests if the character always has a normalization boundary before it, regardless of context.

public boolean
isNormalized(CharSequence s)

Implements abstract jdk.internal.icu.text.Normalizer2.isNormalized.

Tests if the string is normalized.

public StringBuilder
normalize(CharSequence src, StringBuilder dest)

Implements abstract jdk.internal.icu.text.Normalizer2.normalize.

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.internal.icu.text.Normalizer2.normalize.

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.internal.icu.text.Normalizer2.normalizeSecondAndAppend.

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.internal.icu.text.Normalizer2.spanQuickCheckYes.

Returns the end of the normalized substring of the input string.

Inherited from jdk.internal.icu.text.Normalizer2:
getCombiningClassgetNFCInstancegetNFDInstancegetNFKCInstancegetNFKDInstancenormalize

Constructor Detail

NoopNormalizer2back to summary
public NoopNormalizer2()

Method Detail

appendback to summary
public StringBuilder append(StringBuilder first, CharSequence second)

Implements abstract jdk.internal.icu.text.Normalizer2.append.

Doc from jdk.internal.icu.text.Normalizer2.append.

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.

Annotations
@Override
getDecompositionback to summary
public String getDecomposition(int c)

Implements abstract jdk.internal.icu.text.Normalizer2.getDecomposition.

Doc from jdk.internal.icu.text.Normalizer2.getDecomposition.

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.

Annotations
@Override
hasBoundaryBeforeback to summary
public boolean hasBoundaryBefore(int c)

Implements abstract jdk.internal.icu.text.Normalizer2.hasBoundaryBefore.

Doc from jdk.internal.icu.text.Normalizer2.hasBoundaryBefore.

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.

Annotations
@Override
isNormalizedback to summary
public boolean isNormalized(CharSequence s)

Implements abstract jdk.internal.icu.text.Normalizer2.isNormalized.

Doc from jdk.internal.icu.text.Normalizer2.isNormalized.

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.

Annotations
@Override
normalizeback to summary
public StringBuilder normalize(CharSequence src, StringBuilder dest)

Implements abstract jdk.internal.icu.text.Normalizer2.normalize.

Doc from jdk.internal.icu.text.Normalizer2.normalize.

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.

Annotations
@Override
normalizeback to summary
public Appendable normalize(CharSequence src, Appendable dest)

Implements abstract jdk.internal.icu.text.Normalizer2.normalize.

Doc from jdk.internal.icu.text.Normalizer2.normalize.

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 java.io.IOException is wrapped into a com.ibm.icu.util.ICUUncheckedIOException.

Annotations
@Override
normalizeSecondAndAppendback to summary
public StringBuilder normalizeSecondAndAppend(StringBuilder first, CharSequence second)

Implements abstract jdk.internal.icu.text.Normalizer2.normalizeSecondAndAppend.

Doc from jdk.internal.icu.text.Normalizer2.normalizeSecondAndAppend.

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.

Annotations
@Override
spanQuickCheckYesback to summary
public int spanQuickCheckYes(CharSequence s)

Implements abstract jdk.internal.icu.text.Normalizer2.spanQuickCheckYes.

Doc from jdk.internal.icu.text.Normalizer2.spanQuickCheckYes.

Returns the end of the normalized substring of the input string. In other words, with end=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.

Annotations
@Override
jdk.internal.icu.impl back to summary

private final Class Norm2AllModes.Norm2AllModesSingleton

extends Object
Class Inheritance

Field Summary

Modifier and TypeField and Description
private Norm2AllModes
private RuntimeException

Constructor Summary

AccessConstructor and Description
private

Method Summary

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

allModesback to summary
private Norm2AllModes allModes
exceptionback to summary
private RuntimeException exception

Constructor Detail

Norm2AllModesSingletonback to summary
private Norm2AllModesSingleton(String name)
jdk.internal.icu.impl back to summary

public abstract Class Norm2AllModes.Normalizer2WithImpl

extends Normalizer2
Class Inheritance
Known Direct Subclasses
jdk.internal.icu.impl.Norm2AllModes.DecomposeNormalizer2, jdk.internal.icu.impl.Norm2AllModes.ComposeNormalizer2

Field Summary

Modifier and TypeField and Description
public final NormalizerImpl

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public StringBuilder
append(StringBuilder first, CharSequence second)

Implements abstract jdk.internal.icu.text.Normalizer2.append.

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.internal.icu.text.Normalizer2.getCombiningClass.

Gets the combining class of c.

public String
getDecomposition(int c)

Implements abstract jdk.internal.icu.text.Normalizer2.getDecomposition.

Gets the decomposition mapping of c.

public boolean
isNormalized(CharSequence s)

Implements abstract jdk.internal.icu.text.Normalizer2.isNormalized.

Tests if the string is normalized.

public StringBuilder
normalize(CharSequence src, StringBuilder dest)

Implements abstract jdk.internal.icu.text.Normalizer2.normalize.

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.internal.icu.text.Normalizer2.normalize.

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.internal.icu.text.Normalizer2.normalizeSecondAndAppend.

Appends the normalized form of the second string to the first string (merging them at the boundary) and returns the first string.

public StringBuilder
normalizeSecondAndAppend(StringBuilder first, CharSequence second, boolean doNormalize)

Inherited from jdk.internal.icu.text.Normalizer2:
getNFCInstancegetNFDInstancegetNFKCInstancegetNFKDInstancehasBoundaryBeforenormalizespanQuickCheckYes

Field Detail

implback to summary
public final NormalizerImpl impl

Constructor Detail

Normalizer2WithImplback to summary
public Normalizer2WithImpl(NormalizerImpl ni)

Method Detail

appendback to summary
public StringBuilder append(StringBuilder first, CharSequence second)

Implements abstract jdk.internal.icu.text.Normalizer2.append.

Doc from jdk.internal.icu.text.Normalizer2.append.

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.

Annotations
@Override
getCombiningClassback to summary
public int getCombiningClass(int c)

Overrides jdk.internal.icu.text.Normalizer2.getCombiningClass.

Doc from jdk.internal.icu.text.Normalizer2.getCombiningClass.

Gets the combining class of c. The default implementation returns 0 but all standard implementations return the Unicode Canonical_Combining_Class value.

Annotations
@Override
getDecompositionback to summary
public String getDecomposition(int c)

Implements abstract jdk.internal.icu.text.Normalizer2.getDecomposition.

Doc from jdk.internal.icu.text.Normalizer2.getDecomposition.

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.

Annotations
@Override
isNormalizedback to summary
public boolean isNormalized(CharSequence s)

Implements abstract jdk.internal.icu.text.Normalizer2.isNormalized.

Doc from jdk.internal.icu.text.Normalizer2.isNormalized.

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.

Annotations
@Override
normalizeback to summary
public StringBuilder normalize(CharSequence src, StringBuilder dest)

Implements abstract jdk.internal.icu.text.Normalizer2.normalize.

Doc from jdk.internal.icu.text.Normalizer2.normalize.

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.

Annotations
@Override
normalizeback to summary
public Appendable normalize(CharSequence src, Appendable dest)

Implements abstract jdk.internal.icu.text.Normalizer2.normalize.

Doc from jdk.internal.icu.text.Normalizer2.normalize.

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 java.io.IOException is wrapped into a com.ibm.icu.util.ICUUncheckedIOException.

Annotations
@Override
normalizeback to summary
protected abstract void normalize(CharSequence src, NormalizerImpl.ReorderingBuffer buffer)
normalizeAndAppendback to summary
protected abstract void normalizeAndAppend(CharSequence src, boolean doNormalize, NormalizerImpl.ReorderingBuffer buffer)
normalizeSecondAndAppendback to summary
public StringBuilder normalizeSecondAndAppend(StringBuilder first, CharSequence second)

Implements abstract jdk.internal.icu.text.Normalizer2.normalizeSecondAndAppend.

Doc from jdk.internal.icu.text.Normalizer2.normalizeSecondAndAppend.

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.

Annotations
@Override
normalizeSecondAndAppendback to summary
public StringBuilder normalizeSecondAndAppend(StringBuilder first, CharSequence second, boolean doNormalize)