System.Character.TCharacter

De RAD Studio API Documentation
Aller à : navigation, rechercher

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 */;
};

Propriétés

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


Description

Avertissement : TCharacter est obsolète. Veuillez utiliser TCharHelper.

TCharacter fournit les fonctions de classe pour la conversion et l'identification des caractères Unicode.

Utilisez les fonctions TCharacter pour :

  • Convertir des caractères Unicode de UTF-32 en UTF-16, et inversement.
  • Identifier le type d'un caractère : lettre, chiffre, ponctuation, et ainsi de suite.

TCharacter utilise les dernières définitions des données de type caractère Unicode, telles que définies par unicode.org. N'instanciez pas TCharacter ; il contient seulement des fonctions de classe.

Voir aussi