System.SysUtils.TEncoding.GetByteCount

De RAD Studio API Documentation
Aller à : navigation, rechercher

Delphi

function GetByteCount(Chars: PChar; CharCount: Integer): Integer; overload; virtual; abstract;
function GetByteCount(const Chars: Char): Integer; overload; inline;
function GetByteCount(const Chars: array of Char): Integer; overload;
function GetByteCount(const Chars: TCharArray): Integer; overload;
function GetByteCount(const Chars: array of Char; CharIndex, CharCount: Integer): Integer; overload;
function GetByteCount(const Chars: TCharArray; CharIndex, CharCount: Integer): Integer; overload;
function GetByteCount(const S: string): Integer; overload;
function GetByteCount(const S: string; CharIndex, CharCount: Integer): Integer; overload;

C++

virtual int __fastcall GetByteCount(System::WideChar * Chars, int CharCount) = 0 /* overload */;
int __fastcall GetByteCount(const System::WideChar Chars)/* overload */;
int __fastcall GetByteCount(System::WideChar const *Chars, const int Chars_High)/* overload */;
int __fastcall GetByteCount(const System::DynamicArray<System::WideChar> Chars)/* overload */;
int __fastcall GetByteCount(System::WideChar const *Chars, const int Chars_High, int CharIndex, int CharCount)/* overload */;
int __fastcall GetByteCount(const System::DynamicArray<System::WideChar> Chars, int CharIndex, int CharCount)/* overload */;
int __fastcall GetByteCount(const System::UnicodeString S)/* overload */;
int __fastcall GetByteCount(const System::UnicodeString S, int CharIndex, int CharCount)/* overload */;

Propriétés

Type Visibilité  Source Unité  Parent
function public
System.SysUtils.pas
System.SysUtils.hpp
System.SysUtils TEncoding

Description

Renvoie le nombre d'octets généré par l'encodage de Chars.

Renvoie le nombre d'octets généré par l'encodage de Chars. Notez que le nombre d'octets d'une chaîne n'est pas nécessairement exactement proportionnel au nombre de caractères d'une chaîne ou d'un tableau de caractères donné.

Le paramètre Chars peut être un tableau de caractères ou un pointeur caractère, contenant les octets à compter.

Le paramètre S fait référence à une chaîne UnicodeString à partir de laquelle le nombre d'octets sera extrait.

Le paramètre CharCount spécifie le nombre de caractères à encoder.

Le paramètre CharIndex indique l'index dans le tableau Chars où le comptage doit commencer.

Le paramètre CharCount indique le nombre de caractères qui doivent être inclus lors du comptage des octets.

La valeur de retour est le nombre d'octets du paramètre Chars ou S transmis.

Voir aussi