LocaleContext
object type22 methodsavailable in: camelot
Methods
In the emulator: 22 implemented.
| method | what it does | status |
|---|---|---|
CompareStrings | Compares two UTF-8 strings using the options specified on a collator. · warcraft.wiki.gg ↗(left: string, right: string, strength: CollationStrength): number? | implemented |
FindBreaks | Opens a break iterator for locating text boundaries in the context locale. · warcraft.wiki.gg ↗(text: string, breakType: BreakType): number[]? | implemented |
FindStringMatches | Creates a string search iterator using a collator and returns every match position. · warcraft.wiki.gg ↗(text: string, pattern: string, strength: CollationStrength): number[]? | implemented |
FoldCase | Case-folds the characters in a string; case-folding is locale-independent and not context-sensitive. · warcraft.wiki.gg ↗(text: string): string? | implemented |
FormatCurrency | Formats a double as a localized currency value using the provided ISO 4217 currency code. · warcraft.wiki.gg ↗(number: number, currencyCode: string): string? | implemented |
FormatDate | Formats Unix time as localized date text using locale date patterns, symbols, style, and optional time zone. · warcraft.wiki.gg ↗(unixTimeSeconds: number, style: DateTimeStyle, timeZone: string): string? | implemented |
FormatDateTime | Formats Unix time as localized date and time text using locale patterns, symbols, styles, and optional time zone. · warcraft.wiki.gg ↗(unixTimeSeconds: number, dateStyle: DateTimeStyle, timeStyle: DateTimeStyle, timeZone: string): string? | implemented |
FormatNumber | Formats a double with locale number formatting using locale symbols, grouping, and the selected non-currency style. · warcraft.wiki.gg ↗(number: number, style: NumberStyle): string? | implemented |
FormatTime | Formats Unix time as localized time text using locale time patterns, symbols, style, and optional time zone. · warcraft.wiki.gg ↗(unixTimeSeconds: number, style: DateTimeStyle, timeZone: string): string? | implemented |
GetCurrencyName | Returns the display name for a currency in the context locale. · warcraft.wiki.gg ↗(currencyCode: string, style: CurrencyNameStyle): string? | implemented |
GetDisplayName | Gets a display name suitable for the specified locale. · warcraft.wiki.gg ↗(displayLocale: string): string? | implemented |
GetLocale | Gets the locale used by this locale context. · warcraft.wiki.gg ↗(): string | implemented |
GetSortKey | Transforms a string into a collation sort key. · warcraft.wiki.gg ↗(text: string, strength: CollationStrength): string? | implemented |
Length | Counts character break boundaries in UTF-8 text. · warcraft.wiki.gg ↗(text: string): number? | implemented |
ParseCurrency | Parses an entire localized currency string into a double amount and ISO 4217 currency code. · warcraft.wiki.gg ↗(text: string): CurrencyParseResult? | implemented |
ParseNumber | Parses an entire localized number string into a double using the selected non-currency number formatter. · warcraft.wiki.gg ↗(text: string, style: NumberStyle): number? | implemented |
SelectPlural | Returns the keyword of the first plural rule that applies to a number. · warcraft.wiki.gg ↗(number: number, pluralType: PluralType): string? | implemented |
SetLocale | Sets the locale used by this locale context. · warcraft.wiki.gg ↗(locale: string): boolean | implemented |
ToLower | Lowercases the characters in a string; casing is locale-dependent and context-sensitive. · warcraft.wiki.gg ↗(text: string): string? | implemented |
ToTitle | Titlecases a string using titlecase positions determined by the default Unicode algorithm. · warcraft.wiki.gg ↗(text: string): string? | implemented |
ToUpper | Uppercases the characters in a string; casing is locale-dependent and context-sensitive. · warcraft.wiki.gg ↗(text: string): string? | implemented |
TransformLocale | Applies a locale transform to the context locale and returns the transformed locale string. · warcraft.wiki.gg ↗(transform: LocaleTransform): string? | implemented |
sources
Methods and inheritance: Blizzard's API documentation (Blizzard_APIDocumentationGenerated) (camelot 1.60.1). Descriptions: warcraft.wiki.gg's API pages, by its contributors, CC BY-SA 4.0 ↗.