StringCase

sealed interface StringCase

A general purpose strategy to transform a string to a specific case type.

Inheritors

Types

Link copied to clipboard
data object Capitalize : StringCase

Capitalize. hello ->Hello

Link copied to clipboard
data object Lower : StringCase

Lowercase. Hello ->hello

Link copied to clipboard
data object Upper : StringCase

Uppercase. Hello ->HELLO

Functions

Link copied to clipboard
abstract fun transform(string: String): String

Transforms a string according to the case.