Class CharSequences
java.lang.Object
org.graalvm.shadowed.com.ibm.icu.lang.CharSequences
Deprecated.
This API is ICU internal only.
A number of utilities for dealing with CharSequences and related classes.
For accessing codepoints with a CharSequence, also see
-
Method Summary
Modifier and TypeMethodDescriptionintDeprecated.This API is ICU internal only.static int[]Deprecated.This API is ICU internal only.static intcompare(int codepoint, CharSequence a) Deprecated.This API is ICU internal only.static intcompare(CharSequence string, int codePoint) Deprecated.This API is ICU internal only.static intcompare(CharSequence a, CharSequence b) Deprecated.This API is ICU internal only.static final booleanequals(int codepoint, CharSequence other) Deprecated.This API is ICU internal only.static final booleanequals(CharSequence other, int codepoint) Deprecated.This API is ICU internal only.static final <T> booleanequals(T a, T b) Deprecated.This API is ICU internal only.static booleanDeprecated.This API is ICU internal only.static intDeprecated.This API is ICU internal only.static intindexOf(CharSequence s, int codePoint) Deprecated.This API is ICU internal only.static intmatchAfter(CharSequence a, CharSequence b, int aIndex, int bIndex) Deprecated.This API is ICU internal only.static booleanonCharacterBoundary(CharSequence s, int i) Deprecated.This API is ICU internal only.
-
Method Details
-
matchAfter
Deprecated.This API is ICU internal only.Find the longest n such that a[aIndex,n] = b[bIndex,n], and n is on a character boundary. -
codePointLength
Deprecated.This API is ICU internal only.Count the code point length. Unpaired surrogates count as 1. -
equals
Deprecated.This API is ICU internal only.Utility function for comparing codepoint to string without generating new string. -
equals
Deprecated.This API is ICU internal only. -
compare
Deprecated.This API is ICU internal only.Utility to compare a string to a code point. Same results as turning the code point into a string (with the [ugly] new StringBuilder().appendCodePoint(codepoint).toString()) and comparing, but much faster (no object creation). Actually, there is one difference; a null compares as less. Note that this (=String) order is UTF-16 order -- not code point order. -
compare
Deprecated.This API is ICU internal only.Utility to compare a string to a code point. Same results as turning the code point into a string and comparing, but much faster (no object creation). Actually, there is one difference; a null compares as less. Note that this (=String) order is UTF-16 order -- not code point order. -
getSingleCodePoint
Deprecated.This API is ICU internal only.Return the value of the first code point, if the string is exactly one code point. Otherwise return Integer.MAX_VALUE. -
equals
Deprecated.This API is ICU internal only.Utility function for comparing objects that may be null string. -
compare
Deprecated.This API is ICU internal only.Utility for comparing the contents of CharSequences -
equalsChars
Deprecated.This API is ICU internal only.Utility for comparing the contents of CharSequences -
onCharacterBoundary
Deprecated.This API is ICU internal only.Are we on a character boundary? -
indexOf
Deprecated.This API is ICU internal only.Find code point in string. -
codePoints
Deprecated.This API is ICU internal only.Utility function for simplified, more robust loops, such as:for (int codePoint : CharSequences.codePoints(string)) { doSomethingWith(codePoint); }
-