Crates.io | mk8dx_lounge_tag_extractor |
lib.rs | mk8dx_lounge_tag_extractor |
version | 0.0.2 |
source | src |
created_at | 2024-04-28 00:10:31.964055 |
updated_at | 2024-04-28 00:13:16.640175 |
description | Extract mk8dx lounge tags from given player names. |
homepage | |
repository | https://github.com/naari3/mk8dx_lounge_tag_extractor |
max_upload_size | |
id | 1222925 |
size | 9,016 |
use mk8dx_lounge_tag_extractor::extract_tags;
use std::collections::HashSet;
let names = vec![
"AA Cynda",
"AA Dugo",
"BE naari",
"BE",
"あいしてる",
"あいうえお",
"Saru FM",
"ぱーぷる FM",
"X",
"X",
"RR★",
"RR",
];
let tags = extract_tags(&names);
assert_eq!(tags, HashSet::from_iter(vec!["AA", "BE", "あい", "FM", "X", "RR"].iter().map(|s| s.to_string())));