Package-level declarations

Text utilities to allow the use of ANSI escape codes and case converting tools among other features.

Properties

Link copied to clipboard
val CAMEL_CASE: Regex
Link copied to clipboard
val KEBAB_CASE: Regex
Link copied to clipboard
val PASCAL_CASE: Regex
Link copied to clipboard
val SNAKE_CASE: Regex

Functions

Link copied to clipboard
fun String.camelToSnake(): String

Transform the target string from camel case to snake case.

Link copied to clipboard
fun String.camelToWords(): List<String>
Link copied to clipboard
fun String.kebabToWords(): List<String>
Link copied to clipboard
fun String.snakeToCamel(): String

Transform the target string from snake case to camel case.

Link copied to clipboard
fun String.snakeToWords(): List<String>
Link copied to clipboard
fun Enum<*>.toWords(): String
fun List<String>.toWords(): List<String>
Link copied to clipboard
fun List<String>.wordsToCamel(): String
Link copied to clipboard
fun List<String>.wordsToKebab(): String
Link copied to clipboard
fun List<String>.wordsToPascal(): String
Link copied to clipboard
fun List<String>.wordsToSentence(): String
Link copied to clipboard
fun List<String>.wordsToSnake(): String
Link copied to clipboard
fun List<String>.wordsToTitle(): String