Lines Matching refs:base
17 * smallmax[base] is the largest unsigned long i such that
18 * i * base doesn't overflow unsigned long.
84 ** an ascii string to an integer in an arbitrary base.
85 ** Leading white space is ignored. If 'base' is zero
87 ** base. If these are absent it defaults to 10.
95 PyOS_strtoul(const char *str, char **ptr, int base)
105 /* check for leading 0b, 0o or 0x for auto-base or base 16 */
106 switch (base) {
118 base = 16;
127 base = 8;
136 base = 2;
149 base = 10;
152 /* even with explicit base, skip leading 0? prefix */
198 if (base < 2 || base > 36) {
208 /* base is guaranteed to be in [2, 36] at this point */
209 ovlimit = digitlimit[base];
212 while ((c = _PyLong_DigitValue[Py_CHARMASK(*str)]) < base) {
214 result = result * base + c;
223 if (result > smallmax[base])
226 result *= base;
249 while (_PyLong_DigitValue[Py_CHARMASK(*str)] < base)
263 PyOS_strtol(const char *str, char **ptr, int base)
276 uresult = PyOS_strtoul(str, ptr, base);