FIRST_LETTER

FIRST_LETTER("first letter", { string, _ -> string.split(' ').joinToString(" ") { it.toSentenceCase() } })

Makes the first letter of each word uppercase.

Functions

Link copied to clipboard
open override fun toString(): String

Returns the descriptor of the capitalization mode.

Link copied to clipboard
fun transform(string: String, random: Random = Random.Default): String

Invokes transformer with random.

Properties

Link copied to clipboard
val descriptor: String

the name of the capitalization mode

Link copied to clipboard
val name: String
Link copied to clipboard
val ordinal: Int