/libcore/luni/src/main/java/java/math/ |
H A D | Conversion.java | 30 * Holds the maximal exponent for each radix, so that radix<sup>digitFitInInt[radix]</sup> 53 static String bigInteger2String(BigInteger val, int radix) { argument 68 return Long.toString(v, radix); 70 if ((radix == 10) || (radix < Character.MIN_RADIX) 71 || (radix > Character.MAX_RADIX)) { 75 bitsForRadixDigit = Math.log(radix) / Math.log(2); 82 if (radix ! [all...] |
H A D | BigInteger.java | 224 * followed by a non-empty sequence of digits in the specified radix. Digits 225 * are interpreted as if by {@code Character.digit(char, radix)}. 228 * @param radix the base to be used for the conversion. 231 * representation of a {@code BigInteger} or if {@code radix < 232 * Character.MIN_RADIX} or {@code radix > Character.MAX_RADIX}. 234 public BigInteger(String value, int radix) { argument 238 if (radix == 10) { 242 } else if (radix == 16) { 247 if (radix < Character.MIN_RADIX || radix > Characte 868 toString(int radix) argument 1158 parseFromString(BigInteger bi, String value, int radix) argument [all...] |
/libcore/luni/src/main/java/java/lang/ |
H A D | Byte.java | 199 * radix. The ASCII character \u002d ('-') is recognized as the minus sign. 203 * @param radix 204 * the radix to use when parsing. 206 * {@code radix}. 209 * {@code radix < Character.MIN_RADIX || 210 * radix > Character.MAX_RADIX}. 212 public static byte parseByte(String string, int radix) throws NumberFormatException { argument 213 int intValue = Integer.parseInt(string, radix); 268 * radix. 272 * @param radix 282 valueOf(String string, int radix) argument [all...] |
H A D | Short.java | 198 * radix. The ASCII character \u002d ('-') is recognized as the minus sign. 202 * @param radix 203 * the radix to use when parsing. 205 * {@code radix}. 208 * {@code radix < Character.MIN_RADIX || 209 * radix > Character.MAX_RADIX}. 211 public static short parseShort(String string, int radix) throws NumberFormatException { argument 212 int intValue = Integer.parseInt(string, radix); 237 * specified short value with radix 10. 264 * radix 278 valueOf(String string, int radix) argument [all...] |
H A D | Integer.java | 336 * radix. The ASCII character \u002d ('-') is recognized as the minus sign. 340 * @param radix 341 * the radix to use when parsing. 343 * {@code radix}. 346 * or {@code radix < Character.MIN_RADIX || 347 * radix > Character.MAX_RADIX}. 349 public static int parseInt(String string, int radix) throws NumberFormatException { argument 350 if (radix < Character.MIN_RADIX || radix > Character.MAX_RADIX) { 351 throw new NumberFormatException("Invalid radix 368 parse(String string, int offset, int radix, boolean negative) argument 473 toString(int i, int radix) argument 508 valueOf(String string, int radix) argument [all...] |
H A D | IntegralToString.java | 102 * The digits for every supported radix. 122 * Equivalent to Integer.toString(i, radix). 124 public static String intToString(int i, int radix) { argument 125 if (radix < Character.MIN_RADIX || radix > Character.MAX_RADIX) { 126 radix = 10; 128 if (radix == 10) { 145 int bufLen = radix < 8 ? 33 : 12; // Max chars in result (conservative) 150 int q = i / radix; 151 buf[--cursor] = DIGITS[radix * 253 longToString(long v, int radix) argument [all...] |
H A D | Long.java | 323 * radix. The ASCII character \u002d ('-') is recognized as the minus sign. 327 * @param radix 328 * the radix to use when parsing. 330 * {@code radix}. 333 * {@code radix < Character.MIN_RADIX || 334 * radix > Character.MAX_RADIX}. 336 public static long parseLong(String string, int radix) throws NumberFormatException { argument 337 if (radix < Character.MIN_RADIX || radix > Character.MAX_RADIX) { 338 throw new NumberFormatException("Invalid radix 355 parse(String string, int offset, int radix, boolean negative) argument 460 toString(long v, int radix) argument 495 valueOf(String string, int radix) argument [all...] |
H A D | Character.java | 116 * The minimum radix used for conversions between characters and integers. 121 * The maximum radix used for conversions between characters and integers. 2307 * {@code c} in the supplied radix. The value of {@code radix} must be 2312 * @param radix 2313 * the radix. 2314 * @return the value of {@code c} in {@code radix} if {@code radix} lies 2317 public static int digit(char c, int radix) { argument 2318 return digit((int) c, radix); 2334 digit(int codePoint, int radix) argument 2353 digitImpl(int codePoint, int radix) argument 2384 forDigit(int digit, int radix) argument [all...] |
/libcore/luni/src/main/native/ |
H A D | java_lang_Character.cpp | 27 static jint Character_digitImpl(JNIEnv*, jclass, jint codePoint, jint radix) { argument 28 return u_digit(codePoint, radix);
|
/libcore/luni/src/main/java/java/util/ |
H A D | Scanner.java | 601 * {@code BigInteger} in the default radix. 614 * {@code BigInteger} in the specified radix. 616 * @param radix 617 * the radix used to translate the token into a 624 public boolean hasNextBigInteger(int radix) { argument 625 Pattern integerPattern = getIntegerPattern(radix); 631 cachedNextValue = new BigInteger(intString, radix); 655 * {@code byte} value in the default radix. 668 * {@code byte} value in the specified radix. 670 * @param radix 678 hasNextByte(int radix) argument 770 hasNextInt(int radix) argument 824 hasNextLong(int radix) argument 865 hasNextShort(int radix) argument 1074 nextBigInteger(int radix) argument 1152 nextByte(int radix) argument 1302 nextInt(int radix) argument 1414 nextLong(int radix) argument 1476 nextShort(int radix) argument 1503 public int radix() { method in class:Scanner 1630 useRadix(int radix) argument 1636 checkRadix(int radix) argument 1692 getIntegerPattern(int radix) argument [all...] |