Home
last modified time | relevance | path

Searched refs:digitval (Results 1 – 4 of 4) sorted by relevance

/external/python/cpython3/Objects/stringlib/
Dunicode_format.h112 Py_ssize_t digitval; in get_integer() local
120 digitval = Py_UNICODE_TODECIMAL(PyUnicode_READ_CHAR(str->str, i)); in get_integer()
121 if (digitval < 0) in get_integer()
129 if (accumulator > (PY_SSIZE_T_MAX - digitval) / 10) { in get_integer()
134 accumulator = accumulator * 10 + digitval; in get_integer()
/external/python/cpython2/Objects/stringlib/
Dstring_format.h199 Py_ssize_t digitval; in get_integer() local
207 digitval = STRINGLIB_TODECIMAL(*p); in get_integer()
208 if (digitval < 0) in get_integer()
216 if (accumulator > (PY_SSIZE_T_MAX - digitval) / 10) { in get_integer()
221 accumulator = accumulator * 10 + digitval; in get_integer()
Dformatter.h76 Py_ssize_t accumulator, digitval; in get_integer() local
82 digitval = STRINGLIB_TODECIMAL(**ptr); in get_integer()
83 if (digitval < 0) in get_integer()
91 if (accumulator > (PY_SSIZE_T_MAX - digitval) / 10) { in get_integer()
96 accumulator = accumulator * 10 + digitval; in get_integer()
/external/python/cpython3/Python/
Dformatter_unicode.c62 Py_ssize_t accumulator, digitval, pos = *ppos; in get_integer() local
69 digitval = Py_UNICODE_TODECIMAL(PyUnicode_READ(kind, data, pos)); in get_integer()
70 if (digitval < 0) in get_integer()
78 if (accumulator > (PY_SSIZE_T_MAX - digitval) / 10) { in get_integer()
84 accumulator = accumulator * 10 + digitval; in get_integer()