/openjdk7/jdk/src/share/classes/javax/swing/colorchooser/ |
H A D | ValueFormatter.java | 76 private final int radix; field in class:ValueFormatter 82 this.radix = hex ? 16 : 10; 88 return Integer.valueOf(text, this.radix); 100 if (this.radix == 10) { 107 array[index] = Character.forDigit(value & 0x0F, this.radix); 145 if (Character.digit(ch, this.radix) < 0) {
|
/openjdk7/jaxws/src/share/jaxws_classes/com/sun/xml/internal/messaging/saaj/packaging/mime/util/ |
H A D | ASCIIUtility.java | 45 * array into a signed integer in the given radix . The range extends 50 public static int parseInt(byte[] b, int start, int end, int radix) argument 70 multmin = limit / radix; 72 digit = Character.digit((char)b[i++], radix); 83 digit = Character.digit((char)b[i++], radix); 90 result *= radix;
|
/openjdk7/jaxws/src/share/jaxws_classes/com/sun/xml/internal/ws/util/ |
H A D | ASCIIUtility.java | 44 * array into a signed integer in the given radix . The range extends 49 public static int parseInt(byte[] b, int start, int end, int radix) argument 69 multmin = limit / radix; 71 digit = Character.digit((char)b[i++], radix); 82 digit = Character.digit((char)b[i++], radix); 89 result *= radix;
|
/openjdk7/jdk/src/share/classes/java/lang/ |
H A D | CharacterData.java | 41 abstract int digit(int ch, int radix); argument
|
H A D | Byte.java | 66 * specified {@code byte}. The radix is assumed to be 10. 107 * radix specified by the second argument. The characters in the 108 * string must all be digits, of the specified radix (as 123 * <li> The radix is either smaller than {@link 128 * specified radix, except that the first character may be a minus 140 * @param radix the radix to be used while parsing {@code s} 142 * argument in the specified radix 146 public static byte parseByte(String s, int radix) argument 148 int i = Integer.parseInt(s, radix); 202 valueOf(String s, int radix) argument [all...] |
H A D | Short.java | 65 * specified {@code short}. The radix is assumed to be 10. 77 * radix specified by the second argument. The characters in the 78 * string must all be digits, of the specified radix (as 93 * <li> The radix is either smaller than {@link 98 * specified radix, except that the first character may be a minus 109 * @param radix the radix to be used while parsing {@code s} 111 * argument in the specified radix. 115 public static short parseShort(String s, int radix) argument 117 int i = Integer.parseInt(s, radix); 171 valueOf(String s, int radix) argument [all...] |
H A D | Integer.java | 87 * radix specified by the second argument. 89 * <p>If the radix is smaller than {@code Character.MIN_RADIX} 90 * or larger than {@code Character.MAX_RADIX}, then the radix 111 * <code>'\u007A'</code>. If {@code radix} is 113 * are used as radix-<var>N</var> digits in the order shown. Thus, 114 * the digits for hexadecimal (radix 16) are 124 * @param radix the radix to use in the string representation. 125 * @return a string representation of the argument in the specified radix. 129 public static String toString(int i, int radix) { argument 444 parseInt(String s, int radix) argument 555 valueOf(String s, int radix) argument [all...] |
H A D | Long.java | 73 * radix specified by the second argument. 75 * <p>If the radix is smaller than {@code Character.MIN_RADIX} 76 * or larger than {@code Character.MAX_RADIX}, then the radix 97 * <code>'\u007a'</code>. If {@code radix} is 99 * are used as radix-<var>N</var> digits in the order shown. Thus, 100 * the digits for hexadecimal (radix 16) are 110 * @param radix the radix to use in the string representation. 111 * @return a string representation of the argument in the specified radix. 115 public static String toString(long i, int radix) { argument 400 parseLong(String s, int radix) argument 512 valueOf(String s, int radix) argument [all...] |
H A D | Character.java | 125 * The minimum radix available for conversion to and from strings. 127 * for the radix argument in radix-conversion methods such as the 139 * The maximum radix available for conversion to and from strings. 141 * for the radix argument in radix-conversion methods such as the 6272 * specified radix. 6274 * If the radix is not in the range {@code MIN_RADIX} ≤ 6275 * {@code radix} ≤ {@code MAX_RADIX} or if the 6277 * radix, { 6320 digit(char ch, int radix) argument 6372 digit(int codePoint, int radix) argument 6761 forDigit(int digit, int radix) argument [all...] |
/openjdk7/langtools/src/share/classes/com/sun/tools/javac/parser/ |
H A D | Lexer.java | 123 * Return the radix of a numeric literal token. 125 int radix(); method in interface:Lexer
|
H A D | Scanner.java | 93 /** The radix of a numeric literal token. 95 private int radix; field in class:Scanner 423 this.radix = 10; 441 this.radix = 16; 465 * @param radix The radix of the number; one of 2, j8, 10, 16. 467 private void scanNumber(int radix) { argument 468 this.radix = radix; 470 int digitRadix = (radix 1038 public int radix() { method in class:Scanner [all...] |
/openjdk7/langtools/src/share/classes/com/sun/tools/javac/util/ |
H A D | Convert.java | 40 public static int string2int(String s, int radix) argument 42 if (radix == 10) { 43 return Integer.parseInt(s, radix); 46 int limit = Integer.MAX_VALUE / (radix/2); 49 int d = Character.digit(cs[i], radix); 52 n * radix > Integer.MAX_VALUE - d) 54 n = n * radix + d; 62 public static long string2long(String s, int radix) argument 64 if (radix == 10) { 65 return Long.parseLong(s, radix); [all...] |
/openjdk7/jdk/src/share/classes/sun/text/normalizer/ |
H A D | UCharacter.java | 223 * <li>the value of ch is less than the specified radix. 226 * @param radix the radix 228 * specified radix, or -1 if the code point is not a decimal digit 229 * or if its value is too large for the radix 232 public static int digit(int ch, int radix) argument 242 return (0 <= value && value < radix) ? value : -1;
|
H A D | Utility.java | 273 * <code>StringBuffer</code> in the given radix. This is 279 * @param radix is the radix, from 2 to 36 inclusive 283 int radix, int minDigits) 285 int digit = n % radix; 287 if (n >= radix || minDigits > 1) { 288 recursiveAppendNumber(result, n / radix, radix, minDigits - 1); 295 * Append a number to the given StringBuffer in the given radix. 301 * @param radix 282 recursiveAppendNumber(StringBuffer result, int n, int radix, int minDigits) argument 307 appendNumber(StringBuffer result, int n, int radix, int minDigits) argument [all...] |
/openjdk7/jdk/src/share/classes/sun/tools/java/ |
H A D | Scanner.java | 128 public int radix; // Radix, when reading int or long field in class:Scanner 518 radix = (ch == '0' ? 8 : 10); 526 if (radix == 16) 539 if (radix == 10) { 543 } else if (radix == 8) { 553 if (radix != 16) { 561 if (radix != 16) 577 if (count == 1 && radix == 8) { 578 radix = 16; 604 } else if (radix [all...] |
/openjdk7/jdk/src/share/classes/java/math/ |
H A D | BigInteger.java | 274 * specified radix into a BigInteger. The String representation 276 * sequence of one or more digits in the specified radix. The 282 * @param radix radix to be used in interpreting {@code val}. 284 * of a BigInteger in the specified radix, or {@code radix} is 289 public BigInteger(String val, int radix) { argument 293 if (radix < Character.MIN_RADIX || radix > Character.MAX_RADIX) 316 Character.digit(val.charAt(cursor), radix) 2620 toString(int radix) argument [all...] |
/openjdk7/jdk/src/share/classes/java/util/ |
H A D | Scanner.java | 144 * different radix has been set by using the {@link #useRadix} method. The 145 * {@link #reset} method will reset the value of the scanner's radix to 214 * Rmax is the highest digit in the radix being used (for example, Rmax is 9 398 // The current radix used by this scanner 399 private int radix = 10; field in class:Scanner 401 // The default radix for this scanner 467 String radixDigits = digits.substring(0, radix); 1265 * Returns this scanner's default radix. 1267 * <p>A scanner's radix affects elements of its default 1271 * @return the default radix o 1273 public int radix() { method in class:Scanner 1295 useRadix(int radix) argument 1309 setRadix(int radix) argument 1851 hasNextByte(int radix) argument 1912 nextByte(int radix) argument 1957 hasNextShort(int radix) argument 2018 nextShort(int radix) argument 2063 hasNextInt(int radix) argument 2148 nextInt(int radix) argument 2193 hasNextLong(int radix) argument 2254 nextLong(int radix) argument 2490 hasNextBigInteger(int radix) argument 2547 nextBigInteger(int radix) argument [all...] |
/openjdk7/jdk/src/share/native/sun/security/ec/impl/ |
H A D | mpi.c | 52 function. Since a number n in radix r takes up about log_r(n) 77 /* Value to digit maps for radix conversion */ 2454 stream 'ofp'. Output is generated using the internal radix. 2555 /* {{{ mp_read_radix(mp, str, radix) */ 2558 mp_read_radix(mp, str, radix) 2566 mp_err mp_read_radix(mp_int *mp, const char *str, int radix) argument 2572 ARGCHK(mp != NULL && str != NULL && radix >= 2 && radix <= MAX_RADIX, 2579 (s_mp_tovalue(str[ix], radix) < 0) && 2593 while((val = s_mp_tovalue(str[ix], radix)) > 2612 int radix = default_radix; local 2653 mp_radix_size(mp_int *mp, int radix) argument 2670 mp_toradix(mp_int *mp, char *str, int radix) argument [all...] |