System.SysUtils.TEncoding.GetCharCount

Aus RAD Studio API Documentation
Wechseln zu: Navigation, Suche

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

Eigenschaften

Typ Sichtbarkeit Quelle Unit Übergeordnet
function public
System.SysUtils.pas
System.SysUtils.hpp
System.SysUtils TEncoding

Beschreibung

Gibt die Anzahl der beim Decodieren einer Byte-Abfolge erzeugten Zeichen zurück.

TEncoding.GetCharCount erzeugt beim Decodieren von Bytes eine Anzahl von Zeichen.

Bytes kann ein Byte-Array oder ein Byte-Zeiger sein.

Der Parameter ByteCount legt die Anzahl der zu decodierenden Bytes fest.

Der Rückgabewert enthält die Anzahl der decodierten Zeichen.

Siehe auch