API:System.SysUtils.TMBCSEncoding.GetCharCount

提供:RAD Studio API Documentation

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 TMBCSEncoding

説明

一連のバイトをデコードして生成される文字数を計算します。 {{#multireplace:System.SysUtils.TMBCSEncoding.GetCharCount|H21=!|H25=%|H28=(|H29=)|H2A=*|H2B=+|H2F=/|H3C=<|H3D==|H3E=>|H5B=[|H5D=]|H5E=^|H7C=|}} は {{#multireplace:System.SysUtils.TEncoding.GetCharCount|H21=!|H25=%|H28=(|H29=)|H2A=*|H2B=+|H2F=/|H3C=<|H3D==|H3E=>|H5B=[|H5D=]|H5E=^|H7C=|}} を継承しています。以下の内容はすべて {{#multireplace:System.SysUtils.TEncoding.GetCharCount|H21=!|H25=%|H28=(|H29=)|H2A=*|H2B=+|H2F=/|H3C=<|H3D==|H3E=>|H5B=[|H5D=]|H5E=^|H7C=|}} を参照しています。

一連のバイトをデコードして生成される文字数を計算します。

TEncoding.GetCharCount は、Bytes をデコードして生成される文字数を計算します。

Bytes は、バイト配列かバイト ポインタです。

ByteCount パラメータには、デコードするバイト数を指定します。

戻り値 は、デコードされた文字数です。

関連項目