System.Character.TCharacter
Delphi
TCharacter = record
C++
struct DECLSPEC_DRECORD TCharacter
{
public:
static const System::WideChar MaxHighSurrogate = (System::WideChar)(0xdbff);
static const System::WideChar MaxLowSurrogate = (System::WideChar)(0xdfff);
static const System::WideChar MaxSurrogate = (System::WideChar)(0xdfff);
static const System::WideChar MinHighSurrogate = (System::WideChar)(0xd800);
static const System::WideChar MinLowSurrogate = (System::WideChar)(0xdc00);
static 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 */;
};
Eigenschaften
Typ | Sichtbarkeit | Quelle | Unit | Übergeordnet |
---|---|---|---|---|
record struct |
public | System.Character.pas System.Character.hpp |
System.Character | System.Character |
Beschreibung
Warnung: TCharacter ist veraltet. Bitte verwenden Sie TCharHelper.
TCharacter stellt Klassenfunktionen zur Umwandlung und Identifikation von Unicode-Zeichen bereit.
Anwendung der TCharacter-Funktionen:
- Umwandeln von Unicode-Zeichen aus UTF-32 in UTF-16 und zurück.
- Feststellen des Zeichentyps: Buchstabe, Ziffer, Interpunktion usw.
TCharacter verwendet die neuesten Definitionen der von der unicode.org definierten Unicode-Zeichentypdaten. Instantiieren Sie TCharacter nicht; es enthält nur Klassenfunktionen.