Skip to content

vformat

  • Formatting strings, support for built-in variable escaping

Function Prototype

API

lua
vformat(formatstring: <string>, ...)

Parameter Description

ParameterDescription
formatstringFormat string
...Variable arguments for formatting

Usage

This interface is followed by format interface is similar, but adds support for the acquisition and escaping of built-in variables.

lua
local s = vformat("hello %s $(mode) $(arch) $(env PATH)", xmake)