- Introduction
- License
- History
- Compilation & Hosting
- Configuration File
- Modules:
- FAQ
- Links
- Credits
|
Declaration:
-
function web_format_dotnet(const str: string; args: StrArray): string;
Arguments:
-
str |
Format string |
args |
Array of substitutes |
Description:
-
.NET-style string formatting. Replaces all {n} sequences with args[n].
Returns:
-
Formatted string.
Usage:
-
s := 'Put some {0} and {1} here.';
SetLength(a, 2);
a[0] := 'fish';
a[1] := 'meet';
s := web_format_dotnet(s, a);
See also:
-
web_format, web_printf, web_printfa, web_printfln, web_printfaln.
|