API:System.SysUtils.TMBCSEncoding.GetCharCount
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(const System::Byte *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(const System::Byte *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 | TMBCSEncoding |
Beschreibung
Gibt die Anzahl der beim Decodieren einer Byte-Abfolge erzeugten Zeichen zurück. {{#multireplace:System.SysUtils.TMBCSEncoding.GetCharCount|H21=!|H25=%|H28=(|H29=)|H2A=*|H2B=+|H2F=/|H3C=<|H3D==|H3E=>|H5B=[|H5D=]|H5E=^|H7C=|}} erbt von {{#multireplace:System.SysUtils.TEncoding.GetCharCount|H21=!|H25=%|H28=(|H29=)|H2A=*|H2B=+|H2F=/|H3C=<|H3D==|H3E=>|H5B=[|H5D=]|H5E=^|H7C=|}}. Der folgende Inhalt bezieht sich auf {{#multireplace:System.SysUtils.TEncoding.GetCharCount|H21=!|H25=%|H28=(|H29=)|H2A=*|H2B=+|H2F=/|H3C=<|H3D==|H3E=>|H5B=[|H5D=]|H5E=^|H7C=|}}.
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.