url/constants

Search:
Group by:

Constants from various WHATWG specs

Copyright (C) 2025-2026 Trayambak Rai (xtrayambak@disroot.org)

Types

AsciiSet = set[char] | set[uint8]

Consts

ASCIIHexDigit = {'0'..'9', 'A'..'F', 'a'..'f'}
C0_CONTROLS: AsciiSet = {0'u8..31'u8}
CONTROLS: AsciiSet = {0'u8..31'u8, 126'u8..255'u8}
URLCodePoints: AsciiSet = {'\x00'..'$', '&'..'\xFF'}

Procs

func isC0ControlOrSpace(c: char | uint8): bool {.inline, ...raises: [].}