capitalizeWords

fun Collection<String>.capitalizeWords(exceptions: List<String>? = null): List<String>

Capitalizes all the strings unless they are specified in the exceptions list

Return

list of capitalized strings

Parameters

exceptions

words or characters to exclude during capitalization


fun String?.capitalizeWords(exceptions: List<String>? = null): String

Returns a copy of this strings having its first letter uppercase, or the original string, if it's empty or already starts with an upper case letter.

Parameters

exceptions

words or characters to exclude during capitalization