v0.13.6

C_Intl.GetCharacterProperties

functionguessedavailable in: camelot

Returns Unicode property values for the first code point in a string.

signaturewowlua
function C_Intl.GetCharacterProperties(    text: string): CharacterProperties?

Parameters

nametypedescription
textstringThe string whose first code point is tested.

Returns

result · CharacterProperties? · Unicode property values for the first code point.

CharacterProperties
fieldtypedescription
codePointnumberThe Unicode code point tested for character properties.
isAlphabeticbooleanTrue if the code point is a letter character with general category L.
isDigitbooleanTrue if the code point is a digit character with general category Nd.
isWhitespacebooleanTrue if the code point has the Unicode White_Space property.
generalCategorystringThe short Unicode property value name for the code point's general category.
scriptCodestringThe short ISO 15924 script code for the code point's script.
blockCodestringThe short Unicode property value name for the code point's block.

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