Package com.strobel.core
Class StringUtilities
java.lang.Object
com.strobel.core.StringUtilities
- Author:
- Mike Strobel
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionstatic intstatic intcompare(String s1, String s2, StringComparison comparison) static Stringstatic Stringstatic booleanendsWith(CharSequence value, CharSequence suffix) static booleanendsWithIgnoreCase(CharSequence value, String suffix) static booleanstatic booleanequals(String s1, String s2, StringComparison comparison) static Stringescape(char ch) static Stringescape(char ch, boolean quote) static Stringescape(char ch, boolean quote, boolean isUnicodeSupported) static Stringstatic Stringstatic Stringstatic StringescapeIdentifier(String value, boolean isUnicodeSupported) static intstatic intstatic intgetUtf8ByteCount(String value) static booleanstatic booleanstatic booleanstatic booleanstatic Stringstatic Stringstatic Stringstatic Stringstatic StringremoveLeft(String value, char[] removeChars) static StringremoveLeft(String value, String prefix) static StringremoveLeft(String value, String prefix, boolean ignoreCase) static StringremoveRight(String value, char[] removeChars) static StringremoveRight(String value, String suffix) static StringremoveRight(String value, String suffix, boolean ignoreCase) static Stringrepeat(char ch, int length) static booleanstartsWith(CharSequence value, CharSequence prefix) static booleanstartsWithIgnoreCase(CharSequence value, String prefix) static booleansubstringEquals(CharSequence value, int offset, CharSequence comparand, int comparandOffset, int substringLength) static booleansubstringEquals(CharSequence value, int offset, CharSequence comparand, int comparandOffset, int substringLength, StringComparison comparison) static StringtrimAndRemoveLeft(String value, char[] removeChars) static StringtrimAndRemoveLeft(String value, String prefix) static StringtrimAndRemoveLeft(String value, String prefix, boolean ignoreCase) static StringtrimAndRemoveRight(String value, char[] removeChars) static StringtrimAndRemoveRight(String value, String suffix) static StringtrimAndRemoveRight(String value, String suffix, boolean ignoreCase) static Stringstatic String
-
Field Details
-
EMPTY
- See Also:
-
-
Method Details
-
isNullOrEmpty
-
equals
-
equals
-
compare
-
compare
-
getHashCode
-
getHashCodeIgnoreCase
-
isNullOrWhitespace
-
startsWith
-
startsWithIgnoreCase
-
endsWith
-
endsWithIgnoreCase
-
concat
-
concat
-
join
-
join
-
substringEquals
public static boolean substringEquals(CharSequence value, int offset, CharSequence comparand, int comparandOffset, int substringLength) -
substringEquals
public static boolean substringEquals(CharSequence value, int offset, CharSequence comparand, int comparandOffset, int substringLength, StringComparison comparison) -
isTrue
-
isFalse
-
removeLeft
-
removeLeft
-
removeLeft
-
removeRight
-
removeRight
-
removeRight
-
padLeft
-
padRight
-
trimLeft
-
trimRight
-
trimAndRemoveLeft
-
trimAndRemoveLeft
-
trimAndRemoveLeft
-
trimAndRemoveRight
-
trimAndRemoveRight
-
trimAndRemoveRight
-
getUtf8ByteCount
-
escape
-
escape
-
escape
-
escape
-
escape
-
escape
-
escapeIdentifier
-
repeat
-
split
-
split
-
split
-
split
-