9339 * @see Character#isDigit(int)
9340 * @since 1.5
9341 */
9342 public static int getNumericValue(int codePoint) {
9343 return CharacterData.of(codePoint).getNumericValue(codePoint);
9344 }
9345
9346 /**
9347 * Determines if the specified character is ISO-LATIN-1 white space.
9348 * This method returns {@code true} for the following five
9349 * characters only:
9350 * <table summary="truechars">
9351 * <tr><td>{@code '\t'}</td> <td>{@code U+0009}</td>
9352 * <td>{@code HORIZONTAL TABULATION}</td></tr>
9353 * <tr><td>{@code '\n'}</td> <td>{@code U+000A}</td>
9354 * <td>{@code NEW LINE}</td></tr>
9355 * <tr><td>{@code '\f'}</td> <td>{@code U+000C}</td>
9356 * <td>{@code FORM FEED}</td></tr>
9357 * <tr><td>{@code '\r'}</td> <td>{@code U+000D}</td>
9358 * <td>{@code CARRIAGE RETURN}</td></tr>
9359 * <tr><td>{@code ' '}</td> <td>{@code U+0020}</td>
9360 * <td>{@code SPACE}</td></tr>
9361 * </table>
9362 *
9363 * @param ch the character to be tested.
9364 * @return {@code true} if the character is ISO-LATIN-1 white
9365 * space; {@code false} otherwise.
9366 * @see Character#isSpaceChar(char)
9367 * @see Character#isWhitespace(char)
9368 * @deprecated Replaced by isWhitespace(char).
9369 */
9370 @Deprecated
9371 public static boolean isSpace(char ch) {
9372 return (ch <= 0x0020) &&
9373 (((((1L << 0x0009) |
9374 (1L << 0x000A) |
9375 (1L << 0x000C) |
9376 (1L << 0x000D) |
9377 (1L << 0x0020)) >> ch) & 1L) != 0);
9378 }
9379
|
9339 * @see Character#isDigit(int)
9340 * @since 1.5
9341 */
9342 public static int getNumericValue(int codePoint) {
9343 return CharacterData.of(codePoint).getNumericValue(codePoint);
9344 }
9345
9346 /**
9347 * Determines if the specified character is ISO-LATIN-1 white space.
9348 * This method returns {@code true} for the following five
9349 * characters only:
9350 * <table summary="truechars">
9351 * <tr><td>{@code '\t'}</td> <td>{@code U+0009}</td>
9352 * <td>{@code HORIZONTAL TABULATION}</td></tr>
9353 * <tr><td>{@code '\n'}</td> <td>{@code U+000A}</td>
9354 * <td>{@code NEW LINE}</td></tr>
9355 * <tr><td>{@code '\f'}</td> <td>{@code U+000C}</td>
9356 * <td>{@code FORM FEED}</td></tr>
9357 * <tr><td>{@code '\r'}</td> <td>{@code U+000D}</td>
9358 * <td>{@code CARRIAGE RETURN}</td></tr>
9359 * <tr><td>{@code ' '}</td> <td>{@code U+0020}</td>
9360 * <td>{@code SPACE}</td></tr>
9361 * </table>
9362 *
9363 * @param ch the character to be tested.
9364 * @return {@code true} if the character is ISO-LATIN-1 white
9365 * space; {@code false} otherwise.
9366 * @see Character#isSpaceChar(char)
9367 * @see Character#isWhitespace(char)
9368 * @deprecated Replaced by isWhitespace(char).
9369 */
9370 @Deprecated
9371 public static boolean isSpace(char ch) {
9372 return (ch <= 0x0020) &&
9373 (((((1L << 0x0009) |
9374 (1L << 0x000A) |
9375 (1L << 0x000C) |
9376 (1L << 0x000D) |
9377 (1L << 0x0020)) >> ch) & 1L) != 0);
9378 }
9379
|