mk8dx_lounge_tag_extractor

Crates.iomk8dx_lounge_tag_extractor
lib.rsmk8dx_lounge_tag_extractor
version0.0.2
sourcesrc
created_at2024-04-28 00:10:31.964055
updated_at2024-04-28 00:13:16.640175
descriptionExtract mk8dx lounge tags from given player names.
homepage
repositoryhttps://github.com/naari3/mk8dx_lounge_tag_extractor
max_upload_size
id1222925
size9,016
(naari3)

documentation

README

mk8dx_lounge_tag_extractor

Example

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())));
Commit count: 7

cargo fmt