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.

Properties

Link copied to clipboard
val entries: EnumEntries<CapitalizationMode>

Returns a representation of an immutable list of all enum entries, in the order they're declared.

Link copied to clipboard
val transform: (String, Random) -> String

The function which capitalizes the given string to the mode's format.

Functions

Link copied to clipboard
fun toLocalizedString(): String

Returns the localized string name of this mode.

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.