Zig 0.17.0-dev (Split by item)

This is an example of documentation generated by ZigDoc, an alternative to Zig's built-in Auto Doc feature. See also examples in other modes/formats. The project being documented here (as the example) is the Zig library itself.

isSurrogateCodepoint

Returns true if the codepoint is a surrogate (U+DC00 to U+DFFF)

unicode.isSurrogateCodepoint
pub fn isSurrogateCodepoint(c: u21) bool

File

lib/std/unicode.zig:1604

Code

pub fn isSurrogateCodepoint(c: u21) bool {
    return switch (c) {
        0xD800...0xDFFF => true,
        else => false,
    };
}