2017-07-04 06:26:51 +00:00
|
|
|
function vsprintf(fmt/*:string*/, args/*:Args*/)/*:string*/ { return doit(tokenize(fmt), args); }
|
2016-09-19 06:33:23 +00:00
|
|
|
|
2017-07-04 06:26:51 +00:00
|
|
|
function sprintf(/*:: ...argz*/)/*:string*/ {
|
2016-09-19 06:33:23 +00:00
|
|
|
var args/*:Array<any>*/ = new Array(arguments.length - 1);
|
2017-07-04 06:26:51 +00:00
|
|
|
for(var i/*:number*/ = 0; i < args.length; ++i) args[i] = arguments[i+1];
|
2016-09-19 06:33:23 +00:00
|
|
|
return doit(tokenize(arguments[0]), args);
|
|
|
|
}
|