CapitalizationMode

A mode in which a word should be capitalized.

Entries

Link copied to clipboard

Does not change the string.

Link copied to clipboard

Makes the first character uppercase and all characters after that lowercase.

Link copied to clipboard

Makes all characters uppercase.

Link copied to clipboard

Makes all characters lowercase.

Link copied to clipboard

Makes the first letter of each word uppercase.

Link copied to clipboard

Makes each letter randomly uppercase or lowercase.

Types

Link copied to clipboard
object Companion

Holds static elements.

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.

Link copied to clipboard
fun valueOf(value: String): CapitalizationMode

Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Link copied to clipboard

Returns an array containing the constants of this enum type, in the order they're declared.

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