Expand description
Code for parsing resource management things
Functionsยง
- allowed_
in_ ๐quark_ name - Check if a character is allowed in a quark name
- is_
octal_ ๐digit - Check if a character (well, u8) is an octal digit
- next_
component ๐ - Find the longest prefix satisfying allowed_in_quark_name(). This returns (Some(prefix), remaining) if a prefix is found, else (None, data).
- next_
component_ ๐name - Parse a single
Component
from the data. This can either be a wildcard (โ?โ) or a component made up of characters accepted byallowed_in_quark_name
. - parse_
components ๐ - Parse a resource like โfoo.?*bazโ (wildcards allowed)
- parse_
database ๐ - Parse the contents of a database
- parse_
entry ๐ - Parse a full entry from the data. This begins with components (see
parse_components()
), then after a colon (โ:โ) comes the value. The value may contain escape sequences. - parse_
query ๐ - Parse a resource query like โfoo.bar.bazโ (no wildcards allowed, no bindings allowed)
- parse_
with_ ๐matcher - Find the longest prefix of the given data where the given callback returns true
- skip_
spaces ๐ - Skip all spaces in the given data
- skip_
text ๐ - Skip the given text. Returns
None
if the text was not found - skip_
to_ ๐eol - Skip to the next end of line in the given data