System.SysUtils.TUnicodeEncoding.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); }
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
function | class protected public |
System.SysUtils.pas System.SysUtils.hpp |
System.SysUtils | TUnicodeEncoding |
Description
Calculates the number of characters generated by decoding a sequence of bytes.
GetCharCount generates a number of characters by decoding Bytes. The following table lists the parameters expected by this method and their description.
Parameter | Description |
---|---|
Bytes |
A byte array or a byte pointer. |
ByteCount |
Specifies the number of bytes to decode. |
The return value is the number of decoded characters.