java.lang.String related utility methods, written mostly to
avoid generation of new String objects (e.g. via splitting Strings etc).
| Modifier and Type | Class and Description |
|---|---|
| pack-priv static enum |
| Modifier and Type | Field and Description |
|---|---|
| private static final String | |
| pack-priv static final List | |
| pack-priv static final List | |
| pack-priv static final Pattern |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| private static String | |
| pack-priv static Strings. | |
| pack-priv static Pattern | Returns: Java regex pattern corresponding to given glob patternnon null pattern pattern)Conversion from glob to Java regex following two sources:
|
| pack-priv static int | |
| pack-priv static String | |
| private static boolean | |
| pack-priv static char | |
| private static boolean | |
| public static boolean | Returns: true if the last character, which is not whitespace, is a
path separatornon null pattern)Check if pattern is a directory pattern ending with a path separator |
| pack-priv static boolean | |
| private static char | |
| private static char | Returns: zero of the buffer is empty, otherwise the last character from bufferbuffer buffer)
|
| private static void | |
| private static void | |
| public static List | |
| public static String | Returns: new string with all trailing characters removednon null pattern, char character to remove c)Strip trailing characters |
| public static String | Returns: new string with all trailing whitespace removednon null pattern)Strip trailing whitespace characters |
| DL | back to summary |
|---|---|
| private static final String DL | |
| JAVA_CHAR_CLASSES | back to summary |
|---|---|
| pack-priv static final List<String> JAVA_CHAR_CLASSES | |
| POSIX_CHAR_CLASSES | back to summary |
|---|---|
| pack-priv static final List<String> POSIX_CHAR_CLASSES | |
| UNSUPPORTED | back to summary |
|---|---|
| pack-priv static final Pattern UNSUPPORTED | |
| Strings | back to summary |
|---|---|
| public Strings() | |
| checkPosixCharClass | back to summary |
|---|---|
| private static String checkPosixCharClass(char[] buffer) | |
| checkWildCards | back to summary |
|---|---|
| pack-priv static Strings. | |
| convertGlob | back to summary |
|---|---|
| pack-priv static Pattern convertGlob(String pattern) throws InvalidPatternException Conversion from glob to Java regex following two sources:
| |
| count | back to summary |
|---|---|
| pack-priv static int count(String s, char c, boolean ignoreFirstLast) | |
| deleteBackslash | back to summary |
|---|---|
| pack-priv static String deleteBackslash(String s) | |
| escapedByBackslash | back to summary |
|---|---|
| private static boolean escapedByBackslash(char nextChar) | |
| getPathSeparator | back to summary |
|---|---|
| pack-priv static char getPathSeparator(Character pathSeparator) | |
| isComplexWildcard | back to summary |
|---|---|
| private static boolean isComplexWildcard(String pattern) | |
| isDirectoryPattern | back to summary |
|---|---|
| public static boolean isDirectoryPattern(String pattern) Check if pattern is a directory pattern ending with a path separator
| |
| isWildCard | back to summary |
|---|---|
| pack-priv static boolean isWildCard(String pattern) | |
| lookAhead | back to summary |
|---|---|
| private static char lookAhead(String pattern, int i) Lookahead next character after given index in pattern
| |
| lookBehind | back to summary |
|---|---|
private static char lookBehind(StringBuilder buffer)
| |
| reset | back to summary |
|---|---|
| private static void reset(char[] buffer) | |
| setNext | back to summary |
|---|---|
| private static void setNext(char[] buffer, char c) | |
| split | back to summary |
|---|---|
| public static List Splits given string to substrings by given separator | |
| stripTrailing | back to summary |
|---|---|
| public static String stripTrailing(String pattern, char c) Strip trailing characters | |
| stripTrailingWhitespace | back to summary |
|---|---|
| public static String stripTrailingWhitespace(String pattern) Strip trailing whitespace characters | |
| Modifier and Type | Field and Description |
|---|---|
| public static final Strings. | |
| public static final Strings. | |
| public static final Strings. | |
| public static final Strings. |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public static Strings. | |
| public static Strings. |
| COMPLEX | back to summary |
|---|---|
| public static final Strings. | |
| LEADING_ASTERISK_ONLY | back to summary |
|---|---|
| public static final Strings. | |
| NONE | back to summary |
|---|---|
| public static final Strings. | |
| TRAILING_ASTERISK_ONLY | back to summary |
|---|---|
| public static final Strings. | |
| PatternState | back to summary |
|---|---|
| private PatternState() | |
| valueOf | back to summary |
|---|---|
| public static Strings. | |
| values | back to summary |
|---|---|
| public static Strings. | |