public final class PatternProps
extends java.lang.Object
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:] = [!-/\:-@\[-\^`\{-~¡-§©«¬® °±¶»¿×÷ ‐-‧‰-‾⁁-⁓⁕-⁞ ←-─-❵➔-⯿⸀- 、-〃〈-〠〰﴾﴿﹅﹆]
Modifier and Type | Method and Description |
---|---|
static boolean |
isIdentifier(java.lang.CharSequence s)
Tests whether the CharSequence contains a "pattern identifier", that is,
whether it contains only non-Pattern_White_Space, non-Pattern_Syntax characters.
|
static boolean |
isSyntaxOrWhiteSpace(int c) |
static boolean |
isWhiteSpace(int c) |
static int |
skipIdentifier(java.lang.CharSequence s,
int i)
Skips over a "pattern identifier" starting at index i of the CharSequence.
|
static int |
skipWhiteSpace(java.lang.CharSequence s,
int i)
Skips over Pattern_White_Space starting at index i of the CharSequence.
|
static java.lang.String |
trimWhiteSpace(java.lang.String s) |
public static boolean isSyntaxOrWhiteSpace(int c)
public static boolean isWhiteSpace(int c)
public static int skipWhiteSpace(java.lang.CharSequence s, int i)
public static java.lang.String trimWhiteSpace(java.lang.String s)
public static boolean isIdentifier(java.lang.CharSequence s)
public static int skipIdentifier(java.lang.CharSequence s, int i)