Home
last modified time | relevance | path

Searched refs:n_decimal (Results 1 – 2 of 2) sorted by relevance

/external/python/cpython2/Objects/stringlib/
Dformatter.h388 Py_ssize_t n_decimal; /* 0 if only an integer */ member
450 spec->n_decimal = has_decimal ? strlen(locale->decimal_point) : 0; in calc_number_widths()
496 n_non_digit_non_padding = spec->n_sign + spec->n_prefix + spec->n_decimal + in calc_number_widths()
548 spec->n_spadding + spec->n_grouped_digits + spec->n_decimal + in calc_number_widths()
612 if (spec->n_decimal) { in fill_number()
614 for (t = 0; t < spec->n_decimal; ++t) in fill_number()
616 buf += spec->n_decimal; in fill_number()
/external/python/cpython3/Python/
Dformatter_unicode.c418 Py_ssize_t n_decimal; /* 0 if only an integer */ member
482 spec->n_decimal = has_decimal ? PyUnicode_GET_LENGTH(locale->decimal_point) : 0; in calc_number_widths()
528 n_non_digit_non_padding = spec->n_sign + spec->n_prefix + spec->n_decimal + in calc_number_widths()
587 if (spec->n_decimal) in calc_number_widths()
591 spec->n_spadding + spec->n_grouped_digits + spec->n_decimal + in calc_number_widths()
668 if (spec->n_decimal) { in fill_number()
671 locale->decimal_point, 0, spec->n_decimal); in fill_number()
672 writer->pos += spec->n_decimal; in fill_number()