Module parse

Source
Expand description

Parse CSS4 color

Structsยง

Parser ๐Ÿ”’

Enumsยง

Mode ๐Ÿ”’
Whether or not we are parsing modern or legacy mode syntax.
ParseError
Error type for parse errors.
Value ๐Ÿ”’
A parsed value.

Constantsยง

LOWERCASE_BUF_SIZE ๐Ÿ”’

Functionsยง

color_from_4bit_hex ๐Ÿ”’
color_from_components ๐Ÿ”’
get_4bit_hex_channels ๐Ÿ”’
Parse 4-bit color channels from a hex-encoded string.
hex_from_ascii_byte ๐Ÿ”’
make_lowercase ๐Ÿ”’
If the string contains any uppercase characters, make a lowercase copy in the provided buffer space.
parse_color
Parse a color string in CSS syntax into a color.
parse_color_prefix
Parse a color string prefix in CSS syntax into a color.