unicount-lib

Crates.iounicount-lib
lib.rsunicount-lib
version
sourcesrc
created_at2024-10-26 16:12:42.094977
updated_at2024-12-05 02:46:43.028221
descriptionAlphabetic counter supporting unicode
homepage
repositoryhttps://github.com/qtfkwk/unicount
max_upload_size
id1423978
Cargo.toml error:TOML parse error at line 17, column 1 | 17 | autolib = false | ^^^^^^^ unknown field `autolib`, expected one of `name`, `version`, `edition`, `authors`, `description`, `readme`, `license`, `repository`, `homepage`, `documentation`, `build`, `resolver`, `links`, `default-run`, `default_dash_run`, `rust-version`, `rust_dash_version`, `rust_version`, `license-file`, `license_dash_file`, `license_file`, `licenseFile`, `license_capital_file`, `forced-target`, `forced_dash_target`, `autobins`, `autotests`, `autoexamples`, `autobenches`, `publish`, `metadata`, `keywords`, `categories`, `exclude`, `include`
size0
(qtfkwk)

documentation

README

Examples

assert_eq!(
    unicount_lib::Kind::EnglishLower.counter(0).take(30).collect::<Vec<_>>(),
    vec![
        "a", "b", "c", "d", "e", "f", "g", "h", "i", "j", "k", "l", "m", "n", "o", "p", "q",
        "r", "s", "t", "u", "v", "w", "x", "y", "z", "aa", "ab", "ac", "ad"
    ],
);

assert_eq!(
    unicount_lib::Kind::EnglishUpper.counter(0).take(30).collect::<Vec<_>>(),
    vec![
      "A", "B", "C", "D", "E", "F", "G", "H", "I", "J", "K", "L", "M", "N", "O", "P", "Q",
      "R", "S", "T", "U", "V", "W", "X", "Y", "Z", "AA", "AB", "AC", "AD"
    ],
);

assert_eq!(
    unicount_lib::Counter::new("abc", 0).take(30).collect::<Vec<_>>(),
    vec![
        "a", "b", "c", "aa", "ab", "ac", "ba", "bb", "bc", "ca", "cb", "cc", "aaa", "aab",
        "aac", "aba", "abb", "abc", "aca", "acb", "acc", "baa", "bab", "bac", "bba", "bbb",
        "bbc", "bca", "bcb", "bcc"
    ],
);
Commit count: 3

cargo fmt