System.Character.TCharacter

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

TCharacter = record

C++

struct DECLSPEC_DRECORD TCharacter
{
public:
    static _DELPHI_CONST System::WideChar MaxHighSurrogate = (System::WideChar)(0xdbff);
    static _DELPHI_CONST System::WideChar MaxLowSurrogate = (System::WideChar)(0xdfff);
    static _DELPHI_CONST System::WideChar MaxSurrogate = (System::WideChar)(0xdfff);
    static _DELPHI_CONST System::WideChar MinHighSurrogate = (System::WideChar)(0xd800);
    static _DELPHI_CONST System::WideChar MinLowSurrogate = (System::WideChar)(0xdc00);
    static _DELPHI_CONST System::WideChar MinSurrogate = (System::WideChar)(0xd800);
    static int __fastcall MaxCodePoint();
    static System::UnicodeString __fastcall UnicodeDataVersion();
    static System::UnicodeString __fastcall ConvertFromUtf32(unsigned C);
    static unsigned __fastcall ConvertToUtf32(const System::UnicodeString S, int Index)/* overload */;
    static unsigned __fastcall ConvertToUtf32(const System::UnicodeString S, int Index, /* out */ int &CharLength)/* overload */;
    static unsigned __fastcall ConvertToUtf32(const System::WideChar HighSurrogate, const System::WideChar LowSurrogate)/* overload */;
    static double __fastcall GetNumericValue(System::WideChar C)/* overload */;
    static double __fastcall GetNumericValue(unsigned C)/* overload */;
    static double __fastcall GetNumericValue(const System::UnicodeString S, int Index)/* overload */;
    static TUnicodeCategory __fastcall GetUnicodeCategory(System::WideChar C)/* overload */;
    static TUnicodeCategory __fastcall GetUnicodeCategory(unsigned C)/* overload */;
    static TUnicodeCategory __fastcall GetUnicodeCategory(const System::UnicodeString S, int Index)/* overload */;
    static bool __fastcall IsControl(System::WideChar C)/* overload */;
    static bool __fastcall IsControl(unsigned C)/* overload */;
    static bool __fastcall IsControl(const System::UnicodeString S, int Index)/* overload */;
    static bool __fastcall IsDefined(System::WideChar C)/* overload */;
    static bool __fastcall IsDefined(unsigned C)/* overload */;
    static bool __fastcall IsDefined(const System::UnicodeString S, int Index)/* overload */;
    static bool __fastcall IsDigit(System::WideChar C)/* overload */;
    static bool __fastcall IsDigit(unsigned C)/* overload */;
    static bool __fastcall IsDigit(const System::UnicodeString S, int Index)/* overload */;
    static bool __fastcall IsHighSurrogate(System::WideChar C)/* overload */;
    static bool __fastcall IsHighSurrogate(unsigned C)/* overload */;
    static bool __fastcall IsHighSurrogate(const System::UnicodeString S, int Index)/* overload */;
    static bool __fastcall IsLetter(System::WideChar C)/* overload */;
    static bool __fastcall IsLetter(unsigned C)/* overload */;
    static bool __fastcall IsLetter(const System::UnicodeString S, int Index)/* overload */;
    static bool __fastcall IsLetterOrDigit(System::WideChar C)/* overload */;
    static bool __fastcall IsLetterOrDigit(unsigned C)/* overload */;
    static bool __fastcall IsLetterOrDigit(const System::UnicodeString S, int Index)/* overload */;
    static bool __fastcall IsLower(System::WideChar C)/* overload */;
    static bool __fastcall IsLower(unsigned C)/* overload */;
    static bool __fastcall IsLower(const System::UnicodeString S, int Index)/* overload */;
    static bool __fastcall IsLowSurrogate(System::WideChar C)/* overload */;
    static bool __fastcall IsLowSurrogate(unsigned C)/* overload */;
    static bool __fastcall IsLowSurrogate(const System::UnicodeString S, int Index)/* overload */;
    static bool __fastcall IsNumber(System::WideChar C)/* overload */;
    static bool __fastcall IsNumber(unsigned C)/* overload */;
    static bool __fastcall IsNumber(const System::UnicodeString S, int Index)/* overload */;
    static bool __fastcall IsPunctuation(System::WideChar C)/* overload */;
    static bool __fastcall IsPunctuation(unsigned C)/* overload */;
    static bool __fastcall IsPunctuation(const System::UnicodeString S, int Index)/* overload */;
    static bool __fastcall IsSeparator(System::WideChar C)/* overload */;
    static bool __fastcall IsSeparator(unsigned C)/* overload */;
    static bool __fastcall IsSeparator(const System::UnicodeString S, int Index)/* overload */;
    static bool __fastcall IsSurrogate(System::WideChar Surrogate)/* overload */;
    static bool __fastcall IsSurrogate(unsigned Surrogate)/* overload */;
    static bool __fastcall IsSurrogate(const System::UnicodeString S, int Index)/* overload */;
    static bool __fastcall IsSurrogatePair(const System::WideChar HighSurrogate, const System::WideChar LowSurrogate)/* overload */;
    static bool __fastcall IsSurrogatePair(const System::UnicodeString S, int Index)/* overload */;
    static bool __fastcall IsSymbol(System::WideChar C)/* overload */;
    static bool __fastcall IsSymbol(unsigned C)/* overload */;
    static bool __fastcall IsSymbol(const System::UnicodeString S, int Index)/* overload */;
    static bool __fastcall IsUpper(System::WideChar C)/* overload */;
    static bool __fastcall IsUpper(unsigned C)/* overload */;
    static bool __fastcall IsUpper(const System::UnicodeString S, int Index)/* overload */;
    static bool __fastcall IsWhiteSpace(System::WideChar C)/* overload */;
    static bool __fastcall IsWhiteSpace(unsigned C)/* overload */;
    static bool __fastcall IsWhiteSpace(const System::UnicodeString S, int Index)/* overload */;
    static System::WideChar __fastcall ToLower(System::WideChar C)/* overload */;
    static unsigned __fastcall ToLower(unsigned C)/* overload */;
    static System::UnicodeString __fastcall ToLower(const System::UnicodeString S)/* overload */;
    static System::WideChar __fastcall ToUpper(System::WideChar C)/* overload */;
    static unsigned __fastcall ToUpper(unsigned C)/* overload */;
    static System::UnicodeString __fastcall ToUpper(const System::UnicodeString S)/* overload */;
};

Properties

Type Visibility Source Unit Parent
record
struct
public
System.Character.pas
System.Character.hpp
System.Character System.Character

Description

Attention: TCharacter is deprecated. Please use TCharHelper.

TCharacter provides class functions for the conversion and identification of Unicode characters.

Use TCharacter functions to:

  • Convert Unicode characters from UTF-32 to UTF-16 and back.
  • Identify the type of a character: letter, digit, punctuation, and so on.

TCharacter uses the latest definitions of Unicode character type data as defined by unicode.org. You should not instantiate TCharacter; it contains only class functions.

See Also