Function isSurrogateCodepoint [src]
Returns true if the codepoint is a surrogate (U+DC00 to U+DFFF)
Prototype
pub fn isSurrogateCodepoint(c: u21) bool
Parameters
c: u21
Source
pub fn isSurrogateCodepoint(c: u21) bool {
return switch (c) {
0xD800...0xDFFF => true,
else => false,
};
}