/libcore/ojluni/src/main/java/sun/security/util/ |
D | DerInputBuffer.java | 311 year = 1000 * Character.digit((char)buf[pos++], 10); in getTime() 312 year += 100 * Character.digit((char)buf[pos++], 10); in getTime() 313 year += 10 * Character.digit((char)buf[pos++], 10); in getTime() 314 year += Character.digit((char)buf[pos++], 10); in getTime() 318 year = 10 * Character.digit((char)buf[pos++], 10); in getTime() 319 year += Character.digit((char)buf[pos++], 10); in getTime() 327 month = 10 * Character.digit((char)buf[pos++], 10); in getTime() 328 month += Character.digit((char)buf[pos++], 10); in getTime() 330 day = 10 * Character.digit((char)buf[pos++], 10); in getTime() 331 day += Character.digit((char)buf[pos++], 10); in getTime() [all …]
|
/libcore/luni/src/main/java/java/math/ |
D | Logical.java | 178 int digit; in andNegative() local 180 digit = -shorter.digits[i] & ~longer.digits[i]; in andNegative() 182 digit = ~shorter.digits[i] & -longer.digits[i]; in andNegative() 184 digit = -shorter.digits[i] & -longer.digits[i]; in andNegative() 186 if (digit == 0) { in andNegative() 187 … for (i++; i < shorter.numberLength && (digit = ~(longer.digits[i] | shorter.digits[i])) == 0; i++) in andNegative() 189 if (digit == 0) { in andNegative() 191 for ( ; i < longer.numberLength && (digit = ~longer.digits[i]) == 0; i++) in andNegative() 193 if (digit == 0) { in andNegative() 204 resDigits[i] = -digit; in andNegative() [all …]
|
D | BigInteger.java | 555 int digit = digits[intCount]; in testBit() local 562 digit = -digit; in testBit() 564 digit = ~digit; in testBit() 567 return ((digit & n) != 0); in testBit() 1101 int digit = -temp.digits[digitIndex]; 1106 for (int i = 0; i < bytesInInteger; i++, digit >>= 8) { 1107 bytes[--bytesLen] = (byte) digit; 1110 digit = ~temp.digits[digitIndex]; 1115 for (int i = 0; i < bytesInInteger; i++, digit >>= 8) { 1116 bytes[--bytesLen] = (byte) digit; [all …]
|
D | BigInt.java | 139 if (Character.digit(ch, base) == -1) { in checkString() 157 int value = Character.digit(ch, base); in toAscii()
|
/libcore/ojluni/src/main/java/java/text/ |
D | DecimalFormatSymbols.java | 250 return digit; in getDigit() 256 public void setDigit(char digit) { in setDigit() argument 257 this.digit = digit; in setDigit() 537 digit == other.digit && in equals() 559 result = result * 37 + digit; in hashCode() 609 digit = numberElements[5].charAt(0); in initialize() 690 cachedIcuDFS.setDigit(digit); in getIcuDecimalFormatSymbols() 918 private char digit; field in DecimalFormatSymbols
|
D | DigitList.java | 144 public void append(char digit) { in append() argument 150 digits[count++] = digit; in append()
|
/libcore/ojluni/src/main/java/java/util/ |
D | Scanner.java | 474 String digit = "((?i)["+radixDigits+"]|\\p{javaDigit})"; in buildIntegerPatternString() local 476 String groupedNumeral = "("+nonZeroRadixDigits+digit+"?"+digit+"?("+ in buildIntegerPatternString() 477 groupSeparator+digit+digit+digit+")+)"; in buildIntegerPatternString() 480 String numeral = "(("+ digit+"++)|"+groupedNumeral+")"; in buildIntegerPatternString() 525 String digit = "([0-9]|(\\p{javaDigit}))"; in buildFloatAndDecimalPattern() local 526 String exponent = "([eE][+-]?"+digit+"+)?"; in buildFloatAndDecimalPattern() 527 String groupedNumeral = "("+non0Digit+digit+"?"+digit+"?("+ in buildFloatAndDecimalPattern() 528 groupSeparator+digit+digit+digit+")+)"; in buildFloatAndDecimalPattern() 530 String numeral = "(("+digit+"++)|"+groupedNumeral+")"; in buildFloatAndDecimalPattern() 532 decimalSeparator + digit + "*+|"+ decimalSeparator + in buildFloatAndDecimalPattern() [all …]
|
/libcore/luni/src/main/native/ |
D | cbigint.cpp | 226 simpleAppendDecimalDigitHighPrecision (uint64_t * arg1, int32_t length, uint64_t digit) in simpleAppendDecimalDigitHighPrecision() argument 232 digit <<= 32; in simpleAppendDecimalDigitHighPrecision() 236 digit = HIGH_IN_U64 (digit) + TIMES_TEN (arg); in simpleAppendDecimalDigitHighPrecision() 237 LOW_U32_FROM_PTR (arg1 + index) = LOW_U32_FROM_VAR (digit); in simpleAppendDecimalDigitHighPrecision() 240 digit = HIGH_IN_U64 (digit) + TIMES_TEN (arg); in simpleAppendDecimalDigitHighPrecision() 241 HIGH_U32_FROM_PTR (arg1 + index) = LOW_U32_FROM_VAR (digit); in simpleAppendDecimalDigitHighPrecision() 245 return HIGH_U32_FROM_VAR (digit); in simpleAppendDecimalDigitHighPrecision()
|
D | cbigint.h | 90 uint32_t simpleAppendDecimalDigitHighPrecision(uint64_t* arg1, int32_t length, uint64_t digit);
|
/libcore/ojluni/src/main/java/java/lang/ |
D | Long.java | 423 int digit; in parseLong() local 441 digit = Character.digit(s.charAt(i++),radix); in parseLong() 442 if (digit < 0) { in parseLong() 449 if (result < limit + digit) { in parseLong() 452 result -= digit; in parseLong()
|
D | Integer.java | 501 int digit; 519 digit = Character.digit(s.charAt(i++),radix); 520 if (digit < 0) { 527 if (result < limit + digit) { 530 result -= digit;
|
D | Character.java | 6426 public static int digit(char ch, int radix) { in digit() method in Character 6427 return digit((int)ch, radix); in digit() 6478 public static int digit(int codePoint, int radix) { in digit() method in Character 6961 public static char forDigit(int digit, int radix) { in forDigit() argument 6962 if ((digit >= radix) || (digit < 0)) { in forDigit() 6968 if (digit < 10) { in forDigit() 6969 return (char)('0' + digit); in forDigit() 6971 return (char)('a' - 10 + digit); in forDigit()
|
/libcore/ojluni/src/main/java/sun/misc/ |
D | Version.java | 273 jvm_major_version = Character.digit(cs.charAt(0), 10); in initVersions() 274 jvm_minor_version = Character.digit(cs.charAt(2), 10); in initVersions() 275 jvm_micro_version = Character.digit(cs.charAt(4), 10); in initVersions()
|
D | FDBigInt.java | 60 public FDBigInt( long seed, char digit[], int nd0, int nd ){ in FDBigInt() argument 72 v = (int)digit[i++]-(int)'0'; in FDBigInt() 74 v = 10*v + (int)digit[i++]-(int)'0'; in FDBigInt() 81 v = 10*v + (int)digit[i++]-(int)'0'; in FDBigInt()
|
D | MessageUtils.java | 65 int index = Character.digit(patt.charAt(i + 1), 10); in subst()
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/lang/ |
D | ShortTest.java | 499 assertEquals(Character.digit('1', 2), Short.valueOf("1", 2).byteValue()); in test_valueOfLjava_lang_StringI() 500 assertEquals(Character.digit('F', 16), Short.valueOf("F", 16).byteValue()); in test_valueOfLjava_lang_StringI() 569 assertEquals(Character.digit('1', 2), Short.parseShort("1", 2)); in test_parseShortLjava_lang_StringI() 570 assertEquals(Character.digit('F', 16), Short.parseShort("F", 16)); in test_parseShortLjava_lang_StringI()
|
D | ByteTest.java | 178 assertEquals(Character.digit('1', 2), Byte.valueOf("1", 2).byteValue()); in test_valueOfLjava_lang_StringI() 179 assertEquals(Character.digit('F', 16), Byte.valueOf("F", 16).byteValue()); in test_valueOfLjava_lang_StringI() 248 assertEquals(Character.digit('1', 2), Byte.parseByte("1", 2)); in test_parseByteLjava_lang_StringI() 249 assertEquals(Character.digit('F', 16), Byte.parseByte("F", 16)); in test_parseByteLjava_lang_StringI()
|
D | CharacterTest.java | 612 assertEquals("Returned incorrect digit", 1, Character.digit('1', 10)); 613 assertEquals("Returned incorrect digit", 15, Character.digit('F', 16)); 620 assertEquals(1, Character.digit((int) '1', 10)); 621 assertEquals(15, Character.digit((int) 'F', 16)); 623 assertEquals(-1, Character.digit(0x0000, 37)); 624 assertEquals(-1, Character.digit(0x0045, 10)); 626 assertEquals(10, Character.digit(0x0041, 20)); 627 assertEquals(10, Character.digit(0x0061, 20)); 629 assertEquals(-1, Character.digit(0x110000, 20));
|
D | LongTest.java | 664 assertEquals(Character.digit('1', 2), Long.valueOf("1", 2).byteValue()); in test_valueOfLjava_lang_StringJ() 665 assertEquals(Character.digit('F', 16), Long.valueOf("F", 16).byteValue()); in test_valueOfLjava_lang_StringJ() 734 assertEquals(Character.digit('1', 2), Long.parseLong("1", 2)); in test_parseLongLjava_lang_StringJ() 735 assertEquals(Character.digit('F', 16), Long.parseLong("F", 16)); in test_parseLongLjava_lang_StringJ()
|
D | IntegerTest.java | 829 assertEquals(Character.digit('1', 2), Integer.valueOf("1", 2).byteValue()); in test_valueOfLjava_lang_StringI() 830 assertEquals(Character.digit('F', 16), Integer.valueOf("F", 16).byteValue()); in test_valueOfLjava_lang_StringI() 899 assertEquals(Character.digit('1', 2), Integer.parseInt("1", 2)); in test_parseIntLjava_lang_StringI() 900 assertEquals(Character.digit('F', 16), Integer.parseInt("F", 16)); in test_parseIntLjava_lang_StringI()
|
/libcore/luni/src/test/java/libcore/java/lang/ |
D | OldCharacterTest.java | 130 assertEquals(-1, Character.digit('\uFFFF', 1)); in test_digitCI()
|
/libcore/benchmarks/src/benchmarks/regression/ |
D | CharacterBenchmark.java | 80 Character.digit(chars[ch], 10); in timeDigit() 86 Character.digit((int) chars[ch], 10); in timeDigit()
|
/libcore/ojluni/src/main/java/sun/net/util/ |
D | IPAddressUtil.java | 168 int chval = Character.digit(ch, 16); in textToNumericFormatV6()
|
/libcore/ojluni/src/main/java/sun/net/www/http/ |
D | ChunkedInputStream.java | 312 if (Character.digit(header.charAt(i), 16) == -1) in processRaw()
|
/libcore/ojluni/src/main/java/sun/security/x509/ |
D | AVA.java | 538 int hi = Character.digit((char)c1, 16); in getEmbeddedHexPair() 539 int lo = Character.digit((char)c2, 16); in getEmbeddedHexPair()
|