Package zombie.util
Class StringUtils
java.lang.Object
zombie.util.StringUtils
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic boolean
static boolean
containsIgnoreCase
(String haystack, String needle) static String
static boolean
endsWithIgnoreCase
(String str, String suffix) static boolean
static boolean
equalsIgnoreCase
(String a, String b) static String
static int
static boolean
static boolean
Tests the supplied string and return TRUE if it is either NULL or a zero-length string.static boolean
Returns TRUE if the supplied string is either NULL, empty, or whitespace.static String
leftJustify
(String text, int length) static String
moduleDotType
(String module, String type) static boolean
startsWithIgnoreCase
(String str, String prefix) static String
static String
trimPrefix
(String str, String prefix) static String
trimSuffix
(String str, String suffix) static boolean
tryParseBoolean
(String varStr)
-
Field Details
-
s_emptyString
- See Also:
-
UTF8_BOM
public static final char UTF8_BOM- See Also:
-
-
Constructor Details
-
StringUtils
public StringUtils()
-
-
Method Details
-
isNullOrEmpty
Tests the supplied string and return TRUE if it is either NULL or a zero-length string.- Parameters:
s
- The string to test.- Returns:
- TRUE if the string is null or empty, FALSE otherwise.
-
isNullOrWhitespace
Returns TRUE if the supplied string is either NULL, empty, or whitespace.- Parameters:
s
- The string to test.- Returns:
- TRUE if the string is either null, or whitespace, FALSE otherwise.
-
discardNullOrWhitespace
-
trimPrefix
-
trimSuffix
-
equals
-
startsWithIgnoreCase
-
endsWithIgnoreCase
-
containsIgnoreCase
-
equalsIgnoreCase
-
tryParseBoolean
-
isBoolean
-
contains
-
indexOf
-
indent
-
leftJustify
-
moduleDotType
-
stripBOM
-