v0.13.8

C_Intl.ParseCurrency

functionguessedavailable in: camelot

Parses an entire localized currency string into a double amount and ISO 4217 currency code.

signaturewowlua
function C_Intl.ParseCurrency(    text: string): CurrencyParseResult?

Parameters

nametypedescription
textstringThe localized currency text to parse for both amount and ISO 4217 code.

Returns

result · CurrencyParseResult? · The numeric amount and ISO 4217 currency code parsed from the localized currency text.

CurrencyParseResult
fieldtypedescription
amountnumberThe numeric amount parsed by the currency parser.
currencyCodestringThe ISO 4217 currency code parsed alongside the amount.

Blizzard's documentation says it may return nothing.

In wowlua's emulated client

guessedThe answer is worked out from Blizzard's documentation, its UI code and the function's name, and not checked against the client. what the statuses mean

Restrictions

sources

Signature and flags: Blizzard's API documentation (Blizzard_APIDocumentationGenerated) (Intl system, camelot 1.60.1). Description: warcraft.wiki.gg's API pages ↗, by its contributors, CC BY-SA 4.0 ↗.