enum class CapitalizationMode
A mode in which a word should be capitalized.
descriptor
- the name of the capitalization mode
transform
- the function which capitalizes the given string to the mode's format
Does not change the string. |
|
Makes the first character uppercase and all characters after that lowercase. |
|
Makes all characters uppercase. |
|
Makes all characters lowercase. |
|
Makes the first letter of each word uppercase. |
|
Makes each letter randomly uppercase or lowercase. |
val descriptor: String
the name of the capitalization mode |
|
val transform: (String) -> String
the function which capitalizes the given string to the mode's format |
fun toString(): String
Returns the descriptor of the capitalization mode. |
fun getMode(descriptor: String): CapitalizationMode
Returns the capitalization mode with the given name. |