Object StringUtil
-
- All Implemented Interfaces:
public class StringUtil
-
-
Field Summary
Fields Modifier and Type Field Description public final static StringEMPTY_STRINGprivate final RegexLINE_FEED_REGEXpublic final static StringUtilINSTANCE
-
Method Summary
Modifier and Type Method Description final StringtoSingleLine(String s)Normalizes given string and returns it represented as a single line: toSingleLine(""" select a, b from c where d = 1 and e = 2 """) == "select a, b from c where d = 1 and e = 2"final StringprependIndentExceptFirstLine(String s, String indent)Works as kotlin prependIndent except that the first line is excluded from the processing final RegexgetLINE_FEED_REGEX()-
-
Method Detail
-
toSingleLine
final String toSingleLine(String s)
Normalizes given string and returns it represented as a single line:
toSingleLine(""" select a, b from c where d = 1 and e = 2 """) == "select a, b from c where d = 1 and e = 2"
-
prependIndentExceptFirstLine
final String prependIndentExceptFirstLine(String s, String indent)
Works as kotlin prependIndent except that the first line is excluded from the processing
-
getLINE_FEED_REGEX
final Regex getLINE_FEED_REGEX()
-
-
-
-