Skip to content

Latest commit

 

History

History
18 lines (12 loc) · 828 Bytes

README.md

File metadata and controls

18 lines (12 loc) · 828 Bytes

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