Class PatternProps
java.lang.Object
org.graalvm.shadowed.com.ibm.icu.impl.PatternProps
Implements the immutable Unicode properties Pattern_Syntax and Pattern_White_Space.
Hardcodes these properties, does not load data, does not depend on other ICU classes.
Note: Both properties include ASCII as well as non-ASCII, non-Latin-1 code points, and both properties only include BMP code points (no supplementary ones). Pattern_Syntax includes some unassigned code points.
[:Pattern_White_Space:] = [ - \ ]
[:Pattern_Syntax:] = [!-/\:-@\[-\^`\{-~¡-§©«¬® °±¶»¿×÷ ‐-‧‰-‾⁁-⁓⁕-⁞ ←-─-❵➔-⯿⸀- 、-〃〈-〠〰﴾﴿﹅﹆]
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic booleanTests whether the CharSequence contains a "pattern identifier", that is, whether it contains only non-Pattern_White_Space, non-Pattern_Syntax characters.static booleanisIdentifier(CharSequence s, int start, int limit) Tests whether the CharSequence contains a "pattern identifier", that is, whether it contains only non-Pattern_White_Space, non-Pattern_Syntax characters.static booleanisSyntax(int c) static booleanisSyntaxOrWhiteSpace(int c) static booleanisWhiteSpace(int c) static intskipIdentifier(CharSequence s, int i) Skips over a "pattern identifier" starting at index i of the CharSequence.static intskipWhiteSpace(CharSequence s, int i) Skips over Pattern_White_Space starting at index i of the CharSequence.static Stringstatic String
-
Constructor Details
-
PatternProps
public PatternProps()
-
-
Method Details
-
isSyntax
public static boolean isSyntax(int c) - Returns:
- true if c is a Pattern_Syntax code point.
-
isSyntaxOrWhiteSpace
public static boolean isSyntaxOrWhiteSpace(int c) - Returns:
- true if c is a Pattern_Syntax or Pattern_White_Space code point.
-
isWhiteSpace
public static boolean isWhiteSpace(int c) - Returns:
- true if c is a Pattern_White_Space character.
-
skipWhiteSpace
Skips over Pattern_White_Space starting at index i of the CharSequence.- Returns:
- The smallest index at or after i with a non-white space character.
-
trimWhiteSpace
-
trimSpaceChar
-
isIdentifier
Tests whether the CharSequence contains a "pattern identifier", that is, whether it contains only non-Pattern_White_Space, non-Pattern_Syntax characters.- Returns:
- true if there are no Pattern_White_Space or Pattern_Syntax characters in s.
-
isIdentifier
Tests whether the CharSequence contains a "pattern identifier", that is, whether it contains only non-Pattern_White_Space, non-Pattern_Syntax characters.- Returns:
- true if there are no Pattern_White_Space or Pattern_Syntax characters in s between start and (exclusive) limit.
-
skipIdentifier
Skips over a "pattern identifier" starting at index i of the CharSequence.- Returns:
- The smallest index at or after i with a Pattern_White_Space or Pattern_Syntax character.
-