fmtindex
Fmtindex is a term used in text formatting and templating systems to denote a numeric index into an ordered list of values that will be substituted into a format string. It is most commonly found in libraries that support positional or reordered arguments, rather than relying on the position of values in the input data.
Semantics: A placeholder in a format string may include a fmtindex to indicate which argument to insert.
Implementation: During formatting, the engine scans the string, extracts fmtindex tokens, and retrieves the corresponding value
Variants: fmtindex is related to, but distinct from, named arguments (where placeholders reference by name) and
Usage considerations: When accepting user-provided format strings, explicit fmtindex handling enables flexible reordering but also increases
See also: Format string, Positional argument, Named argument, String interpolation, Placeholder.