Class StringUtils
java.lang.Object
zombie.util.StringUtils
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic boolean
static boolean
containsDoubleDot
(String string) static boolean
containsIgnoreCase
(String haystack, String needle) static boolean
containsWhitespace
(String string) static String
static boolean
endsWithIgnoreCase
(String str, String suffix) static boolean
static boolean
equalsIgnoreCase
(String a, String b) static String
static int
static boolean
isAlpha
(char char0) static boolean
isAlphaNumeric
(char char0) static boolean
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 boolean
isNumeric
(char char0) static boolean
isValidVariableChar
(char char0) static boolean
isValidVariableName
(String string) static String
leftJustify
(String text, int length) static String
moduleDotType
(String module, String type) static String
removeWhitespace
(String string) static boolean
startsWithIgnoreCase
(String str, String prefix) static String
static String[]
static String
trimPrefix
(String str, String prefix) static String
trimSuffix
(String str, String suffix) static String
trimSurroundingQuotes
(String string) static String
trimSurroundingQuotes
(String string, boolean boolean0) static boolean
tryParseBoolean
(String varStr) static <E extends Enum<E>>
EtryParseEnum
(Class<E> _class, String string, E _enum) static float
tryParseFloat
(String string)
-
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
-
isFloat
-
tryParseFloat
-
tryParseEnum
-
contains
-
indexOf
-
indent
-
leftJustify
-
moduleDotType
-
stripBOM
-
containsDoubleDot
-
containsWhitespace
-
removeWhitespace
-
trimArray
-
trimSurroundingQuotes
-
trimSurroundingQuotes
-
isValidVariableName
-
isValidVariableChar
public static boolean isValidVariableChar(char char0) -
isAlpha
public static boolean isAlpha(char char0) -
isNumeric
public static boolean isNumeric(char char0) -
isAlphaNumeric
public static boolean isAlphaNumeric(char char0)
-