/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/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/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 | 167 // If 1 <= (numerator+delta_plus) / denominator < 10 then no leading 0 digit 180 uint16_t digit; local 181 digit = numerator->DivideModuloIntBignum(*denominator); 182 ASSERT(digit <= 9); // digit is a uint16_t and therefore always positive. 183 // digit = numerator / denominator (integer division). 185 buffer[(*length)++] = digit + '0'; 218 // If yes, then the next digit would be < 5 and we can round down. 224 // Note that the last digit could not be a '9' as otherwise the whole 249 // Note again that the last digit coul 272 uint16_t digit; local 282 uint16_t digit; local [all...] |
H A D | fixed-dtoa.cc | 137 int digit = number % 10; local 139 buffer[(*length) + number_length] = '0' + digit; 200 // Round the last digit until we either have a digit that was not '9' or until 201 // we reached the first digit. 210 // If the first digit is now '0' + 10, we would need to set it to '0' and add 211 // a '1' in front. However we reach the first digit only if all following 213 // we simply switch the first digit to '1' and update the decimal-point 214 // (indicating that the point is now one digit to the right). 258 int digit local 279 int digit = fractionals128.DivModPowerOf2(point); local [all...] |
H A D | fast-dtoa.cc | 43 // A different range might be chosen on a different platform, to optimize digit 49 // Adjusts the last digit of the generated number, and screens out generated 208 // Increment the last digit recursively until we find a non '9' digit. 215 // If the first digit is now '0'+ 10 we had a buffer with all '9's. With the 216 // exception of the first digit all digits are now '0'. Simply switch the 217 // first digit to '1' and adjust the kappa. Example: "99" becomes "10" and 358 // * buffer contains the shortest possible decimal digit-sequence 376 // get each digit. Example the first digit afte 432 int digit = integrals / divisor; local 467 int digit = static_cast<int>(fractionals >> -one.e()); local 541 int digit = integrals / divisor; local 574 int digit = static_cast<int>(fractionals >> -one.e()); 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; 95 Long n = 0, digit = 0; local 128 Long digit; 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/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/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...] |
/external/webkit/Source/JavaScriptCore/runtime/ |
H A D | JSGlobalObjectFunctions.cpp | 162 int digit = -1; local 165 digit = c - '0'; 167 digit = c - 'A' + 10; 169 digit = c - 'a' + 10; 171 if (digit >= radix) 173 return digit; 188 int digit = parseDigit(*p, radix); local 189 number += digit * radixMultiplier; 210 int digit = parseDigit(*p, radix); local 211 number += digit * radixMultiplie 256 int digit = parseDigit(data[p], radix); local [all...] |
/external/chromium/base/ |
H A D | string_number_conversions.cc | 99 // Utility to convert a character to a digit in a given base 106 static bool Convert(CHAR c, uint8* digit) { argument 108 *digit = c - '0'; 118 static bool Convert(CHAR c, uint8* digit) { argument 120 *digit = c - '0'; 122 *digit = c - 'a' + 10; 124 *digit = c - 'A' + 10; 132 template<int BASE, typename CHAR> bool CharToDigit(CHAR c, uint8* digit) { argument 133 return BaseCharToDigit<CHAR, BASE, BASE <= 10>::Convert(c, digit); 204 // - a static function, CheckBounds, that determines whether the next digit [all...] |
/external/apache-harmony/support/src/test/java/tests/support/ |
H A D | Support_Configuration.java | 228 int digit = Character.digit((char) nextChar, 16); 229 if (digit >= 0) { 230 unicode = (unicode << 4) + digit;
|
/external/icu4c/io/ |
H A D | 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/stlport/test/unit/ |
H A D | ctype_facets_test.cpp | 33 CPPUNIT_ASSERT( ct.is(ctype_base::digit, '0') ); 50 CPPUNIT_ASSERT( (res[0] & ctype_base::digit) != 0 ); 66 CPPUNIT_ASSERT( (res[3] & ctype_base::digit) == 0 ); 70 CPPUNIT_ASSERT( (res[4] & ctype_base::digit) == 0 ); 177 CPPUNIT_CHECK( wct.is(ctype_base::digit, L'0') ); 194 CPPUNIT_CHECK( (res[0] & ctype_base::digit) != 0 ); 210 CPPUNIT_CHECK( (res[3] & ctype_base::digit) == 0 ); 214 CPPUNIT_CHECK( (res[4] & ctype_base::digit) == 0 ); 454 CPPUNIT_CHECK(cfacet_byname.is(ctype_base::digit, c) == cfacet.is(ctype_base::digit, [all...] |
/external/chromium/chrome/browser/autofill/ |
H A D | credit_card.cc | 415 int digit = *iter - '0'; local 417 digit *= 2; 418 sum += digit / 10 + digit % 10; 420 sum += digit;
|