FIRST_LETTER

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

Makes the first letter of each word uppercase.

Functions

toString
Link copied to clipboard
open override fun toString(): String
Returns the descriptor of the capitalization mode.

Properties

descriptor
Link copied to clipboard
val descriptor: String
the name of the capitalization mode
name
Link copied to clipboard
val name: String
ordinal
Link copied to clipboard
val ordinal: Int
transform
Link copied to clipboard
val transform: (String) -> String
the function which capitalizes the given string to the mode's format