Home | History | Annotate | Download | only in src

Lines Matching defs:radix

255 // Parsing integers with radix 2, 4, 8, 16, 32. Assumes current != end.
272 const int radix = (1 << radix_log_2);
276 if (*current >= '0' && *current <= '9' && *current < '0' + radix) {
278 } else if (radix > 10 && *current >= 'a' && *current < 'a' + radix - 10) {
280 } else if (radix > 10 && *current >= 'A' && *current < 'A' + radix - 10) {
291 number = number * radix + digit;
310 if (current == end || !isDigit(*current, radix)) break;
356 // ES6 18.2.5 parseInt(string, radix)
361 int radix) {
386 if (radix == 0) {
387 // Radix detection.
388 radix = 10;
393 radix = 16;
400 } else if (radix == 16) {
414 if (radix < 2 || radix > 36) return JunkStringValue();
423 if (!leading_zero && !isDigit(*current, radix)) {
427 if (base::bits::IsPowerOfTwo32(radix)) {
428 switch (radix) {
451 if (radix == 10) {
486 int lim_0 = '0' + (radix < 10 ? radix : 10);
487 int lim_a = 'a' + (radix - 10);
488 int lim_A = 'A' + (radix - 10);
519 uint32_t m = multiplier * radix;
521 part = part * radix + d;