🌈 Create new beautiful Compose Gradients with our new wesite ->
Function

toUpperCase

Create upper case transformed AnnotatedString The uppercase sometimes maps different number of characters.

toUpperCase

Source set: Common
public fun AnnotatedString.toUpperCase(
    localeList: LocaleList = LocaleList.current
): AnnotatedString

Create upper case transformed AnnotatedString

The uppercase 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 uppercase mapping context, this function won't transform the character, e.g. style starts from between base alphabet character and accent character.

Parameters

localeList A locale list used for upper case mapping. Only the first locale is effective. If empty locale list is passed, use the current locale instead.

Return

A uppercase transformed string.

toUpperCase

Source set: Common
public fun String.toUpperCase(locale: Locale): String

Returns uppercase transformed String.

Parameters

locale a locale object

Return

a transformed text

toUpperCase

Source set: Common
public fun String.toUpperCase(localeList: LocaleList): String

Returns uppercase transformed String.

Parameters

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

Return

a transformed text