/// <summary> /// Formats the given values, appending to the <paramref name="appendTo"/> builder. /// </summary> /// <param name="appendTo">Gets the formatted pattern and values appended.</param> /// <param name="offsets"> /// offsets[i] receives the offset of where /// values[i] replaced pattern argument {i}. /// Can be null, or can be shorter or longer than values. /// If there is no {i} in the pattern, then offsets[i] is set to -1. /// </param> /// <param name="values"> /// The argument values. /// An argument value must not be the same object as appendTo. /// values.Length must be at least <see cref="ArgumentLimit"/>. /// Can be null if <see cref="ArgumentLimit"/>==0. /// </param> /// <returns><paramref name="appendTo"/></returns> /// <stable>ICU 57</stable> internal StringBuilder FormatAndAppend( StringBuilder appendTo, int[] offsets, params ICharSequence[] values) { return(SimpleFormatterImpl.FormatAndAppend(compiledPattern, appendTo, offsets, values)); }
// ICU4N specific - Format(params ICharSequence[] values) moved to SimpleFormatterExtension.tt // ICU4N specific - FormatAndAppend( // StringBuilder appendTo, int[] offsets, params ICharSequence[] values) moved to SimpleFormatterExtension.tt /// <summary> /// Formats the given values, appending to the <paramref name="appendTo"/> builder. /// </summary> /// <param name="appendTo">Gets the formatted pattern and values appended.</param> /// <param name="offsets"> /// offsets[i] receives the offset of where /// values[i] replaced pattern argument {i}. /// Can be null, or can be shorter or longer than values. /// If there is no {i} in the pattern, then offsets[i] is set to -1. /// </param> /// <returns><paramref name="appendTo"/></returns> /// <stable>ICU4N 60.1</stable> public StringBuilder FormatAndAppend( StringBuilder appendTo, int[] offsets) // ICU4N specific overload to avoid ambiguity when no params are passed { return(SimpleFormatterImpl.FormatAndAppend(compiledPattern, appendTo, offsets, new ICharSequence[0])); }
public StringBuilder FormatAndAppend( StringBuilder appendTo, int[] offsets, params char[][] values) { return(SimpleFormatterImpl.FormatAndAppend(compiledPattern, appendTo, offsets, values)); }