API: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(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); }
Properties
| Type | Visibility | Source | Unit | Parent |
|---|---|---|---|---|
| function | class protected public |
System.SysUtils.pas System.SysUtils.hpp |
System.SysUtils | TUnicodeEncoding |
Description
Calculates a number of characters generated by decoding a sequence of bytes. {{#multireplace:System.SysUtils.TUnicodeEncoding.GetCharCount|H21=!|H25=%|H28=(|H29=)|H2A=*|H2B=+|H2F=/|H3C=<|H3D==|H3E=>|H5B=[|H5D=]|H5E=^|H7C=|}} inherits from {{#multireplace:System.SysUtils.TEncoding.GetCharCount|H21=!|H25=%|H28=(|H29=)|H2A=*|H2B=+|H2F=/|H3C=<|H3D==|H3E=>|H5B=[|H5D=]|H5E=^|H7C=|}}. All content below this line refers to {{#multireplace:System.SysUtils.TEncoding.GetCharCount|H21=!|H25=%|H28=(|H29=)|H2A=*|H2B=+|H2F=/|H3C=<|H3D==|H3E=>|H5B=[|H5D=]|H5E=^|H7C=|}}.
Calculates a number of characters generated by decoding a sequence of bytes.
TEncoding.GetCharCount generates a number of characters by decoding Bytes.
Bytes can be a byte array or a byte pointer.
The ByteCount parameter specifies the number of bytes to decode.
The Return Value is the number of decoded characters.
See Also