Lines Matching refs:n_digits
425 Py_ssize_t n_digits; /* The number of digits before a decimal member
479 spec->n_digits = n_end - n_start - n_remainder - (has_decimal?1:0); in calc_number_widths()
538 if (spec->n_digits == 0) in calc_number_widths()
547 NULL, 0, spec->n_digits, in calc_number_widths()
642 if (spec->n_digits != 0) { in fill_number()
646 digits, d_pos, spec->n_digits, in fill_number()
652 d_pos += spec->n_digits; in fill_number()
854 Py_ssize_t n_digits; /* count of digits need from the computed in format_long_internal() local
904 n_digits = 1; in format_long_internal()
964 n_digits = PyUnicode_GET_LENGTH(tmp); in format_long_internal()
977 n_digits -= leading_chars_to_skip; in format_long_internal()
989 inumeric_chars + n_digits, n_remainder, 0, in format_long_internal()
1022 Py_ssize_t n_digits; in format_float_internal() local
1088 n_digits = strlen(buf); in format_float_internal()
1094 buf[n_digits] = '%'; in format_float_internal()
1095 n_digits += 1; in format_float_internal()
1104 result = _PyUnicodeWriter_WriteASCIIString(writer, buf, n_digits); in format_float_internal()
1111 unicode_tmp = _PyUnicode_FromASCII(buf, n_digits); in format_float_internal()
1122 --n_digits; in format_float_internal()
1127 parse_number(unicode_tmp, index, index + n_digits, &n_remainder, &has_decimal); in format_float_internal()
1137 index + n_digits, n_remainder, has_decimal, in format_float_internal()