Extensions for kotlin.String

chomp

fun String.chomp(
    separator: String,
    onMissingDelimiter: () -> Pair<String, String>
): Pair<String, String>

Splits the given string into two parts before and after separator.

decodeBase64

fun String.decodeBase64(): String

Decode String from base64 format

encodeBase64

fun String.encodeBase64(): String

Encode String in base64 format

escapeHTML

fun String.escapeHTML(): String

Escapes the characters in a String using HTML entities

toCharArray

fun String.toCharArray(): CharArray

Convert String to CharArray