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 singleComponent
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 (seeparse_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. ReturnsNone
if the text was not found - skip_
to_ ๐eol Skip to the next end of line in the given data