/libcore/ojluni/src/main/java/jdk/internal/math/ |
D | FormattedFloatingDecimal.java | 63 char[] digits = getBuffer(); in FormattedFloatingDecimal() local 64 int nDigits = fdConverter.getDigits(digits); in FormattedFloatingDecimal() 72 fillCompatible(precision, digits, nDigits, exp, isNegative); in FormattedFloatingDecimal() 75 exp = applyPrecision(decExp, digits, nDigits, decExp + precision); in FormattedFloatingDecimal() 76 fillDecimal(precision, digits, nDigits, exp, isNegative); in FormattedFloatingDecimal() 80 exp = applyPrecision(decExp, digits, nDigits, precision + 1); in FormattedFloatingDecimal() 81 fillScientific(precision, digits, nDigits, exp, isNegative); in FormattedFloatingDecimal() 85 exp = applyPrecision(decExp, digits, nDigits, precision); in FormattedFloatingDecimal() 91 fillScientific(precision, digits, nDigits, exp, isNegative); in FormattedFloatingDecimal() 95 fillDecimal(precision, digits, nDigits, exp, isNegative); in FormattedFloatingDecimal() [all …]
|
D | FloatingDecimal.java | 153 public int getDigits(char[] digits); in getDigits() argument 220 public int getDigits(char[] digits) { in getDigits() argument 264 private final char[] digits; field in FloatingDecimal.BinaryToASCIIBuffer 285 this.digits = new char[20]; in BinaryToASCIIBuffer() 291 BinaryToASCIIBuffer(boolean isNegative, char[] digits){ in BinaryToASCIIBuffer() argument 294 this.digits = digits; in BinaryToASCIIBuffer() 296 this.nDigits = digits.length; in BinaryToASCIIBuffer() 323 public int getDigits(char[] digits) { in getDigits() argument 324 System.arraycopy(this.digits,firstDigitIndex,digits,0,this.nDigits); in getDigits() 380 int digitno = digits.length -1; in developLongDigits() [all …]
|
D | FDBigInteger.java | 207 public FDBigInteger(long lValue, char[] digits, int kDigits, int nDigits) { in FDBigInteger() argument 219 v = (int) digits[i++] - (int) '0'; in FDBigInteger() 221 v = 10 * v + (int) digits[i++] - (int) '0'; in FDBigInteger() 228 v = 10 * v + (int) digits[i++] - (int) '0'; in FDBigInteger()
|
/libcore/ojluni/src/main/java/java/util/ |
D | HexFormat.java | 194 private final byte[] digits; field in HexFormat 205 private HexFormat(String delimiter, String prefix, String suffix, byte[] digits) { in HexFormat() argument 209 this.digits = digits; in HexFormat() 247 return new HexFormat(delimiter, this.prefix, this.suffix, this.digits); in withDelimiter() 257 return new HexFormat(this.delimiter, prefix, this.suffix, this.digits); in withPrefix() 267 return new HexFormat(this.delimiter, this.prefix, suffix, this.digits); in withSuffix() 325 return Arrays.equals(digits, UPPERCASE_DIGITS); in isUpperCase() 656 return (char)digits[value & 0xf]; in toLowHexDigit() 670 return (char)digits[(value >> 4) & 0xf]; in toHighHexDigit() 852 public String toHexDigits(long value, int digits) { in toHexDigits() argument [all …]
|
D | UUID.java | 522 return (digits(mostSigBits >> 32, 8) + "-" + in toString() 523 digits(mostSigBits >> 16, 4) + "-" + in toString() 524 digits(mostSigBits, 4) + "-" + in toString() 525 digits(leastSigBits >> 48, 4) + "-" + in toString() 526 digits(leastSigBits, 12)); in toString() 530 private static String digits(long val, int digits) { in digits() method in UUID 531 long hi = 1L << (digits * 4); in digits()
|
D | Scanner.java | 420 private String digits = "0123456789abcdefghijklmnopqrstuvwxyz"; field in Scanner 424 String radixDigits = digits.substring(0, radix); in buildIntegerPatternString() 436 String non0RadixDigits = "((?i)[" + digits.substring(1, radix) + "]|(" + non0Digit + "))"; in buildIntegerPatternString()
|
/libcore/luni/src/main/java/libcore/util/ |
D | HexEncoding.java | 53 char[] digits = upperCase ? UPPER_CASE_DIGITS : LOWER_CASE_DIGITS; in encodeToString() local 55 buf[0] = digits[(b >> 4) & 0xf]; in encodeToString() 56 buf[1] = digits[b & 0xf]; in encodeToString() 107 char[] digits = upperCase ? UPPER_CASE_DIGITS : LOWER_CASE_DIGITS; in encode() local 112 result[resultIndex] = (digits[(b >> 4) & 0x0f]); in encode() 113 result[resultIndex + 1] = (digits[b & 0x0f]); in encode()
|
/libcore/ojluni/annotations/hiddenapi/sun/misc/ |
D | FormattedFloatingDecimal.java | 59 private static int applyPrecision(int decExp, char[] digits, int nDigits, int prec) { in applyPrecision() argument 64 int precision, char[] digits, int nDigits, int exp, boolean isNegative) { in fillCompatible() argument 73 int precision, char[] digits, int nDigits, int exp, boolean isNegative) { in fillDecimal() argument 78 int precision, char[] digits, int nDigits, int exp, boolean isNegative) { in fillScientific() argument
|
D | FloatingDecimal.java | 221 ASCIIToBinaryBuffer(boolean negSign, int decExponent, char[] digits, int n) { in ASCIIToBinaryBuffer() argument 271 char[] digits; field in FloatingDecimal.ASCIIToBinaryBuffer 293 BinaryToASCIIBuffer(boolean isNegative, char[] digits) { in BinaryToASCIIBuffer() argument 309 public int getDigits(char[] digits) { in getDigits() argument 378 private final char[] digits; field in FloatingDecimal.BinaryToASCIIBuffer 381 digits = new char[0]; 404 public int getDigits(char[] digits); in getDigits() argument 435 public int getDigits(char[] digits) { in getDigits() argument
|
/libcore/ojluni/src/test/java/util/HexFormat/ |
D | HexFormatTest.java | 575 for (int digits = 0; digits <= 8; digits++) { in testfromHexDigitsToInt() 576 String s = hex.toHexDigits(orig, digits); in testfromHexDigitsToInt() 577 long actual = HexFormat.fromHexDigits(s, 0, digits); in testfromHexDigitsToInt() 579 digits, s, actual); in testfromHexDigitsToInt() 580 assertEquals(s, allHex.substring(8 - digits, 8)); in testfromHexDigitsToInt() 581 long expected = (digits < 8) ? orig & ~(0xffffffff << (4 * digits)) : orig; in testfromHexDigitsToInt() 592 for (int digits = 0; digits <= 16; digits++) { in testfromHexDigitsToLong() 593 String s = hex.toHexDigits(orig, digits); in testfromHexDigitsToLong() 594 long actual = HexFormat.fromHexDigitsToLong(s, 0, digits); in testfromHexDigitsToLong() 596 digits, s, actual); in testfromHexDigitsToLong() [all …]
|
/libcore/ojluni/annotations/hiddenapi/java/util/ |
D | UUID.java | 85 private static java.lang.String digits(long val, int digits) { in digits() method in UUID
|
/libcore/ojluni/src/main/java/java/lang/ |
D | Integer.java | 103 static final char[] digits = { field in Integer 178 buf[charPos--] = (byte)digits[-(i % radix)]; in toString() 181 buf[charPos] = (byte)digits[-i]; in toString() 412 buf[--charPos] = Integer.digits[val & mask]; in formatUnsignedInt() 432 buf[--charPos] = (byte)Integer.digits[val & mask]; in formatUnsignedInt() 443 buf[--charPos] = (byte)Integer.digits[val & mask]; in formatUnsignedInt()
|
D | Long.java | 161 buf[charPos--] = (byte)Integer.digits[(int)(-(i % radix))]; in toString() 164 buf[charPos] = (byte)Integer.digits[(int)(-i)]; in toString() 436 buf[--charPos] = (byte)Integer.digits[((int) val) & mask]; in formatUnsignedLong0()
|
/libcore/ojluni/annotations/hiddenapi/java/lang/ |
D | Integer.java | 291 static final char[] digits; field in Integer 294 digits = new char[0];
|
/libcore/ojluni/src/main/java/java/text/ |
D | DecimalFormat.java | 4375 int digits = currency.getDefaultFractionDigits(); in adjustForCurrencyDefaultFractionDigits() local 4376 if (digits != -1) { in adjustForCurrencyDefaultFractionDigits() 4381 setMinimumFractionDigits(digits); in adjustForCurrencyDefaultFractionDigits() 4382 setMaximumFractionDigits(digits); in adjustForCurrencyDefaultFractionDigits() 4384 setMinimumFractionDigits(Math.min(digits, oldMinDigits)); in adjustForCurrencyDefaultFractionDigits() 4385 setMaximumFractionDigits(digits); in adjustForCurrencyDefaultFractionDigits()
|
/libcore/ojluni/src/main/java/java/math/ |
D | BigInteger.java | 4172 private void smallToString(int radix, StringBuilder buf, int digits) { 4176 padWithZeros(buf, digits); 4205 padWithZeros(buf, digits - (s.length() + 4238 int radix, int digits) { 4246 u.smallToString(radix, sb, digits); 4264 toString(results[0], sb, radix, digits - expectedDigits);
|
/libcore/tools/expected_upstream/ |
D | ojluni_merge_to_main.py | 553 string.digits) for _ in range(10))
|
/libcore/benchmarks/src/benchmarks/regression/ |
D | R.java | 1530 public static final int digits = 0; field in R
|
/libcore/expectations/ |
D | knownfailures.txt | 68 description: "DecimalFormat is limited to 127 digits",
|