string_format [function]

string_format( [int prealloc,] string text, ... )

parses all format specifiers in text and returns the result

see fmt_text if you don't need the position (argument index) specifications

print string_format( "{1:d} -> {1:x}", 1337 ); // prints "1337 -> 539"