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).
  • Parse a single Component from the data. This can either be a wildcard (โ€œ?โ€) or a component made up of characters accepted by allowed_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