API:System.SysUtils.TUnicodeEncoding.GetByteCount

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

Delphi

function GetByteCount(Chars: PChar; CharCount: Integer): Integer; overload; override;

C++

virtual int __fastcall GetByteCount(System::WideChar * Chars, int CharCount)/* overload */;
inline int __fastcall  GetByteCount(const System::WideChar Chars){ return TEncoding::GetByteCount(Chars); }
inline int __fastcall  GetByteCount(const System::WideChar *Chars, const int Chars_High){ return TEncoding::GetByteCount(Chars, Chars_High); }
inline int __fastcall  GetByteCount(const System::DynamicArray<System::WideChar> Chars){ return TEncoding::GetByteCount(Chars); }
inline int __fastcall  GetByteCount(const System::WideChar *Chars, const int Chars_High, int CharIndex, int CharCount){ return TEncoding::GetByteCount(Chars, Chars_High, CharIndex, CharCount); }
inline int __fastcall  GetByteCount(const System::DynamicArray<System::WideChar> Chars, int CharIndex, int CharCount){ return TEncoding::GetByteCount(Chars, CharIndex, CharCount); }
inline int __fastcall  GetByteCount(const System::UnicodeString S){ return TEncoding::GetByteCount(S); }
inline int __fastcall  GetByteCount(const System::UnicodeString S, int CharIndex, int CharCount){ return TEncoding::GetByteCount(S, CharIndex, CharCount); }

プロパティ

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

説明

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

System.SysUtils.TUnicodeEncoding.GetByteCount は System.SysUtils.TEncoding.GetByteCount を継承しています。以下の内容はすべて System.SysUtils.TEncoding.GetByteCount を参照しています。

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

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

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

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

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

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

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

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

関連項目