/external/smali/smali/src/main/java/org/jf/smali/ |
D | LiteralTools.java | 67 } else if (Character.digit(byteChars[position], 8) >= 0) { in parseByte() 74 int digit; in parseByte() local 78 digit = Character.digit(byteChars[position], radix); in parseByte() 79 if (digit < 0) { in parseByte() 86 if (shiftedResult < 0 && shiftedResult >= -digit) { in parseByte() 89 result = (byte)(shiftedResult + digit); in parseByte() 137 } else if (Character.digit(shortChars[position], 8) >= 0) { in parseShort() 144 int digit; in parseShort() local 148 digit = Character.digit(shortChars[position], radix); in parseShort() 149 if (digit < 0) { in parseShort() [all …]
|
/external/webkit/Source/WebCore/html/parser/ |
D | HTMLParserIdioms.cpp | 127 int digit, exponentSign; in parseToDoubleForNumberTypeWithDecimalPlaces() local 133 switch (digit = string[cursor]) { in parseToDoubleForNumberTypeWithDecimalPlaces() 137 digit = string[++cursor]; in parseToDoubleForNumberTypeWithDecimalPlaces() 139 if (digit >= '0' && digit <= '9') { in parseToDoubleForNumberTypeWithDecimalPlaces() 140 while (cursor < length && digit == '0') in parseToDoubleForNumberTypeWithDecimalPlaces() 141 digit = string[++cursor]; in parseToDoubleForNumberTypeWithDecimalPlaces() 142 if (digit > '0' && digit <= '9') { in parseToDoubleForNumberTypeWithDecimalPlaces() 143 exponent32 = digit - '0'; in parseToDoubleForNumberTypeWithDecimalPlaces() 145 while (cursor < length && (digit = string[++cursor]) >= '0' && digit <= '9') in parseToDoubleForNumberTypeWithDecimalPlaces() 146 exponent32 = (10 * exponent32) + digit - '0'; in parseToDoubleForNumberTypeWithDecimalPlaces()
|
/external/stressapptest/src/ |
D | sattypes.h | 132 int digit = 0, last_non_zero_size = 1; in cpuset_format() local 135 digit |= 1 << (i & 3); in cpuset_format() 138 format += char(digit <= 9 ? '0' + digit: 'A' + digit - 10); in cpuset_format() 139 if (digit) { in cpuset_format() 141 digit = 0; in cpuset_format() 145 if (digit) { in cpuset_format() 146 format += char(digit <= 9 ? '0' + digit: 'A' + digit - 10); in cpuset_format()
|
/external/chromium/third_party/libjingle/source/talk/base/ |
D | urlencode.cc | 37 int digit = *pch++; in HexPairValue() local 38 if (digit >= '0' && digit <= '9') { in HexPairValue() 39 value += digit - '0'; in HexPairValue() 41 else if (digit >= 'A' && digit <= 'F') { in HexPairValue() 42 value += digit - 'A' + 10; in HexPairValue() 44 else if (digit >= 'a' && digit <= 'f') { in HexPairValue() 45 value += digit - 'a' + 10; in HexPairValue()
|
/external/protobuf/src/google/protobuf/io/ |
D | tokenizer.cc | 147 inline int DigitValue(char digit) { in DigitValue() argument 148 if ('0' <= digit && digit <= '9') return digit - '0'; in DigitValue() 149 if ('a' <= digit && digit <= 'z') return digit - 'a' + 10; in DigitValue() 150 if ('A' <= digit && digit <= 'Z') return digit - 'A' + 10; in DigitValue() 586 int digit = DigitValue(*ptr); in ParseInteger() local 587 GOOGLE_LOG_IF(DFATAL, digit < 0 || digit >= base) in ParseInteger() 590 if (digit > max_value || result > (max_value - digit) / base) { in ParseInteger() 594 result = result * base + digit; in ParseInteger()
|
/external/icu4c/common/ |
D | ustrfmt.c | 32 int digit; in uprv_itou() local 37 digit = (int)(i % radix); in uprv_itou() 38 buffer[length++]=(UChar)(digit<=9?(0x0030+digit):(0x0030+digit+7)); in uprv_itou()
|
D | punycode.cpp | 93 digitToBasic(int32_t digit, UBool uppercase) { in digitToBasic() argument 96 if(digit<26) { in digitToBasic() 98 return (char)(_CAPITAL_A+digit); in digitToBasic() 100 return (char)(_SMALL_A+digit); in digitToBasic() 103 return (char)((_ZERO_-26)+digit); in digitToBasic() 379 int32_t n, destLength, i, bias, basicLength, j, in, oldi, w, k, digit, t, in u_strFromPunycode() local 456 digit=basicToDigit[(uint8_t)src[in++]]; in u_strFromPunycode() 457 if(digit<0) { in u_strFromPunycode() 461 if(digit>(0x7fffffff-i)/w) { in u_strFromPunycode() 467 i+=digit*w; in u_strFromPunycode() [all …]
|
D | cstring.c | 159 uint8_t digit; in T_CString_integerToString() local 174 digit = (uint8_t)(uval % radix); in T_CString_integerToString() 175 tbuf[--tbx] = (char)(T_CString_itosOffset(digit)); in T_CString_integerToString() 197 uint8_t digit; in T_CString_int64ToString() local 212 digit = (uint8_t)(uval % radix); in T_CString_int64ToString() 213 tbuf[--tbx] = (char)(T_CString_itosOffset(digit)); in T_CString_int64ToString()
|
/external/icu4c/data/translit/ |
D | Latin_NumericPinyin.txt | 17 $digit = [1-5]; 18 $1 &NumericPinyin-Pinyin($3) $2 ← ([aAeE]) ($vowel* $consonant*) ($digit); 19 $1 &NumericPinyin-Pinyin($3) $2 ← ([oO]) ([$vowel-[aeAE]]* $consonant*) ($digit); 20 $1 &NumericPinyin-Pinyin($3) $2 ← ($vowel) ($consonant*) ($digit); 21 &NumericPinyin-Pinyin($1) ← [:letter:] {($digit)};
|
/external/valgrind/main/coregrind/ |
D | m_libcbase.c | 53 static Bool is_dec_digit(Char c, Long* digit) in is_dec_digit() argument 55 if (c >= '0' && c <= '9') { *digit = (Long)(c - '0'); return True; } in is_dec_digit() 59 static Bool is_hex_digit(Char c, Long* digit) in is_hex_digit() argument 61 if (c >= '0' && c <= '9') { *digit = (Long)(c - '0'); return True; } in is_hex_digit() 62 if (c >= 'A' && c <= 'F') { *digit = (Long)((c - 'A') + 10); return True; } in is_hex_digit() 63 if (c >= 'a' && c <= 'f') { *digit = (Long)((c - 'a') + 10); return True; } in is_hex_digit() 70 Long n = 0, digit = 0; in VG_() local 80 while (is_dec_digit(*str, &digit)) { in VG_() 82 n = 10*n + digit; in VG_() 96 Long digit = 0; in VG_() local [all …]
|
/external/ipsec-tools/src/racoon/ |
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/smali/util/src/main/java/org/jf/util/ |
D | IndentingWriter.java | 164 int digit = (int)(value & 15); in printUnsignedLongAsHex() local 165 if (digit < 10) { in printUnsignedLongAsHex() 166 buffer[bufferIndex++] = (char)(digit + '0'); in printUnsignedLongAsHex() 168 buffer[bufferIndex++] = (char)((digit - 10) + 'a'); in printUnsignedLongAsHex() 188 int digit = value % 10; in printSignedIntAsDec() local 189 buffer[bufferIndex++] = (char)(digit + '0'); in printSignedIntAsDec()
|
/external/v8/src/ |
D | bignum-dtoa.cc | 183 uint16_t digit; in GenerateShortestDigits() local 184 digit = numerator->DivideModuloIntBignum(*denominator); in GenerateShortestDigits() 185 ASSERT(digit <= 9); // digit is a uint16_t and therefore always positive. in GenerateShortestDigits() 188 buffer[(*length)++] = digit + '0'; in GenerateShortestDigits() 275 uint16_t digit; in GenerateCountedDigits() local 276 digit = numerator->DivideModuloIntBignum(*denominator); in GenerateCountedDigits() 277 ASSERT(digit <= 9); // digit is a uint16_t and therefore always positive. in GenerateCountedDigits() 280 buffer[i] = digit + '0'; in GenerateCountedDigits() 285 uint16_t digit; in GenerateCountedDigits() local 286 digit = numerator->DivideModuloIntBignum(*denominator); in GenerateCountedDigits() [all …]
|
D | fixed-dtoa.cc | 139 int digit = number % 10; in FillDigits32() local 141 buffer[(*length) + number_length] = '0' + digit; in FillDigits32() 260 int digit = static_cast<int>(fractionals >> point); in FillFractionals() local 261 buffer[*length] = '0' + digit; in FillFractionals() 263 fractionals -= static_cast<uint64_t>(digit) << point; in FillFractionals() 281 int digit = fractionals128.DivModPowerOf2(point); in FillFractionals() local 282 buffer[*length] = '0' + digit; in FillFractionals()
|
/external/icu4c/samples/numfmt/ |
D | util.cpp | 35 uint32_t digit; in appendHex() local 37 digit = (number >> ((--digits) * 4)) & 0xF; in appendHex() 38 target += (UChar)(digit < 10 ? 0x30 + digit : 0x41 - 10 + digit); in appendHex()
|
/external/clang/test/CodeGenCXX/ |
D | template-dependent-bind-temporary.cpp | 16 T digit; in IntToString() local 17 char((digit < 10 ? '0' : 'a') + digit) + result; in IntToString() local
|
/external/openssl/crypto/ec/ |
D | ec_mult.c | 248 int digit = 0; in compute_wNAF() local 258 digit = window_val - next_bit; /* -2^w < digit < 0 */ in compute_wNAF() 268 digit = window_val & (mask >> 1); /* 0 < digit < 2^w */ in compute_wNAF() 274 digit = window_val; /* 0 < digit < 2^w */ in compute_wNAF() 277 if (digit <= -bit || digit >= bit || !(digit & 1)) in compute_wNAF() 283 window_val -= digit; in compute_wNAF() 295 r[j++] = sign * digit; in compute_wNAF() 666 int digit = wNAF[i][k]; in ec_wNAF_mul() local 669 if (digit) in ec_wNAF_mul() 671 is_neg = digit < 0; in ec_wNAF_mul() [all …]
|
/external/guava/guava/src/com/google/common/primitives/ |
D | AndroidInteger.java | 64 int digit = Character.digit(string.charAt(offset++), radix); in tryParse() local 65 if (digit == -1) { in tryParse() 71 int next = result * radix - digit; in tryParse()
|
D | UnsignedLongs.java | 268 int digit = Character.digit(s.charAt(pos), radix); in parseUnsignedLong() local 269 if (digit == -1) { in parseUnsignedLong() 272 if (pos > max_safe_pos && overflowInParse(value, digit, radix)) { in parseUnsignedLong() 275 value = (value * radix) + digit; in parseUnsignedLong() 287 private static boolean overflowInParse(long current, int digit, int radix) { in overflowInParse() argument 296 return (digit > maxValueMods[radix]); in overflowInParse()
|
/external/ppp/pppd/plugins/pppoatm/ |
D | ans.c | 179 int digit; in encode_nsap_new() local 183 digit = addr[i] & 0x0F; in encode_nsap_new() 184 *(buf++) = digit + (digit >= 10 ? '7' : '0'); in encode_nsap_new() 186 digit = ((unsigned char) (addr[i])) >> 4; in encode_nsap_new() 187 *(buf++) = digit + (digit >= 10 ? '7' : '0'); in encode_nsap_new()
|
/external/webkit/Source/JavaScriptCore/runtime/ |
D | JSGlobalObjectFunctions.cpp | 162 int digit = -1; in parseDigit() local 165 digit = c - '0'; in parseDigit() 167 digit = c - 'A' + 10; in parseDigit() 169 digit = c - 'a' + 10; in parseDigit() 171 if (digit >= radix) in parseDigit() 173 return digit; in parseDigit() 188 int digit = parseDigit(*p, radix); in parseIntOverflow() local 189 number += digit * radixMultiplier; in parseIntOverflow() 210 int digit = parseDigit(*p, radix); in parseIntOverflow() local 211 number += digit * radixMultiplier; in parseIntOverflow() [all …]
|
/external/apache-http/src/org/apache/commons/codec/binary/ |
D | Hex.java | 85 int digit = Character.digit(ch, 16); in toDigit() local 86 if (digit == -1) { in toDigit() 89 return digit; in toDigit()
|
/external/icu4c/test/intltest/ |
D | punyref.c | 223 b, j, in, oldi, w, k, digit, t; in punycode_decode() local 260 digit = decode_digit(input[in++]); in punycode_decode() 261 if (digit >= base) return punycode_bad_input; in punycode_decode() 262 if (digit > (maxint - i) / w) return punycode_overflow; in punycode_decode() 263 i += digit * w; in punycode_decode() 266 if (digit < t) break; in punycode_decode()
|
/external/checkpolicy/ |
D | policy_scan.l | 54 digit [0-9] 244 {digit}+|0x{hexval}+ { return(NUMBER); } 245 {digit}{1,3}(\.{digit}{1,3}){3} { return(IPV4_ADDR); } 247 {digit}+(\.({alnum}|[_.])*)? { return(VERSION_IDENTIFIER); } 249 #line[ ]{digit}+ { source_lineno = atoi(yytext+6)-1; }
|
/external/icu4c/tools/genrb/ |
D | rbutil.c | 72 int digit; in itostr() local 82 digit = (int)(i % radix); in itostr() 83 buffer[length++]= digits[digit]; in itostr()
|