Home | History | Annotate | Download | only in common

Lines Matching refs:substitutions

1019  * @param {!Array.<*>} substitutions
1022 String.vsprintf = function(format, substitutions)
1024 return String.format(format, substitutions, String.standardFormatters, "", function(a, b) { return a + b; }).formattedResult;
1029 * @param {?ArrayLike} substitutions
1037 String.format = function(format, substitutions, formatters, initialValue, append, tokenizedFormat)
1039 if (!format || !substitutions || !substitutions.length)
1040 return { formattedResult: append(initialValue, format), unusedSubstitutions: substitutions };
1044 return "String.format(\"" + format + "\", \"" + Array.prototype.join.call(substitutions, "\", \"") + "\")";
1074 if (token.substitutionIndex >= substitutions.length) {
1075 // If there are not enough substitutions for the current substitutionIndex
1077 error("not enough substitution arguments. Had " + substitutions.length + " but needed " + (token.substitutionIndex + 1) + ", so substitution was skipped.");
1087 result = append(result, substitutions[token.substitutionIndex]);
1091 result = append(result, formatters[token.specifier](substitutions[token.substitutionIndex], token));
1095 for (var i = 0; i < substitutions.length; ++i) {
1098 unusedSubstitutions.push(substitutions[i]);