Module x11rb_protocol::resource_manager::parser
source ยท Expand description
Code for parsing resource management things
Functionsยง
- 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