System.SysUtils.TEncoding.GetByteCount

提供: RAD Studio API Documentation
移動先: 案内検索

Delphi

function GetByteCount(Chars: PChar; CharCount: Integer): Integer; overload; virtual; abstract;
function GetByteCount(const Chars: Char): Integer; overload; inline;
function GetByteCount(const Chars: array of Char): Integer; overload;
function GetByteCount(const Chars: TCharArray): Integer; overload;
function GetByteCount(const Chars: array of Char; CharIndex, CharCount: Integer): Integer; overload;
function GetByteCount(const Chars: TCharArray; CharIndex, CharCount: Integer): Integer; overload;
function GetByteCount(const S: string): Integer; overload;
function GetByteCount(const S: string; CharIndex, CharCount: Integer): Integer; overload;

C++

virtual int __fastcall GetByteCount(System::WideChar * Chars, int CharCount) = 0 /* overload */;
int __fastcall GetByteCount(const System::WideChar Chars)/* overload */;
int __fastcall GetByteCount(System::WideChar const *Chars, const int Chars_High)/* overload */;
int __fastcall GetByteCount(const System::DynamicArray<System::WideChar> Chars)/* overload */;
int __fastcall GetByteCount(System::WideChar const *Chars, const int Chars_High, int CharIndex, int CharCount)/* overload */;
int __fastcall GetByteCount(const System::DynamicArray<System::WideChar> Chars, int CharIndex, int CharCount)/* overload */;
int __fastcall GetByteCount(const System::UnicodeString S)/* overload */;
int __fastcall GetByteCount(const System::UnicodeString S, int CharIndex, int CharCount)/* overload */;

プロパティ

種類 可視性 ソース ユニット
function public
System.SysUtils.pas
System.SysUtils.hpp
System.SysUtils TEncoding

説明

Chars をエンコードして生成されたバイト数を返します。

Chars をエンコードして生成されたバイト数を返します。文字列内のバイト数は、指定された文字配列または文字列内の文字数と必ずしも完全に比例しません。

Chars パラメータは、カウントするバイトが入っている文字配列または文字ポインタです。

S パラメータは、Byte で指定した数のバイトを取り出す UnicodeString を参照します。

CharCount パラメータは、エンコードする文字数を指定します。

CharIndex パラメータは、カウントを開始する Chars 配列内のインデックスを示します。

CharCount パラメータは、バイトをカウントするときに含まれるべき文字数を示します。

戻り値 は、渡された Chars パラメータまたは S パラメータ内のバイト数です。

関連項目