API:System.SysUtils.TUnicodeEncoding.GetCharCount

Aus RAD Studio API Documentation
Wechseln zu: Navigation, Suche

Delphi

function GetCharCount(Bytes: PByte; ByteCount: Integer): Integer; overload; override;

C++

virtual int __fastcall GetCharCount(System::PByte Bytes, int ByteCount)/* overload */;
inline int __fastcall  GetCharCount(System::Byte const *Bytes, const int Bytes_High){ return TEncoding::GetCharCount(Bytes, Bytes_High); }
inline int __fastcall  GetCharCount(const System::DynamicArray<System::Byte> Bytes){ return TEncoding::GetCharCount(Bytes); }
inline int __fastcall  GetCharCount(System::Byte const *Bytes, const int Bytes_High, int ByteIndex, int ByteCount){ return TEncoding::GetCharCount(Bytes, Bytes_High, ByteIndex, ByteCount); }
inline int __fastcall  GetCharCount(const System::DynamicArray<System::Byte> Bytes, int ByteIndex, int ByteCount){ return TEncoding::GetCharCount(Bytes, ByteIndex, ByteCount); }

Eigenschaften

Typ Sichtbarkeit Quelle Unit Übergeordnet
function
class protected
public
System.SysUtils.pas
System.SysUtils.hpp
System.SysUtils TUnicodeEncoding

Beschreibung

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

System.SysUtils.TUnicodeEncoding.GetCharCount erbt von System.SysUtils.TEncoding.GetCharCount. Der folgende Inhalt bezieht sich auf System.SysUtils.TEncoding.GetCharCount.

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