SysUtils.StrFmt

From RAD Studio VCL Documentation (German)
Jump to: navigation, search

Contents

Delphi-Informationen

von SysUtils.pas

	function StrFmt(Buffer: PAnsiChar;
		Format: PAnsiChar;
		const Args: array of TVarRec): PAnsiChar; overload;
 
	function StrFmt(Buffer: PWideChar;
		Format: PWideChar;
		const Args: array of TVarRec): PWideChar; overload;
 
	function StrFmt(Buffer: PAnsiChar;
		Format: PAnsiChar;
		const Args: array of TVarRec;
		const FormatSettings: TFormatSettings): PAnsiChar; overload;
 
	function StrFmt(Buffer: PWideChar;
		Format: PWideChar;
		const Args: array of TVarRec;
		const FormatSettings: TFormatSettings): PWideChar; overload;


Unit: SysUtils

Typ: Funktion

Sichtbarkeit: public

C++-Informationen

von SysUtils.hpp

	char * __fastcall StrFmt(char * Buffer,
		char * Format,
		const System::TVarRec * Args,
		int Args_Size);


Unit: SysUtils

Typ: Funktion

Beschreibung

Formatiert die Elemente eines offenen Arrays.


StrFmt formatiert die Argumente eines offenen Arrays in einen Puffer.

Buffer ist ein Puffer, der die Ergebnisse aufnimmt.

Format ist ein nullterminierter Format-String, der festlegt, wie die Ergebnisse erzeugt werden sollen. Weitere Informationen zur Formatierung finden Sie unter Format-Strings.

Args ist ein Array mit Argumenten, die die Formatbezeichner in Format ersetzen.

Anmerkung:  Args_Size gibt der Index des letzten Arguments an (der Wert ist um eins kleiner als die Anzahl der Elemente in Args).

StrFmt gibt einen Zeiger auf den Zielpuffer zurück.

Die erste Form von StrFmt ist nicht Thread-sicher, da die landesspezifischen Informationen der globalen Variablen verwendet werden. Der Thread-sicheren zweiten Form werden die landesspezifischen Informationen im Parameter FormatSettings übergeben. Bevor Sie diese Form von StrFmt aufrufen, müssen Sie die Informationen in den Parameter FormatSettings schreiben. Die landesspezifischen Standardinformationen können FormatSettings mit GetLocaleFormatSettings zugewiesen werden.

Siehe auch

Personal tools