@@ -17,80 +17,90 @@ public ref partial struct ValueStringBuilder
1717 /// </summary>
1818 /// <param name="index">Index where <paramref name="value"/> should be inserted.</param>
1919 /// <param name="value">Character to insert into this builder.</param>
20+ /// <param name="format">Optional formatter. If not provided the default of the given instance is taken.</param>
2021 [ MethodImpl ( MethodImplOptions . AggressiveInlining ) ]
21- public void Insert ( int index , char value ) => InsertSpanFormattable ( index , value ) ;
22+ public void Insert ( int index , char value , ReadOnlySpan < char > format = default ) => InsertSpanFormattable ( index , value , format ) ;
2223
2324 /// <summary>
2425 /// Insert the string representation of the signed byte to the builder at the given index.
2526 /// </summary>
2627 /// <param name="index">Index where <paramref name="value"/> should be inserted.</param>
2728 /// <param name="value">Signed byte to insert into this builder.</param>
29+ /// <param name="format">Optional formatter. If not provided the default of the given instance is taken.</param>
2830 [ MethodImpl ( MethodImplOptions . AggressiveInlining ) ]
29- public void Insert ( int index , sbyte value ) => InsertSpanFormattable ( index , value ) ;
31+ public void Insert ( int index , sbyte value , ReadOnlySpan < char > format = default ) => InsertSpanFormattable ( index , value , format ) ;
3032
3133 /// <summary>
3234 /// Insert the string representation of the byte to the builder at the given index.
3335 /// </summary>
3436 /// <param name="index">Index where <paramref name="value"/> should be inserted.</param>
3537 /// <param name="value">Byte to insert into this builder.</param>
38+ /// <param name="format">Optional formatter. If not provided the default of the given instance is taken.</param>
3639 [ MethodImpl ( MethodImplOptions . AggressiveInlining ) ]
37- public void Insert ( int index , byte value ) => InsertSpanFormattable ( index , value ) ;
40+ public void Insert ( int index , byte value , ReadOnlySpan < char > format = default ) => InsertSpanFormattable ( index , value , format ) ;
3841
3942 /// <summary>
4043 /// Insert the string representation of the short to the builder at the given index.
4144 /// </summary>
4245 /// <param name="index">Index where <paramref name="value"/> should be inserted.</param>
4346 /// <param name="value">Short to insert into this builder.</param>
47+ /// <param name="format">Optional formatter. If not provided the default of the given instance is taken.</param>
4448 [ MethodImpl ( MethodImplOptions . AggressiveInlining ) ]
45- public void Insert ( int index , short value ) => InsertSpanFormattable ( index , value ) ;
49+ public void Insert ( int index , short value , ReadOnlySpan < char > format = default ) => InsertSpanFormattable ( index , value , format ) ;
4650
4751 /// <summary>
4852 /// Insert the string representation of the integer to the builder at the given index.
4953 /// </summary>
5054 /// <param name="index">Index where <paramref name="value"/> should be inserted.</param>
5155 /// <param name="value">Integer to insert into this builder.</param>
56+ /// <param name="format">Optional formatter. If not provided the default of the given instance is taken.</param>
5257 [ MethodImpl ( MethodImplOptions . AggressiveInlining ) ]
53- public void Insert ( int index , int value ) => InsertSpanFormattable ( index , value ) ;
58+ public void Insert ( int index , int value , ReadOnlySpan < char > format = default ) => InsertSpanFormattable ( index , value , format ) ;
5459
5560 /// <summary>
5661 /// Insert the string representation of the long to the builder at the given index.
5762 /// </summary>
5863 /// <param name="index">Long where <paramref name="value"/> should be inserted.</param>
5964 /// <param name="value">String to insert into this builder.</param>
65+ /// <param name="format">Optional formatter. If not provided the default of the given instance is taken.</param>
6066 [ MethodImpl ( MethodImplOptions . AggressiveInlining ) ]
61- public void Insert ( int index , long value ) => InsertSpanFormattable ( index , value ) ;
67+ public void Insert ( int index , long value , ReadOnlySpan < char > format = default ) => InsertSpanFormattable ( index , value , format ) ;
6268
6369 /// <summary>
6470 /// Insert the string representation of the float to the builder at the given index.
6571 /// </summary>
6672 /// <param name="index">Index where <paramref name="value"/> should be inserted.</param>
6773 /// <param name="value">Float to insert into this builder.</param>
74+ /// <param name="format">Optional formatter. If not provided the default of the given instance is taken.</param>
6875 [ MethodImpl ( MethodImplOptions . AggressiveInlining ) ]
69- public void Insert ( int index , float value ) => InsertSpanFormattable ( index , value ) ;
76+ public void Insert ( int index , float value , ReadOnlySpan < char > format = default ) => InsertSpanFormattable ( index , value , format ) ;
7077
7178 /// <summary>
7279 /// Insert the string representation of the double to the builder at the given index.
7380 /// </summary>
7481 /// <param name="index">Index where <paramref name="value"/> should be inserted.</param>
7582 /// <param name="value">Double to insert into this builder.</param>
83+ /// <param name="format">Optional formatter. If not provided the default of the given instance is taken.</param>
7684 [ MethodImpl ( MethodImplOptions . AggressiveInlining ) ]
77- public void Insert ( int index , double value ) => InsertSpanFormattable ( index , value ) ;
85+ public void Insert ( int index , double value , ReadOnlySpan < char > format = default ) => InsertSpanFormattable ( index , value , format ) ;
7886
7987 /// <summary>
8088 /// Insert the string representation of the decimal to the builder at the given index.
8189 /// </summary>
8290 /// <param name="index">Index where <paramref name="value"/> should be inserted.</param>
8391 /// <param name="value">Decimal to insert into this builder.</param>
92+ /// <param name="format">Optional formatter. If not provided the default of the given instance is taken.</param>
8493 [ MethodImpl ( MethodImplOptions . AggressiveInlining ) ]
85- public void Insert ( int index , decimal value ) => InsertSpanFormattable ( index , value ) ;
94+ public void Insert ( int index , decimal value , ReadOnlySpan < char > format = default ) => InsertSpanFormattable ( index , value , format ) ;
8695
8796 /// <summary>
8897 /// Insert the string representation of the Guid to the builder at the given index.
8998 /// </summary>
9099 /// <param name="index">Index where <paramref name="value"/> should be inserted.</param>
91100 /// <param name="value">Guid to insert into this builder.</param>
101+ /// <param name="format">Optional formatter. If not provided the default of the given instance is taken.</param>
92102 [ MethodImpl ( MethodImplOptions . AggressiveInlining ) ]
93- public void Insert ( int index , Guid value ) => InsertSpanFormattable ( index , value ) ;
103+ public void Insert ( int index , Guid value , ReadOnlySpan < char > format = default ) => InsertSpanFormattable ( index , value , format ) ;
94104
95105 /// <summary>
96106 /// Appends the string representation of the boolean to the builder.
0 commit comments