rgchart 0.0.13

A library for parsing and writing rhythm game charts.
Documentation
1
2
3
4
5
6
7
8
9
10
pub fn get_keycount_from_str(str: &str) -> Option<u8> {
    match str.to_lowercase().strip_prefix("keys") {
        Some(num_str) => num_str.parse::<u8>().ok(),
        None => None
    }
}

pub fn get_mode_from_u8(keycount: u8) -> String {
    "keys".to_string() + &keycount.to_string()
}