MCPcopy Create free account
hub / github.com/davidgiven/luje / isHighSurrogate

Method isHighSurrogate

lib/java/lang/Character.java:2076–2078  ·  view source on GitHub ↗

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)

Source from the content-addressed store, hash-verified

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

Callers 3

isSurrogatePairMethod · 0.95
codePointCountMethod · 0.95
offsetByCodePointsMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected