v0.13.7

C_Intl.CompareStrings

functionguessedavailable in: camelot

Compares two UTF-8 strings using the options specified on a collator.

signaturewowlua
function C_Intl.CompareStrings(    left: string,    right: string,    strength: CollationStrength): number?

Parameters

nametypedescription
leftstringThe first UTF-8 string passed to collation comparison.
rightstringThe second UTF-8 string passed to collation comparison.
strengthCollationStrengthThe comparison level used by the collator for ordering and equality.

Returns

result · number? · The comparison result: less than, equal to, or greater than zero.

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 ↗.