System.SysUtils.TEncoding.GetCharCount

De RAD Studio API Documentation
Aller à : navigation, rechercher

Delphi

function GetCharCount(Bytes: PByte; ByteCount: Integer): Integer; overload; virtual; abstract;
function GetCharCount(const Bytes: array of Byte): Integer; overload;
function GetCharCount(const Bytes: TBytes): Integer; overload; inline;
function GetCharCount(const Bytes: array of Byte; ByteIndex, ByteCount: Integer): Integer; overload;
function GetCharCount(const Bytes: TBytes; ByteIndex, ByteCount: Integer): Integer; overload;

C++

virtual int __fastcall GetCharCount(System::PByte Bytes, int ByteCount) = 0 /* overload */;
int __fastcall GetCharCount(const System::Byte *Bytes, const int Bytes_High)/* overload */;
int __fastcall GetCharCount(const System::DynamicArray<System::Byte> Bytes)/* overload */;
int __fastcall GetCharCount(const System::Byte *Bytes, const int Bytes_High, int ByteIndex, int ByteCount)/* overload */;
int __fastcall GetCharCount(const System::DynamicArray<System::Byte> Bytes, int ByteIndex, int ByteCount)/* overload */;

Propriétés

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

Description

Calcule un nombre de caractères généré en décodant une séquence d'octets.

TEncoding.GetCharCount génère un nombre de caractères en décodant Bytes.

Bytes peut être un tableau d'octets ou un pointeur d'octets.

Le paramètre ByteCount spécifie le nombre d'octets à décoder.

La valeur de retour est le nombre de caractères décodés.

Voir aussi