kumono 0.64.1

Media ripper for coomer and kemono
1
2
3
4
5
6
7
8
9
10
11
12
13
use num_format::{ Locale, ToFormattedString };

pub fn n_fmt(n: u64) -> String {
    n.to_formatted_string(&Locale::en)
}

pub fn with_noun(count: u64, noun: &str) -> String {
    match count {
        0 => format!("no {noun}s"),
        1 => format!("1 {noun}"),
        n => format!("{number} {noun}s", number = n_fmt(n)),
    }
}