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); }
プロパティ
種類 | 可視性 | ソース | ユニット | 親 |
---|---|---|---|---|
function | class protected public |
System.SysUtils.pas System.SysUtils.hpp |
System.SysUtils | TUnicodeEncoding |
説明
バイト シーケンスをデコードして生成された文字数を計算します。
GetCharCount は、Bytes をデコードして生成された文字数を返します。 このメソッドで利用できるパラメータとその説明を以下の表に示します。
パラメータ | 説明 |
---|---|
Bytes |
バイト配列またはバイト ポインタ。 |
ByteCount |
デコードするバイト数を指定します。 |
戻り値は、デコードされた文字数です。