third_party/closure/goog/string/stringformat.js
function replacerDemuxer(
      match, flags, width, dotp, precision, type, offset, wholeString) {
    // The % is too simple and doesn't take an argument.
    if (type == '%') {
      return '%';
    }

    // Try to get the actual value from parent function.
    var value = args.shift();

    // If we didn't get any arguments, fail.
    if (typeof value == 'undefined') {
      throw Error('[goog.string.format] Not enough arguments');
    }

    // Patch the value argument to the beginning of our type specific call.
    arguments[0] = value;

    return goog.string.format.demuxes_[type].apply(null, arguments);
  }
function replacerDemuxer(
      match, flags, width, dotp, precision, type, offset, wholeString) {
    // The % is too simple and doesn't take an argument.
    if (type == '%') {
      return '%';
    }

    // Try to get the actual value from parent function.
    var value = args.shift();

    // If we didn't get any arguments, fail.
    if (typeof value == 'undefined') {
      throw Error('[goog.string.format] Not enough arguments');
    }

    // Patch the value argument to the beginning of our type specific call.
    arguments[0] = value;

    return goog.string.format.demuxes_[type].apply(null, arguments);
  }
function replacerDemuxer ( match , flags , width , dotp , precision , type , offset , wholeString ) { // The % is too simple and doesn't take an argument. if ( type == '%' ) { return '%' ; } // Try to get the actual value from parent function. var value = args . shift ( ) ; // If we didn't get any arguments, fail. if ( typeof value == 'undefined' ) { throw Error ( '[goog.string.format] Not enough arguments' ) ; } // Patch the value argument to the beginning of our type specific call. arguments [ 0 ] = value ; return goog . string . format . demuxes_ [ type ] . apply ( null , arguments ) ; }
Chooses which conversion function to call based on type conversion
specifier.
@param {string} match Contains the re matched string.
@param {string} flags Formatting flags.
@param {string} width Replacement string minimum width.
@param {string} dotp Matched precision including a dot.
@param {string} precision Specifies floating point precision.
@param {string} type Type conversion specifier.
@param {string} offset Matching location in the original string.
@param {string} wholeString Has the actualString being searched.
@return {string} Formatted parameter.
Chooses which conversion function to call based on type conversion specifier .