toLowerCase
@Deprecated(
"This method allows passing an empty locale list, which will pull a locale in a way " +
"that can't be backed by snapshot state. Call toLowerCase with an explicit locale " +
"instead. If you have a non-empty locale list, the correct thing to do is use the first " +
"locale in the list."
)
public 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
| localeList | A locale list used for lower case mapping. Only the first locale is effective. If empty locale list is passed, use the current locale instead. |
Return
A lowercase transformed string.
toLowerCase
public fun AnnotatedString.toLowerCase(locale: Locale): 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
| locale | The locale used for lower case mapping. |
Return
A lowercase transformed AnnotatedString.
toLowerCase
public fun String.toLowerCase(locale: Locale): String
Returns lowercase transformed String.
Parameters
| locale | a locale object |
Return
a transformed text
toLowerCase
public fun String.toLowerCase(localeList: LocaleList): String
Returns lowercase transformed String.
Parameters
| localeList | a locale list object. If empty locale list object is passed, use current locale instead. |
Return
a transformed text