LocaleUtils

Locale operations backed by the same static ICU archive and data as Skia text shaping.

Functions

Link copied to clipboard
fun localeInfo(languageTag: String): LocaleInfo

Accepts a BCP 47 tag or the POSIX locale identifier supplied by the operating system.

Link copied to clipboard
fun lowercase(text: String, languageTag: String): String
Link copied to clipboard
fun titlecase(text: String, languageTag: String): String

Title-cases a supplied initial code point; the caller preserves the remainder of the text.

Link copied to clipboard
fun uppercase(text: String, languageTag: String): String