Dependencies: none
Escape and unescape methods for JSON (StringEscapeJson
), XML (StringEscapeXml
), and strings with non-ASCII characters, quotes, or escape \t \b \f \r
characters (StringEscape
and StringEscapePartial
).
String search methods for indexOf()/lastIndexOf() (StringIndex
), endsWith(), startsWith(), compare(), contains() (StringCompare
), and common prefix/suffix (StringCommonality
).
String utility methods for join and repeat (StringJoin
), pad (StringPad
), split, substring, and Nth match (StringSplit
), trim (StringTrim
), replace (StringReplace
), hex conversion (StringHex
), empty/whitespace checking (StringCheck
), code identifier case checking for camelCase, TitleCase, snake_case, etc (StringCase
), and conversion to and from java.util.Properties format (StringToProperties
).
Meant to provide more options than available in the Java API as of Java 1.8.
JUnit tests and examples (requires JUnit 5)