#quake #string #quake-world #info #parse

quake_infostring

Parse QuakeWorld info strings

1 unstable release

0.1.0 May 2, 2024

#151 in Parser tooling


Used in 6 crates (3 directly)

MIT license

5KB
56 lines

quake_infostring Test crates docs.rs

Parse QuakeWorld info strings

Usage

let info_str = r#"\maxfps\77\matchtag\kombat"#;
let info = quake_infostring::to_hashmap(&info_str);

assert_eq!(info.get("maxfps"), Some(&"77".to_string()));
assert_eq!(info.get("matchtag"), Some(&"kombat".to_string()));
assert_eq!(info.get("MISSING_KEY"), None);

See also


lib.rs:

quake_infostring

Parse QuakeWorld info strings

No runtime deps