quake_infostring

Crates.ioquake_infostring
lib.rsquake_infostring
version0.1.0
sourcesrc
created_at2024-05-02 11:30:57.965863
updated_at2024-05-02 11:30:57.965863
descriptionParse QuakeWorld info strings.
homepage
repositoryhttps://github.com/vikpe/quake_infostring
max_upload_size
id1227660
size4,366
Viktor Persson (vikpe)

documentation

README

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

Commit count: 7

cargo fmt