System.SysUtils.WideFormat

Aus RAD Studio API Documentation
Wechseln zu: Navigation, Suche

Delphi

function WideFormat(const Format: WideString; const Args: array of const): WideString;
function WideFormat(const Format: WideString; const Args: array of const;
const AFormatSettings: TFormatSettings): WideString;

C++

extern DELPHI_PACKAGE System::WideString __fastcall WideFormat(const System::WideString Format, const System::TVarRec *Args, const int Args_High)/* overload */;

Eigenschaften

Typ Sichtbarkeit Quelle Unit Übergeordnet
function public
System.SysUtils.pas
System.SysUtils.hpp
System.SysUtils System.SysUtils

Beschreibung

Gibt einen mit Hilfe eines Format-Strings und einem Array von Argumenten formatierten Unicode-String zurück.

Diese Funktion formatiert die Argumente in dem mit Args angegebenen offenen Array. Die Operation wird durch den Format-String Format gesteuert. Das Ergebnis wird als Unicode-String zurückgegeben.

Weitere Informationen zu den verschiedenen Formatierungsmöglichkeiten finden Sie unter Format-Strings.

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

Siehe auch