fastmash 0.7.1

Fast command-line statistics on text data, compatible with GNU datamash
//! Generated by fastmash-generate-numeric-locales from fixture glibc 2.43 compiled
//! locales; do not edit. Number rules (decimal point, thousands separator and
//! grouping) of every glibc locale, with or without a modifier (compiled in
//! UTF-8), whose decimal point is one byte; the others are in `REFUSED`.
use crate::conversion::profile::Profile;

/// Sorted by name for binary search.
pub(super) static NUMERIC: &[(&[u8], Profile)] = &[
    (b"\x61\x61\x5f\x45\x52", Profile::new(b"\x2e"[0], b"", b"")),
    (b"\x62\x61\x63\x6b\x5c\x73\x6c\x61\x73\x68", Profile::new(b"\x2e"[0], b"", b"")),
    (b"\x62\x61\x64\x22\x29\x3b\x63\x6f\x6d\x70\x69\x6c\x65\x5f\x65\x72\x72\x6f\x72\x21\x28\x22\x69\x6e\x6a\x65\x63\x74\x65\x64", Profile::new(b"\x2e"[0], b"", b"")),
    (b"\x63\x61\x72\x72\x69\x61\x67\x65\x0d\x72\x65\x74\x75\x72\x6e", Profile::new(b"\x2e"[0], b"", b"")),
    (b"\x64\x65\x5f\x44\x45", Profile::new(b"\x2c"[0], b"\x2e", b"\x03\x03\x00")),
    (b"\x66\x72\x5f\xc3\xa9", Profile::new(b"\x2e"[0], b"", b"")),
    (b"\x6c\x69\x6e\x65\x0a\x62\x72\x65\x61\x6b", Profile::new(b"\x2e"[0], b"", b"")),
    (b"\x6e\x61\x6e\x5f\x54\x57\x40\x6c\x61\x74\x69\x6e", Profile::new(b"\x2e"[0], b"\xc2\xa0", b"\x03\x00")),
    (b"\x71\x75\x6f\x74\x65\x22\x6e\x61\x6d\x65", Profile::new(b"\x2e"[0], b"", b"")),
    (b"\x73\x72\x5f\x52\x53\x40\x6c\x61\x74\x69\x6e", Profile::new(b"\x2c"[0], b"\x2e", b"\x03\x7f")),
];

/// Names whose default character set is UTF-8, so glibc needs no
/// codeset; sorted.
pub(super) static BARE_UTF8: &[&[u8]] = &[
    b"\x61\x61\x5f\x45\x52",
    b"\x62\x61\x63\x6b\x5c\x73\x6c\x61\x73\x68",
    b"\x62\x61\x64\x22\x29\x3b\x63\x6f\x6d\x70\x69\x6c\x65\x5f\x65\x72\x72\x6f\x72\x21\x28\x22\x69\x6e\x6a\x65\x63\x74\x65\x64",
    b"\x63\x61\x72\x72\x69\x61\x67\x65\x0d\x72\x65\x74\x75\x72\x6e",
    b"\x66\x72\x5f\xc3\xa9",
    b"\x6c\x69\x6e\x65\x0a\x62\x72\x65\x61\x6b",
    b"\x71\x75\x6f\x74\x65\x22\x6e\x61\x6d\x65",
    b"\x73\x72\x5f\x52\x53\x40\x6c\x61\x74\x69\x6e",
];

/// glibc locales whose decimal point is not one byte, whose numbers
/// Fastmash refuses; sorted.
pub(super) static REFUSED: &[&[u8]] = &[
    b"\x62\x61\x63\x6b\x5c\x73\x6c\x61\x73\x68\x40\x72\x65\x66\x75\x73\x65\x64",
    b"\x62\x61\x64\x22\x29\x3b\x63\x6f\x6d\x70\x69\x6c\x65\x5f\x65\x72\x72\x6f\x72\x21\x28\x22\x69\x6e\x6a\x65\x63\x74\x65\x64\x40\x72\x65\x66\x75\x73\x65\x64",
    b"\x63\x61\x72\x72\x69\x61\x67\x65\x0d\x72\x65\x74\x75\x72\x6e\x40\x72\x65\x66\x75\x73\x65\x64",
    b"\x66\x61\x5f\x49\x52",
    b"\x66\x72\x5f\xc3\xa9\x40\x72\x65\x66\x75\x73\x65\x64",
    b"\x6c\x69\x6e\x65\x0a\x62\x72\x65\x61\x6b\x40\x72\x65\x66\x75\x73\x65\x64",
    b"\x71\x75\x6f\x74\x65\x22\x6e\x61\x6d\x65\x40\x72\x65\x66\x75\x73\x65\x64",
];