Package-level declarations

Types

Link copied to clipboard

Functions

Link copied to clipboard
inline fun CharSequence.countWords(wordSeparator: (Char) -> Boolean = { it == ' ' }): Int

Returns the number of words in the string without creating intermediate objects.

Link copied to clipboard
inline fun CharSequence.forEachSplit(delimiter: Char, action: (segment: CharSequence) -> Unit)

Executes the given action for each segment of the CharSequence split by the delimiter. This function avoids creating intermediate collections, making it more memory-efficient for large strings or frequent calls compared to String.split().forEach().