Lines Matching refs:builder
74 SimpleStringBuilder builder(buffer.start(), buffer.length()); in DoubleToCString() local
85 if (sign) builder.AddCharacter('-'); in DoubleToCString()
89 builder.AddString(decimal_rep); in DoubleToCString()
90 builder.AddPadding('0', decimal_point - length); in DoubleToCString()
94 builder.AddSubstring(decimal_rep, decimal_point); in DoubleToCString()
95 builder.AddCharacter('.'); in DoubleToCString()
96 builder.AddString(decimal_rep + decimal_point); in DoubleToCString()
100 builder.AddString("0."); in DoubleToCString()
101 builder.AddPadding('0', -decimal_point); in DoubleToCString()
102 builder.AddString(decimal_rep); in DoubleToCString()
106 builder.AddCharacter(decimal_rep[0]); in DoubleToCString()
108 builder.AddCharacter('.'); in DoubleToCString()
109 builder.AddString(decimal_rep + 1); in DoubleToCString()
111 builder.AddCharacter('e'); in DoubleToCString()
112 builder.AddCharacter((decimal_point >= 0) ? '+' : '-'); in DoubleToCString()
115 builder.AddDecimalInteger(exponent); in DoubleToCString()
117 return builder.Finalize(); in DoubleToCString()
202 SimpleStringBuilder builder(result_size + 1); in DoubleToFixedCString() local
203 if (negative) builder.AddCharacter('-'); in DoubleToFixedCString()
204 builder.AddSubstring(rep, decimal_point); in DoubleToFixedCString()
206 builder.AddCharacter('.'); in DoubleToFixedCString()
207 builder.AddSubstring(rep + decimal_point, f); in DoubleToFixedCString()
210 return builder.Finalize(); in DoubleToFixedCString()
228 SimpleStringBuilder builder(result_size + 1); in CreateExponentialRepresentation() local
230 if (negative) builder.AddCharacter('-'); in CreateExponentialRepresentation()
231 builder.AddCharacter(decimal_rep[0]); in CreateExponentialRepresentation()
233 builder.AddCharacter('.'); in CreateExponentialRepresentation()
234 builder.AddString(decimal_rep + 1); in CreateExponentialRepresentation()
236 builder.AddPadding('0', significant_digits - rep_length); in CreateExponentialRepresentation()
239 builder.AddCharacter('e'); in CreateExponentialRepresentation()
240 builder.AddCharacter(negative_exponent ? '-' : '+'); in CreateExponentialRepresentation()
241 builder.AddDecimalInteger(exponent); in CreateExponentialRepresentation()
242 return builder.Finalize(); in CreateExponentialRepresentation()
333 SimpleStringBuilder builder(result_size + 1); in DoubleToPrecisionCString() local
334 if (negative) builder.AddCharacter('-'); in DoubleToPrecisionCString()
336 builder.AddString("0."); in DoubleToPrecisionCString()
337 builder.AddPadding('0', -decimal_point); in DoubleToPrecisionCString()
338 builder.AddString(decimal_rep); in DoubleToPrecisionCString()
339 builder.AddPadding('0', p - decimal_rep_length); in DoubleToPrecisionCString()
342 builder.AddSubstring(decimal_rep, m); in DoubleToPrecisionCString()
343 builder.AddPadding('0', decimal_point - decimal_rep_length); in DoubleToPrecisionCString()
345 builder.AddCharacter('.'); in DoubleToPrecisionCString()
349 const int n = Min(len, p - (builder.position() - extra)); in DoubleToPrecisionCString()
350 builder.AddSubstring(decimal_rep + decimal_point, n); in DoubleToPrecisionCString()
352 builder.AddPadding('0', extra + (p - builder.position())); in DoubleToPrecisionCString()
355 result = builder.Finalize(); in DoubleToPrecisionCString()
425 SimpleStringBuilder builder(result_size + 1); in DoubleToRadixCString() local
426 builder.AddSubstring(integer_buffer + integer_pos + 1, integer_part_size); in DoubleToRadixCString()
427 if (decimal_pos > 0) builder.AddCharacter('.'); in DoubleToRadixCString()
428 builder.AddSubstring(decimal_buffer, decimal_pos); in DoubleToRadixCString()
429 return builder.Finalize(); in DoubleToRadixCString()