/libcore/ojluni/src/main/java/sun/security/util/ |
D | DerInputBuffer.java | 318 year = 1000 * Character.digit((char)buf[pos++], 10); in getTime() 319 year += 100 * Character.digit((char)buf[pos++], 10); in getTime() 320 year += 10 * Character.digit((char)buf[pos++], 10); in getTime() 321 year += Character.digit((char)buf[pos++], 10); in getTime() 325 year = 10 * Character.digit((char)buf[pos++], 10); in getTime() 326 year += Character.digit((char)buf[pos++], 10); in getTime() 334 month = 10 * Character.digit((char)buf[pos++], 10); in getTime() 335 month += Character.digit((char)buf[pos++], 10); in getTime() 337 day = 10 * Character.digit((char)buf[pos++], 10); in getTime() 338 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 | 557 int digit = digits[intCount]; in testBit() local 564 digit = -digit; in testBit() 566 digit = ~digit; in testBit() 569 return ((digit & n) != 0); in testBit() 1103 int digit = -temp.digits[digitIndex]; 1108 for (int i = 0; i < bytesInInteger; i++, digit >>= 8) { 1109 bytes[--bytesLen] = (byte) digit; 1112 digit = ~temp.digits[digitIndex]; 1117 for (int i = 0; i < bytesInInteger; i++, digit >>= 8) { 1118 bytes[--bytesLen] = (byte) digit; [all …]
|
D | BigInt.java | 141 if (Character.digit(ch, base) == -1) { in checkString() 159 int value = Character.digit(ch, base); in toAscii()
|
/libcore/ojluni/src/main/java/sun/net/util/ |
D | IPAddressUtil.java | 88 int digit = Character.digit(c, 10); in textToNumericFormatV4() local 89 if (digit < 0) { in textToNumericFormatV4() 93 tmpValue += digit; in textToNumericFormatV4() 166 int chval = Character.digit(ch, 16); in textToNumericFormatV6()
|
/libcore/ojluni/src/main/java/java/text/ |
D | DecimalFormatSymbols.java | 275 return digit; in getDigit() 283 public void setDigit(char digit) { in setDigit() argument 284 this.digit = digit; in setDigit() 605 digit == other.digit && in equals() 629 result = result * 37 + digit; in hashCode() 689 digit = numberElements[5].charAt(0); in initialize() 780 cachedIcuDFS.setDigit(digit); in getIcuDecimalFormatSymbols() 1018 private char digit; field in DecimalFormatSymbols
|
/libcore/ojluni/src/main/java/java/util/ |
D | Scanner.java | 429 String digit = "((?i)["+radixDigits+"]|\\p{javaDigit})"; in buildIntegerPatternString() local 437 String groupedNumeral = "("+non0RadixDigits+digit+"?"+digit+"?("+ in buildIntegerPatternString() 438 groupSeparator+digit+digit+digit+")+)"; in buildIntegerPatternString() 442 String numeral = "(("+ digit+"++)|"+groupedNumeral+")"; in buildIntegerPatternString() 487 String digit = "([0-9]|(\\p{javaDigit}))"; in buildFloatAndDecimalPattern() local 488 String exponent = "([eE][+-]?"+digit+"+)?"; in buildFloatAndDecimalPattern() 489 String groupedNumeral = "("+non0Digit+digit+"?"+digit+"?("+ in buildFloatAndDecimalPattern() 490 groupSeparator+digit+digit+digit+")+)"; in buildFloatAndDecimalPattern() 492 String numeral = "(("+digit+"++)|"+groupedNumeral+")"; in buildFloatAndDecimalPattern() 494 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 | 574 int digit; in parseLong() local 592 digit = Character.digit(s.charAt(i++),radix); in parseLong() 593 if (digit < 0) { in parseLong() 600 if (result < limit + digit) { in parseLong() 603 result -= digit; in parseLong() 703 int second = Character.digit(s.charAt(len - 1), radix); in parseUnsignedLong()
|
D | Integer.java | 595 int digit; 613 digit = Character.digit(s.charAt(i++),radix); 614 if (digit < 0) { 621 if (result < limit + digit) { 624 result -= digit;
|
D | Character.java | 6764 public static int digit(char ch, int radix) { in digit() method in Character 6765 return digit((int)ch, radix); in digit() 6822 public static int digit(int codePoint, int radix) { in digit() method in Character 7342 public static char forDigit(int digit, int radix) { in forDigit() argument 7343 if ((digit >= radix) || (digit < 0)) { in forDigit() 7349 if (digit < 10) { in forDigit() 7350 return (char)('0' + digit); in forDigit() 7352 return (char)('a' - 10 + digit); in forDigit()
|
/libcore/ojluni/src/main/java/sun/misc/ |
D | Version.java | 279 jvm_major_version = Character.digit(cs.charAt(0), 10); in initVersions() 280 jvm_minor_version = Character.digit(cs.charAt(2), 10); in initVersions() 281 jvm_micro_version = Character.digit(cs.charAt(4), 10); in initVersions()
|
D | MessageUtils.java | 65 int index = Character.digit(patt.charAt(i + 1), 10); in subst()
|
/libcore/ojluni/annotations/hiddenapi/java/text/ |
D | DecimalFormatSymbols.java | 116 public void setDigit(char digit) { in setDigit() argument 254 private char digit; field in DecimalFormatSymbols
|
/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/java/time/format/ |
D | DateTimeFormatterBuilder.java | 2655 int digit = context.getDecimalStyle().convertToDigit(ch); in parse() local 2656 if (digit < 0) { in parse() 2667 totalBig = totalBig.multiply(BigInteger.TEN).add(BigInteger.valueOf(digit)); in parse() 2669 total = total * 10 + digit; in parse() 2997 int digit = context.getDecimalStyle().convertToDigit(ch); in parse() local 2998 if (digit < 0) { in parse() 3005 total = total * 10 + digit; in parse() 3238 int digit = inNano / div; in format() local 3239 buf.append((char) (digit + '0')); in format() 3240 inNano = inNano - (digit * div); in format()
|
/libcore/ojluni/annotations/hiddenapi/java/lang/ |
D | Character.java | 350 public static int digit(char ch, int radix) { in digit() method in Character 354 public static int digit(int codePoint, int radix) { in digit() method in Character 413 public static char forDigit(int digit, int radix) { in forDigit() argument
|
/libcore/ojluni/annotations/sdk/nullability/java/lang/ |
D | Character.annotated.java | 165 public static int digit(char ch, int radix) { throw new RuntimeException("Stub!"); } in digit() method in Character 167 public static int digit(int codePoint, int radix) { throw new RuntimeException("Stub!"); } in digit() method in Character 191 public static char forDigit(int digit, int radix) { throw new RuntimeException("Stub!"); } in forDigit() argument
|