Indicates whether ch is a high- (or leading-) surrogate code unit that is used for representing supplementary characters in UTF-16 encoding. @param ch the character to test. @return true if ch is a high-surrogate code unit; false otherwise. @see #i
(char ch)
| 2074 | * @since 1.5 |
| 2075 | */ |
| 2076 | public static boolean isHighSurrogate(char ch) { |
| 2077 | return (MIN_HIGH_SURROGATE <= ch && MAX_HIGH_SURROGATE >= ch); |
| 2078 | } |
| 2079 | |
| 2080 | /** |
| 2081 | * Indicates whether {@code ch} is a low- (or trailing-) surrogate code unit |
no outgoing calls
no test coverage detected