System.SysUtils.WideFmtStr

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

Delphi

procedure WideFmtStr(var Result: WideString; const Format: WideString; const Args: array of const); overload;
procedure WideFmtStr(var Result: WideString; const Format: WideString; const Args: array of const; const AFormatSettings: TFormatSettings); overload;

C++

extern DELPHI_PACKAGE void __fastcall WideFmtStr(System::WideString &Result, const System::WideString Format, const System::TVarRec *Args, const int Args_High)/* overload */;

プロパティ

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


説明

書式文字列と引数の配列を使用して、書式設定された Unicode 文字列を組み立てます。

この関数は、指定されたオープンな配列 Args にある一連の引数を、Unicode 文字列に整形します。 整形は、書式文字列である Format によって制御されます。この結果は、Result パラメータに返されます。

書式文字列の情報については、Format 文字列を参照してください。

WideFmtStr の第 1 の形式は、グローバル変数に含まれているローカライズ情報を使用するため、スレッド セーフではありません。 WideFmtStr の第 2 の形式は、AFormatSettings パラメータに含まれているローカライズ情報を参照し、スレッド セーフです。 WideFmtStr のスレッド セーフ形式を呼び出す前に、AFormatSettings にローカライズ情報を入れる必要があります。 AFormatSettings にデフォルトのローカル値セットを入れるには、TFormatSettings.Create を呼び出します。

関連項目