System.Character.TCharacter.GetUnicodeCategory

From Appmethod Libraries
Jump to: navigation, search

Object Pascal

class function GetUnicodeCategory(C: Char): TUnicodeCategory; overload; inline; static;
class function GetUnicodeCategory(C: UCS4Char): TUnicodeCategory; overload; inline; static;
class function GetUnicodeCategory(const S: string; Index: Integer): TUnicodeCategory; overload; inline; static;

C++

static TUnicodeCategory __fastcall GetUnicodeCategory(System::WideChar C)/* overload */;
static TUnicodeCategory __fastcall GetUnicodeCategory(System::UCS4Char C)/* overload */;
static TUnicodeCategory __fastcall GetUnicodeCategory(const System::UnicodeString S, int Index)/* overload */;

Properties

Type Visibility Source Unit Parent
function public
System.Character.pas
System.Character.hpp
System.Character TCharacter

Description

Returns the Unicode category of the provided UTF-16 character.

You can specify the <C> parameter as a Char or a UCS4Char. Alternatively, you can provide a String and the <Index> of the character in the provided String.

See Also

Code Examples