/external/clang/test/CodeGenCXX/ |
H A D | template-dependent-bind-temporary.cpp | 16 T digit; local 17 char((digit < 10 ? '0' : 'a') + digit) + result;
|
/external/icu4c/common/ |
H A D | ustrfmt.c | 32 int digit; local 37 digit = (int)(i % radix); 38 buffer[length++]=(UChar)(digit<=9?(0x0030+digit):(0x0030+digit+7));
|
H A D | punycode.c | 90 digitToBasic(int32_t digit, UBool uppercase) { argument 93 if(digit<26) { 95 return (char)(_CAPITAL_A+digit); 97 return (char)(_SMALL_A+digit); 100 return (char)((_ZERO_-26)+digit); 376 int32_t n, destLength, i, bias, basicLength, j, in, oldi, w, k, digit, t, local 452 digit=basicToDigit[(uint8_t)src[in++]]; 453 if(digit<0) { 457 if(digit>(0x7fffffff-i)/w) { 463 i+=digit* [all...] |
H A D | 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));
|
/external/smali/smali/src/main/java/org/jf/smali/ |
H A D | LiteralTools.java | 64 } else if (Character.digit(byteChars[position], 8) >= 0) { 71 int digit; 75 digit = Character.digit(byteChars[position], radix); 76 if (digit < 0) { 77 throw new NumberFormatException("The string contains invalid an digit - '" + byteChars[position] + "'"); 83 if (shiftedResult < 0 && shiftedResult >= -digit) { 86 result = (byte)(shiftedResult + digit); 134 } else if (Character.digit(shortChars[position], 8) >= 0) { 141 int digit; [all...] |
/external/chromium/third_party/libjingle/source/talk/base/ |
H A D | urlencode.cc | 37 int digit = *pch++; local 38 if (digit >= '0' && digit <= '9') { 39 value += digit - '0'; 41 else if (digit >= 'A' && digit <= 'F') { 42 value += digit - 'A' + 10; 44 else if (digit >= 'a' && digit <= 'f') { 45 value += digit [all...] |
/external/ipsec-tools/src/racoon/ |
H A D | prsa_tok.l | 49 digit [0-9] 50 octet (([01]?{digit}?{digit})|((2([0-4]{digit}))|(25[0-5]))) 82 {digit}+ { prsalval.num = atol(prsatext); return NUMBER; }
|
/external/webkit/Source/WebCore/html/parser/ |
H A D | HTMLParserIdioms.cpp | 127 int digit, exponentSign; local 133 switch (digit = string[cursor]) { 137 digit = string[++cursor]; 139 if (digit >= '0' && digit <= '9') { 140 while (cursor < length && digit == '0') 141 digit = string[++cursor]; 142 if (digit > '0' && digit <= '9') { 143 exponent32 = digit [all...] |
/external/stressapptest/src/ |
H A D | sattypes.h | 132 int digit = 0, last_non_zero_size = 1; local 135 digit |= 1 << (i & 3); 138 format += char(digit <= 9 ? '0' + digit: 'A' + digit - 10); 139 if (digit) { 141 digit = 0; 145 if (digit) { 146 format += char(digit <= 9 ? '0' + digit [all...] |
/external/guava/guava/src/com/google/common/primitives/ |
H A D | AndroidInteger.java | 64 int digit = Character.digit(string.charAt(offset++), radix); 65 if (digit == -1) { 71 int next = result * radix - digit;
|
H A D | UnsignedLongs.java | 268 int digit = Character.digit(s.charAt(pos), radix); 269 if (digit == -1) { 272 if (pos > max_safe_pos && overflowInParse(value, digit, radix)) { 275 value = (value * radix) + digit; 282 * Returns true if (current * radix) + digit is a number too large to be represented by an 287 private static boolean overflowInParse(long current, int digit, int radix) { argument 296 return (digit > maxValueMods[radix]);
|
/external/smali/util/src/main/java/org/jf/util/ |
H A D | IndentingWriter.java | 154 int digit = (int)(value & 15); 155 if (digit < 10) { 156 buffer[bufferIndex++] = (char)(digit + '0'); 158 buffer[bufferIndex++] = (char)((digit - 10) + 'a'); 178 int digit = value % 10; 179 buffer[bufferIndex++] = (char)(digit + '0');
|
/external/apache-http/src/org/apache/commons/codec/binary/ |
H A D | Hex.java | 79 * @param ch A character to convert to an integer digit 85 int digit = Character.digit(ch, 16); 86 if (digit == -1) { 89 return digit;
|
/external/ipsec-tools/src/libipsec/ |
H A D | policy_token.l | 71 digit [0-9] 86 usec {dot}{digit}{1,6} 91 decstring {digit}+
|
/external/icu4c/tools/genrb/ |
H A D | rbutil.c | 72 int digit; local 82 digit = (int)(i % radix); 83 buffer[length++]= digits[digit];
|
/external/icu4c/samples/numfmt/ |
H A D | 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/ |
H A D | 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 coul 275 uint16_t digit; local 285 uint16_t digit; local [all...] |
H A D | fixed-dtoa.cc | 139 int digit = number % 10; local 141 buffer[(*length) + number_length] = '0' + digit; 202 // Round the last digit until we either have a digit that was not '9' or until 203 // we reached the first digit. 212 // If the first digit is now '0' + 10, we would need to set it to '0' and add 213 // a '1' in front. However we reach the first digit only if all following 215 // we simply switch the first digit to '1' and update the decimal-point 216 // (indicating that the point is now one digit to the right). 260 int digit local 281 int digit = fractionals128.DivModPowerOf2(point); local [all...] |
/external/ppp/pppd/plugins/pppoatm/ |
H A D | ans.c | 179 int digit; local 183 digit = addr[i] & 0x0F; 184 *(buf++) = digit + (digit >= 10 ? '7' : '0'); 186 digit = ((unsigned char) (addr[i])) >> 4; 187 *(buf++) = digit + (digit >= 10 ? '7' : '0');
|
/external/xmp_toolkit/XMPCore/src/com/adobe/xmp/impl/ |
H A D | FixASCIIControlsReader.java | 143 control = Character.digit(ch, 10); 156 control = control * 10 + Character.digit(ch, 10); 183 control = control * 16 + Character.digit(ch, 16);
|
/external/compiler-rt/lib/sanitizer_common/ |
H A D | sanitizer_printf.cc | 51 uptr digit = num_buffer[pos]; 52 result += AppendChar(buff, buff_end, (digit < 10) ? '0' + digit 53 : 'a' + digit - 10);
|
/external/openssl/crypto/ec/ |
H A D | ec_mult.c | 190 * with the exception that the most significant digit may be only 191 * w-1 zeros away from that next non-zero digit. 236 r = OPENSSL_malloc(len + 1); /* modified wNAF may be one digit longer than binary representation 248 int digit = 0; local 258 digit = window_val - next_bit; /* -2^w < digit < 0 */ 265 * so using a positive digit here will decrease 268 digit = window_val & (mask >> 1); /* 0 < digit < 2^w */ 274 digit 666 int digit = wNAF[i][k]; local [all...] |
/external/valgrind/main/coregrind/ |
H A D | m_libcbase.c | 53 static Bool is_dec_digit(Char c, Long* digit) argument 55 if (c >= '0' && c <= '9') { *digit = (Long)(c - '0'); return True; } 59 static Bool is_hex_digit(Char c, Long* digit) argument 61 if (c >= '0' && c <= '9') { *digit = (Long)(c - '0'); return True; } 62 if (c >= 'A' && c <= 'F') { *digit = (Long)((c - 'A') + 10); return True; } 63 if (c >= 'a' && c <= 'f') { *digit = (Long)((c - 'a') + 10); return True; } 70 Long n = 0, digit = 0; local 80 while (is_dec_digit(*str, &digit)) { 81 converted = True; // Ok, we've actually converted a digit. 82 n = 10*n + digit; 96 Long digit = 0; local 120 Long n = 0, digit = 0; local 154 Long digit = 0; local 186 Long digit; local [all...] |
/external/icu4c/test/intltest/ |
H A D | 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/protobuf/src/google/protobuf/io/ |
H A D | tokenizer.cc | 145 // Given a char, interpret it as a numeric digit and return its value. 147 inline int DigitValue(char digit) { argument 148 if ('0' <= digit && digit <= '9') return digit - '0'; 149 if ('a' <= digit && digit <= 'z') return digit - 'a' + 10; 150 if ('A' <= digit && digit < 586 int digit = DigitValue(*ptr); local [all...] |