/bionic/libc/upstream-netbsd/libc/inet/ |
inet_pton.c | 103 u_int digit, base; local 134 digit = c - '0'; 135 if (digit >= base) 137 val = (val * base) + digit; 140 digit = c + 10 - (islower(c) ? 'a' : 'A'); 141 if (digit >= 16) 143 val = (val << 4) | digit;
|
/development/samples/ApiDemos/src/com/example/android/apis/graphics/spritetext/ |
NumericSprite.java | 37 String digit = sStrike.substring(i, i+1); local 38 mLabelId[i] = mLabelMaker.add(gl, digit, paint); 73 int digit = c - '0'; local 74 mLabelMaker.draw(gl, x, y, mLabelId[digit]); 75 x += mWidth[digit];
|
/external/apache-http/src/org/apache/commons/codec/binary/ |
Hex.java | 79 * @param ch A character to convert to an integer digit 85 int digit = Character.digit(ch, 16); local 86 if (digit == -1) { 89 return digit;
|
/external/chromium/chrome/browser/metrics/ |
metrics_log_unittest.cc | 36 char digit = xml_encoded->at(i); local 37 ASSERT_GE(digit, '0'); 38 ASSERT_LE(digit, '9');
|
/external/chromium_org/components/autofill/core/browser/ |
validation.cc | 103 int digit = *iter - '0'; local 105 digit *= 2; 106 sum += digit / 10 + digit % 10; 108 sum += digit;
|
/external/chromium_org/third_party/WebKit/Source/core/html/shadow/ |
DateTimeNumericFieldElement.cpp | 121 const int digit = number[0] - '0'; local 122 if (digit < 0 || digit > 9)
|
/external/chromium_org/third_party/WebKit/Source/wtf/dtoa/ |
strtod.cc | 122 // The input buffer has been trimmed. Therefore the last digit must be 125 // Set the last digit to be non-zero. This is sufficient to guarantee 134 // When the string starts with "1844674407370955161" no further digit is read. 136 // digit if it was less or equal than 6, but this would complicate the code. 142 int digit = buffer[i++] - '0'; local 143 ASSERT(0 <= digit && digit <= 9); 144 result = 10 * result + digit;
|
bignum-dtoa.cc | 169 // If 1 <= (numerator+delta_plus) / denominator < 10 then no leading 0 digit 182 uint16_t digit; local 183 digit = numerator->DivideModuloIntBignum(*denominator); 184 ASSERT(digit <= 9); // digit is a uint16_t and therefore always positive. 185 // digit = numerator / denominator (integer division). 187 buffer[(*length)++] = digit + '0'; 220 // If yes, then the next digit would be < 5 and we can round down. 226 // Note that the last digit could not be a '9' as otherwise the whole 251 // Note again that the last digit could not be '9' since this would hav 274 uint16_t digit; local 284 uint16_t digit; local [all...] |
bignum.cc | 97 int digit = buffer[i] - '0'; local 98 ASSERT(0 <= digit && digit <= 9); 99 result = result * 10 + digit; 111 // Let's just say that each digit needs 4 bits. 357 // In the worst case we have to accumulate nb-digits products of digit*digit. 372 // Process temporary digit i with power i. 512 // Remove the multiples of the first digit. 631 // Otherwise they are equal up to this digit. Try the next digit [all...] |
/external/chromium_org/third_party/icu/source/common/ |
cstring.c | 148 uint8_t digit; local 163 digit = (uint8_t)(uval % radix); 164 tbuf[--tbx] = (char)(T_CString_itosOffset(digit)); 186 uint8_t digit; local 201 digit = (uint8_t)(uval % radix); 202 tbuf[--tbx] = (char)(T_CString_itosOffset(digit));
|
util.cpp | 57 int32_t digit = n / r; local 58 result.append(DIGITS[digit]); 59 n -= digit * r;
|
/external/chromium_org/third_party/yasm/source/patched-yasm/modules/preprocs/nasm/ |
nasmlib.c | 26 int digit; local 79 if (*p<'0' || (*p>'9' && *p<'A') || (digit = numvalue(*p)) >= radix)
|
/external/chromium_org/v8/src/ |
conversions-inl.h | 158 int digit; local 160 digit = static_cast<char>(*current) - '0'; 162 digit = static_cast<char>(*current) - 'a' + 10; 164 digit = static_cast<char>(*current) - 'A' + 10; 174 number = number * radix + digit; 563 insignificant_digits++; // Move the digit into the exponential part. 661 int digit = *current - '0'; 663 && !(num == max_exponent / 10 && digit <= max_exponent % 10)) { 666 num = num * 10 + digit;
|
strtod.cc | 121 // The input buffer has been trimmed. Therefore the last digit must be 124 // Set the last digit to be non-zero. This is sufficient to guarantee 134 // When the string starts with "1844674407370955161" no further digit is read. 136 // digit if it was less or equal than 6, but this would complicate the code. 142 int digit = buffer[i++] - '0'; local 143 ASSERT(0 <= digit && digit <= 9); 144 result = 10 * result + digit;
|
bignum-dtoa.cc | 170 // If 1 <= (numerator+delta_plus) / denominator < 10 then no leading 0 digit 183 uint16_t digit; local 184 digit = numerator->DivideModuloIntBignum(*denominator); 185 ASSERT(digit <= 9); // digit is a uint16_t and therefore always positive. 186 // digit = numerator / denominator (integer division). 188 buffer[(*length)++] = digit + '0'; 221 // If yes, then the next digit would be < 5 and we can round down. 227 // Note that the last digit could not be a '9' as otherwise the whole 252 // Note again that the last digit could not be '9' since this would hav 275 uint16_t digit; local 285 uint16_t digit; local [all...] |
bignum.cc | 96 int digit = buffer[i] - '0'; local 97 ASSERT(0 <= digit && digit <= 9); 98 result = result * 10 + digit; 110 // Let's just say that each digit needs 4 bits. 356 // In the worst case we have to accumulate nb-digits products of digit*digit. 371 // Process temporary digit i with power i. 511 // Remove the multiples of the first digit. 630 // Otherwise they are equal up to this digit. Try the next digit [all...] |
/external/icu4c/common/ |
cstring.c | 159 uint8_t digit; local 174 digit = (uint8_t)(uval % radix); 175 tbuf[--tbx] = (char)(T_CString_itosOffset(digit)); 197 uint8_t digit; local 212 digit = (uint8_t)(uval % radix); 213 tbuf[--tbx] = (char)(T_CString_itosOffset(digit));
|
util.cpp | 58 int32_t digit = n / r; local 59 result.append(DIGITS[digit]); 60 n -= digit * r;
|
/external/icu4c/samples/numfmt/ |
util.cpp | 35 uint32_t digit; local 37 digit = (number >> ((--digits) * 4)) & 0xF; 38 target += (UChar)(digit < 10 ? 0x30 + digit : 0x41 - 10 + digit);
|
/external/v8/src/ |
strtod.cc | 121 // The input buffer has been trimmed. Therefore the last digit must be 124 // Set the last digit to be non-zero. This is sufficient to guarantee 133 // When the string starts with "1844674407370955161" no further digit is read. 135 // digit if it was less or equal than 6, but this would complicate the code. 141 int digit = buffer[i++] - '0'; local 142 ASSERT(0 <= digit && digit <= 9); 143 result = 10 * result + digit;
|
/external/chromium_org/third_party/icu/source/io/ |
ufmt_cmn.c | 71 uint32_t digit; local 75 digit = (uint32_t)(value % radix); 77 buffer[length++] = (UChar)(uselower ? TO_LC_DIGIT(digit) 78 : TO_UC_DIGIT(digit)); 149 /* read the next digit */
|
/external/chromium_org/third_party/icu/source/test/intltest/ |
punyref.c | 73 /* is undefined if flag is nonzero and digit d has no uppercase form. */ 223 b, j, in, oldi, w, k, digit, t; local 260 digit = decode_digit(input[in++]); 261 if (digit >= base) return punycode_bad_input; 262 if (digit > (maxint - i) / w) return punycode_overflow; 263 i += digit * w; 266 if (digit < t) break;
|
/external/chromium_org/third_party/skia/src/utils/ |
SkParse.cpp | 117 int digit; local 119 while ((digit = to_hex(*str)) >= 0) 123 n = (n << 4) | digit;
|
/external/compiler-rt/lib/sanitizer_common/ |
sanitizer_printf.cc | 77 char digit = static_cast<char>(num_buffer[pos]); local 78 result += AppendChar(buff, buff_end, (digit < 10) ? '0' + digit 79 : 'a' + digit - 10);
|
/external/guava/guava/src/com/google/common/base/ |
CharMatcher.java | 99 * Determines whether a character is a digit according to 102 public static final CharMatcher DIGIT; 105 CharMatcher digit = inRange('0', '9'); typedefs 111 digit = digit.or(inRange(base, (char) (base + 9))); 113 DIGIT = digit.precomputed(); 117 * Determines whether a character is a digit according to {@link Character#isDigit(char) Java's 138 * Determines whether a character is a letter or digit according to {@link [all...] |