Lines Matching refs:base

17 static const char *_parse_integer_fixup_radix(const char *s, unsigned int *base)  in _parse_integer_fixup_radix()  argument
19 if (*base == 0) { in _parse_integer_fixup_radix()
22 *base = 16; in _parse_integer_fixup_radix()
24 *base = 8; in _parse_integer_fixup_radix()
26 *base = 10; in _parse_integer_fixup_radix()
28 if (*base == 16 && s[0] == '0' && tolower(s[1]) == 'x') in _parse_integer_fixup_radix()
34 unsigned int base) in simple_strtoul() argument
39 cp = _parse_integer_fixup_radix(cp, &base); in simple_strtoul()
42 ? toupper(*cp) : *cp)-'A'+10) < base) { in simple_strtoul()
43 result = result*base + value; in simple_strtoul()
53 int strict_strtoul(const char *cp, unsigned int base, unsigned long *res) in strict_strtoul() argument
64 val = simple_strtoul(cp, &tail, base); in strict_strtoul()
77 long simple_strtol(const char *cp, char **endp, unsigned int base) in simple_strtol() argument
80 return -simple_strtoul(cp + 1, endp, base); in simple_strtol()
82 return simple_strtoul(cp, endp, base); in simple_strtol()
85 unsigned long ustrtoul(const char *cp, char **endp, unsigned int base) in ustrtoul() argument
87 unsigned long result = simple_strtoul(cp, endp, base); in ustrtoul()
106 unsigned long long ustrtoull(const char *cp, char **endp, unsigned int base) in ustrtoull() argument
108 unsigned long long result = simple_strtoull(cp, endp, base); in ustrtoull()
128 unsigned int base) in simple_strtoull() argument
132 cp = _parse_integer_fixup_radix(cp, &base); in simple_strtoull()
135 : (islower(*cp) ? toupper(*cp) : *cp) - 'A' + 10) < base) { in simple_strtoull()
136 result = result * base + value; in simple_strtoull()