TCharacter.GetUnicodeCategory
Get the Unicode category of a character
Declaration
Source position: character.pas line 93
public
class function GetUnicodeCategory(AChar: UnicodeChar) : TUnicodeCategory
; Overload; Static;
class function GetUnicodeCategory(const AString: UnicodeString;
AIndex: Integer) : TUnicodeCategory
; Overload; Static;
Description
TCharacter.GetUnicodeCategory returns the Unicode category of a character. The character can be presented in 2 ways: AChar, a UTF16 Unicode character, or a surrogate pair in a Unicode string AString starting at position AIndex.
Errors
If AIndex is not a valid character index in the string AString, an EArgumentOutOfRangeException exception is raised. If the character at that position is not complete, an EArgumentException exception is raised.
See also
Name | Description |
---|---|
TUnicodeCategory | Unicode code point (character) category |