Lines Matching defs:converted
266 auto converted{decimal::ConvertToDecimal<binaryPrecision>(buffer_,
269 if (!converted.str) { // overflow
274 return converted;
349 decimal::ConversionToDecimalResult converted{
351 if (IsInfOrNaN(converted.str, static_cast<int>(converted.length))) {
353 converted.length + trailingBlanks_ >
356 : EmitPrefix(edit, converted.length, editWidth) &&
357 EmitAscii(io_, converted.str, converted.length) &&
361 converted.decimalExponent -= scale;
366 if (int modulus{converted.decimalExponent % 3}; modulus != 0) {
374 converted.decimalExponent -= modulus;
379 converted.decimalExponent += adjust;
383 converted.decimalExponent -= adjust;
390 FormatExponent(converted.decimalExponent, edit, expoLength)};
391 int signLength{*converted.str == '-' || *converted.str == '+' ? 1 : 0};
392 int convertedDigits{static_cast<int>(converted.length) - signLength};
416 EmitAscii(io_, converted.str, signLength + digitsBeforePoint) &&
420 EmitAscii(io_, converted.str + signLength + digitsBeforePoint,
449 decimal::ConversionToDecimalResult converted{
451 const char *convertedStr{converted.str};
452 if (IsInfOrNaN(convertedStr, static_cast<int>(converted.length))) {
454 converted.length > static_cast<std::size_t>(editWidth)
456 : EmitPrefix(edit, converted.length, editWidth) &&
457 EmitAscii(io_, convertedStr, converted.length) &&
460 int expo{converted.decimalExponent + edit.modes.scale /*kP*/};
462 int convertedDigits{static_cast<int>(converted.length) - signLength};
463 if (IsZero()) { // don't treat converted "0" as significant digit
544 trailingBlanks_ /* G editing converted to F */};
580 decimal::ConversionToDecimalResult converted{
582 if (IsInfOrNaN(converted.str, static_cast<int>(converted.length))) {
585 int expo{IsZero() ? 1 : converted.decimalExponent}; // 's'
613 decimal::ConversionToDecimalResult converted{
615 if (IsInfOrNaN(converted.str, static_cast<int>(converted.length))) {
620 int expo{converted.decimalExponent};
650 auto converted{ConvertToDecimal(significantDigits, rounding, flags)};
651 return {converted.str, static_cast<int>(converted.length), 0};
655 auto converted{ConvertToDecimal(significantDigits, rounding, flags)};
656 return {converted.str, static_cast<int>(converted.length), 0};
720 auto converted{
722 if (IsInfOrNaN(converted.str, converted.length)) {
723 return editWidth > 0 && converted.length > editWidth
725 : (editWidth <= converted.length ||
726 EmitRepeated(io_, ' ', editWidth - converted.length)) &&
727 EmitAscii(io_, converted.str, converted.length);
729 int signLength{converted.length > 0 &&
730 (converted.str[0] == '-' || converted.str[0] == '+')
733 int convertedDigits{converted.length - signLength};
735 const char *exponent{FormatExponent(converted.exponent, edit, expoLength)};
739 int totalLength{converted.length + trailingZeroes + expoLength + 3 /*0X.*/};
744 EmitAscii(io_, converted.str, signLength) &&
746 EmitAscii(io_, converted.str + signLength, 1) &&
749 EmitAscii(io_, converted.str + signLength + 1,
750 converted.length - (signLength + 1)) &&