Home | History | Annotate | Download | only in front-end

Lines Matching refs:substitutions

905 String.vsprintf = function(format, substitutions)
907 return String.format(format, substitutions, String.standardFormatters, "", function(a, b) { return a + b; }).formattedResult;
910 String.format = function(format, substitutions, formatters, initialValue, append)
912 if (!format || !substitutions || !substitutions.length)
913 return { formattedResult: append(initialValue, format), unusedSubstitutions: substitutions };
917 return "String.format(\"" + format + "\", \"" + substitutions.join("\", \"") + "\")";
947 if (token.substitutionIndex >= substitutions.length) {
948 // If there are not enough substitutions for the current substitutionIndex
950 error("not enough substitution arguments. Had " + substitutions.length + " but needed " + (token.substitutionIndex + 1) + ", so substitution was skipped.");
960 result = append(result, substitutions[token.substitutionIndex]);
964 result = append(result, formatters[token.specifier](substitutions[token.substitutionIndex], token));
968 for (var i = 0; i < substitutions.length; ++i) {
971 unusedSubstitutions.push(substitutions[i]);