Tests whether a character is a hexadecimal character. CharUtils.isHex('0') = true CharUtils.isHex('3') = true CharUtils.isHex('9') = true CharUtils.isHex('a') = true CharUtils.isHex('f') = true CharUtils.isHex('g') = false CharUtils.isHex('A') = true CharUtils.isHex('F'
(final char ch)
| 270 | * @since 3.18.0 |
| 271 | */ |
| 272 | public static boolean isHex(final char ch) { |
| 273 | return isAsciiNumeric(ch) || ch >= 'a' && ch <= 'f' || ch >= 'A' && ch <= 'F'; |
| 274 | } |
| 275 | |
| 276 | /** |
| 277 | * Tests whether a character is a hexadecimal character. |