v0.13.7

LocaleContext

object type22 methodsavailable in: camelot

Methods

In the emulator: 22 implemented.

methodwhat it doesstatus
CompareStringsCompares two UTF-8 strings using the options specified on a collator. · warcraft.wiki.gg ↗
(left: string, right: string, strength: CollationStrength): number?
implemented
FindBreaksOpens a break iterator for locating text boundaries in the context locale. · warcraft.wiki.gg ↗
(text: string, breakType: BreakType): number[]?
implemented
FindStringMatchesCreates a string search iterator using a collator and returns every match position. · warcraft.wiki.gg ↗
(text: string, pattern: string, strength: CollationStrength): number[]?
implemented
FoldCaseCase-folds the characters in a string; case-folding is locale-independent and not context-sensitive. · warcraft.wiki.gg ↗
(text: string): string?
implemented
FormatCurrencyFormats a double as a localized currency value using the provided ISO 4217 currency code. · warcraft.wiki.gg ↗
(number: number, currencyCode: string): string?
implemented
FormatDateFormats 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
FormatDateTimeFormats 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
FormatNumberFormats 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
FormatTimeFormats 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
GetCurrencyNameReturns the display name for a currency in the context locale. · warcraft.wiki.gg ↗
(currencyCode: string, style: CurrencyNameStyle): string?
implemented
GetDisplayNameGets a display name suitable for the specified locale. · warcraft.wiki.gg ↗
(displayLocale: string): string?
implemented
GetLocaleGets the locale used by this locale context. · warcraft.wiki.gg ↗
(): string
implemented
GetSortKeyTransforms a string into a collation sort key. · warcraft.wiki.gg ↗
(text: string, strength: CollationStrength): string?
implemented
LengthCounts character break boundaries in UTF-8 text. · warcraft.wiki.gg ↗
(text: string): number?
implemented
ParseCurrencyParses an entire localized currency string into a double amount and ISO 4217 currency code. · warcraft.wiki.gg ↗
(text: string): CurrencyParseResult?
implemented
ParseNumberParses an entire localized number string into a double using the selected non-currency number formatter. · warcraft.wiki.gg ↗
(text: string, style: NumberStyle): number?
implemented
SelectPluralReturns the keyword of the first plural rule that applies to a number. · warcraft.wiki.gg ↗
(number: number, pluralType: PluralType): string?
implemented
SetLocaleSets the locale used by this locale context. · warcraft.wiki.gg ↗
(locale: string): boolean
implemented
ToLowerLowercases the characters in a string; casing is locale-dependent and context-sensitive. · warcraft.wiki.gg ↗
(text: string): string?
implemented
ToTitleTitlecases a string using titlecase positions determined by the default Unicode algorithm. · warcraft.wiki.gg ↗
(text: string): string?
implemented
ToUpperUppercases the characters in a string; casing is locale-dependent and context-sensitive. · warcraft.wiki.gg ↗
(text: string): string?
implemented
TransformLocaleApplies 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 ↗.