Index
hexagon_core / com.hexagonkt.helpers / kotlin.String
Extensions for kotlin.String¶
Name | Summary |
---|---|
banner | Format the string as a banner with a delimiter above and below text. The character used to render the delimiter is defined.fun String .banner(bannerDelimiter: String = "*"): String |
camelToSnake | Transform the target string from camel case to snake case.fun String .camelToSnake(): String |
exec | TODO Add use case and example in documentation. TODO Support multiple words parameters by processing " and 'fun String .exec(workingDirectory: File = File(System.getProperty("user.dir")), timeout: Long = Long.MAX_VALUE, fail: Boolean = false): String |
filter | TODO.fun String .filter(prefix: String , suffix: String , vararg parameters: Pair < String , String >): String |
filterVars | Filter the target string substituting each key by its value. The keys format is: #{key} and all occurrences are replaced by the supplied value.fun String .filterVars(parameters: Map <*, *>): String TODO. fun String .filterVars(vararg parameters: Pair <*, *>): String |
globToRegex | TODO.fun String .globToRegex(): Regex |
prependIndent | TODO.fun String .prependIndent(count: Int = 4, pad: String = " "): String |
snakeToCamel | Transform the target string from snake case to camel case.fun String .snakeToCamel(): String |
stripAccents | TODO.fun String .stripAccents(): String |
toStream | TODO.fun String .toStream(): InputStream |