| Modifier and Type | Field and Description |
|---|---|
| private static final String | |
| public static final int | |
| private static final Pattern | |
| private static final int | INDEX_NOT_FOUND
Copied from Apache commons-lang3-3.6 Represents a failed index search. |
| private static final Pattern | |
| public static final int | |
| private static final Pattern | |
| public static final int | |
| private static final Map | |
| private static final Pattern |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public static long | |
| public static boolean | Returns: true if the CharSequence is empty or nullthe CharSequence to check, may be null cs)Copied from Apache commons-lang3-3.6 Checks if a CharSequence is empty ("") or null. |
| private static boolean | |
| public static boolean | |
| public static String | |
| public static String | Returns: the text with any replacements processed,null if null String inputtext to search and replace in, may be null text, String the String to search for, may be null searchString, final String the String to replace it with, may be null replacement)The modified implementation is based on StringUtils#replace(String text, String searchString, String replacement, int max), Apache commons-lang3-3.6 Replaces all occurrences of a String within another String. |
| public static String | |
| private static String | |
| public static String | |
| private static String | |
| public static String | |
| public static String | |
| public static String |
| BACKSLASH | back to summary |
|---|---|
| private static final String BACKSLASH | |
| DOLLAR_SLASHY | back to summary |
|---|---|
| public static final int DOLLAR_SLASHY | |
| HEX_ESCAPES_PATTERN | back to summary |
|---|---|
| private static final Pattern HEX_ESCAPES_PATTERN | |
| INDEX_NOT_FOUND | back to summary |
|---|---|
| private static final int INDEX_NOT_FOUND Copied from Apache commons-lang3-3.6 Represents a failed index search. | |
| LINE_ESCAPE_PATTERN | back to summary |
|---|---|
| private static final Pattern LINE_ESCAPE_PATTERN | |
| NONE_SLASHY | back to summary |
|---|---|
| public static final int NONE_SLASHY | |
| OCTAL_ESCAPES_PATTERN | back to summary |
|---|---|
| private static final Pattern OCTAL_ESCAPES_PATTERN | |
| SLASHY | back to summary |
|---|---|
| public static final int SLASHY | |
| STANDARD_ESCAPES | back to summary |
|---|---|
| private static final Map<Character, Character> STANDARD_ESCAPES | |
| STANDARD_ESCAPES_PATTERN | back to summary |
|---|---|
| private static final Pattern STANDARD_ESCAPES_PATTERN | |
| StringUtils | back to summary |
|---|---|
| public StringUtils() | |
| countChar | back to summary |
|---|---|
| public static long countChar(String text, char c) | |
| isEmpty | back to summary |
|---|---|
| public static boolean isEmpty(final CharSequence cs) Copied from Apache commons-lang3-3.6 Checks if a CharSequence is empty ("") or null.
StringUtils.isEmpty(null) = true
StringUtils.isEmpty("") = true
StringUtils.isEmpty(" ") = false
StringUtils.isEmpty("bob") = false
StringUtils.isEmpty(" bob ") = false
Note This method changed in Lang version 2.0. It no longer trims the CharSequence. That functionality is available in isBlank().
| |
| isLengthOdd | back to summary |
|---|---|
| private static boolean isLengthOdd(String str) | |
| matches | back to summary |
|---|---|
| public static boolean matches(String text, Pattern pattern) | |
| removeCR | back to summary |
|---|---|
| public static String removeCR(String text) | |
| replace | back to summary |
|---|---|
| public static String replace(final String text, String searchString, final String replacement) The modified implementation is based on StringUtils#replace(String text, String searchString, String replacement, int max), Apache commons-lang3-3.6 Replaces all occurrences of a String within another String. A
StringUtils.replace(null, *, *) = null
StringUtils.replace("", *, *) = ""
StringUtils.replace("any", null, *) = "any"
StringUtils.replace("any", *, null) = "any"
StringUtils.replace("any", "", *) = "any"
StringUtils.replace("aba", "a", null) = "aba"
StringUtils.replace("aba", "a", "") = "b"
StringUtils.replace("aba", "a", "z") = "zbz"
| |
| replaceEscapes | back to summary |
|---|---|
| public static String replaceEscapes(String text, int slashyType) | |
| replaceEscapes | back to summary |
|---|---|
| private static String replaceEscapes(String text) | |
| replaceHexEscapes | back to summary |
|---|---|
| public static String replaceHexEscapes(String text) | |
| replaceLineEscape | back to summary |
|---|---|
| private static String replaceLineEscape(String text) | |
| replaceOctalEscapes | back to summary |
|---|---|
| public static String replaceOctalEscapes(String text) | |
| replaceStandardEscapes | back to summary |
|---|---|
| public static String replaceStandardEscapes(String text) | |
| trimQuotations | back to summary |
|---|---|
| public static String trimQuotations(String text, int quotationLength) | |