Extracted at 2014-06-26.
pike.ida.liu.se
[Top]
Tools
Tools.String
Tools.String.NamedSprintf

Method Tools.String.NamedSprintf()->named_sprintf_func()


Method named_sprintf_func

function named_sprintf_func(string format)

Description

generates a function that takes a single argument, a mapping containing replacement values for the format string provided as the argument to this function. Useful for caching the generated function for speed.

the generated function uses sprintf to format the data, which are assumed to be strings, or castable to strings.