fig 1.0.0

Parse, edit, and convert config files while preserving comments. Supports JSON, YAML, TOML, and more.
1
2
3
4
5
6
7
8
//! Helper functions for parsing Unicode sequences.
const Unicode = @This();
pub fn isHighSurrogate(p: u21) bool {
    return p >= 0xD800 and p <= 0xDBFF;
}
pub fn isLowSurrogate(p: u21) bool {
    return p >= 0xDC00 and p <= 0xDFFF;
}