API:System.SysUtils.TMBCSEncoding.Create
Delphi
constructor Create; overload; virtual;
constructor Create(CodePage: Integer); overload; virtual;
constructor Create(CodePage, MBToWCharFlags, WCharToMBFlags: Integer); overload; virtual;
constructor Create(UseBOM: Boolean); overload;
constructor Create(CodePage: Integer; UseBOM: Boolean); overload;
constructor Create(CodePage, MBToWCharFlags, WCharToMBFlags: Integer; UseBOM: Boolean); overload;
C++
__fastcall virtual TMBCSEncoding()/* overload */;
__fastcall virtual TMBCSEncoding(int CodePage)/* overload */;
__fastcall virtual TMBCSEncoding(int CodePage, int MBToWCharFlags, int WCharToMBFlags)/* overload */;
__fastcall TMBCSEncoding(bool UseBOM)/* overload */;
__fastcall TMBCSEncoding(int CodePage, bool UseBOM)/* overload */;
__fastcall TMBCSEncoding(int CodePage, int MBToWCharFlags, int WCharToMBFlags, bool UseBOM)/* overload */;
プロパティ
| 種類 | 可視性 | ソース | ユニット | 親 |
|---|---|---|---|---|
| constructor | public | System.SysUtils.pas System.SysUtils.hpp |
System.SysUtils | TMBCSEncoding |
説明
オブジェクトを作成し,そのオブジェクトが最初に使用される前にデータを初期化します。
System.SysUtils.TMBCSEncoding.Create は System.TObject.Create を継承しています。以下の内容はすべて System.TObject.Create を参照しています。
オブジェクトを作成し,そのオブジェクトが最初に使用される前にデータを初期化します。
Create はオブジェクトを構築します。オブジェクトの目的,サイズ,および動作はそれぞれ大きく異なります。TObject で定義されている Create コンストラクタは,メモリの割り当ては行いますがデータの初期化は行いません。
下位オブジェクトは通常,指定のオブジェクトを作成し,そのデータを初期化するコンストラクタを定義します。
メモ: コンストラクタが発生した例外を処理しない場合,オブジェクトのデストラクタが呼び出されて失敗したインスタンスを破棄します。