toLowerCase

Function

Common
fun String.toLowerCase(locale: Locale): String

Returns lowercase transformed String.

Parameters

localea locale object

Returns

a transformed text
Common
fun String.toLowerCase(localeList: LocaleList): String

Returns lowercase transformed String.

Parameters

localeLista locale list object. If empty locale list object is passed, use current locale instead.

Returns

a transformed text
Common
fun AnnotatedString.toLowerCase(localeList: LocaleList = LocaleList.current): AnnotatedString

Create lower case transformed AnnotatedString

The lowercase sometimes maps different number of characters. This function adjusts the text style and paragraph style ranges to transformed offset.

Note, if the style's offset is middle of the lowercase mapping context, this function won't transform the character, e.g. style starts from between base alphabet character and accent character.

Parameters

localeListA locale list used for lower case mapping. Only the first locale is effective. If empty locale list is passed, use the current locale instead.

Returns

A lowercase transformed string.