function match(
    replacementIndex,
    replacements,
    conversionSpecification,
    percent,
    position,
    signSpecifier,
    paddingSpecifier,
    alignmentSpecifier,
    widthSpecifier,
    precisionSpecifier,
    typeSpecifier
  ) {
    var conversion = new ConversionSpecification({
      percent: percent,
      signSpecifier: signSpecifier,
      paddingSpecifier: paddingSpecifier,
      alignmentSpecifier: alignmentSpecifier,
      width: coerceToNumber(widthSpecifier, null),
      precision: coerceToNumber(precisionSpecifier, null),
      typeSpecifier: typeSpecifier,
    });

    if (conversion.isPercentLiteral()) {
      return conversionSpecification.slice(1);
    }

    var actualReplacementIndex = replacementIndex.getIndexByPosition(position);
    replacementIndex.incrementOnEmptyPosition(position);
    validate(actualReplacementIndex, replacements.length, conversion);
    return compute(replacements[actualReplacementIndex], conversion);
  }
Return the replacement for regular expression match of the conversion specification.

@ignore
@name matchReplacement
@param {ReplacementIndex} replacementIndex The replacement index object.
@param {string[]} replacements The array of replacements.
@param {string} conversionSpecification The conversion specification.
@param {string} percent The percent characters from conversion specification.
@param {string} position The position to insert the replacement.
@param {string} signSpecifier The sign specifier to force a sign to be used on a number.
@param {string} paddingSpecifier The padding specifier that says what padding character will be used.
@param {string} alignmentSpecifier The alignment specifier that says if the result should be left-justified or right-justified.
@param {string} widthSpecifier The width specifier how many characters this conversion should result in.
@param {string} precisionSpecifier The precision specifier says how many decimal digits should be displayed for floating-point numbers.
@param {string} typeSpecifier The type specifier says what type the argument data should be treated as.
@return {string} Returns the computed replacement.