Skip to content

vikpe/quake_infostring

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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