Searched refs:has_decimal (Results 1 – 3 of 3) sorted by relevance
/external/python/cpython2/Objects/stringlib/ |
D | formatter.h | 414 Py_ssize_t *n_remainder, int *has_decimal) in parse_number() argument 424 *has_decimal = ptr<end && *remainder == '.'; in parse_number() 427 if (*has_decimal) in parse_number() 441 int has_decimal, const LocaleInfo *locale, in calc_number_widths() argument 447 spec->n_digits = n_number - n_remainder - (has_decimal?1:0); in calc_number_widths() 450 spec->n_decimal = has_decimal ? strlen(locale->decimal_point) : 0; in calc_number_widths() 937 int has_decimal; in format_float_internal() local 1039 parse_number(p, n_digits, &n_remainder, &has_decimal); in format_float_internal() 1050 n_remainder, has_decimal, &locale, format); in format_float_internal()
|
/external/python/cpython3/Python/ |
D | formatter_unicode.c | 444 Py_ssize_t *n_remainder, int *has_decimal) in parse_number() argument 455 *has_decimal = pos<end && PyUnicode_READ(kind, data, remainder) == '.'; in parse_number() 458 if (*has_decimal) in parse_number() 473 int has_decimal, const LocaleInfo *locale, in calc_number_widths() argument 479 spec->n_digits = n_end - n_start - n_remainder - (has_decimal?1:0); in calc_number_widths() 482 spec->n_decimal = has_decimal ? PyUnicode_GET_LENGTH(locale->decimal_point) : 0; in calc_number_widths() 1025 int has_decimal; in format_float_internal() local 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()
|
/external/libtextclassifier/native/annotator/number/ |
D | number.cc | 250 const bool has_decimal = !(parsed_int_value == parsed_double_value); in FindAll() local 259 has_decimal ? options_->float_number_priority_score() in FindAll()
|