oxixml-encoding 0.1.2

Character-encoding decoders/encoders and XML-prologue encoding sniffing: UTF-8, UTF-16, Latin-1/windows-125x, Shift_JIS/EUC-JP/ISO-2022-JP, and GBK/gb18030/Big5/EUC-KR (pure-Rust encoding_rs-style replacement for XML).
Documentation
//! Generated table for WHATWG "index ISO-2022-JP katakana".
//!
//! Source: <https://encoding.spec.whatwg.org/index-iso-2022-jp-katakana.txt>
//! (WHATWG data dated 2024-09-18), transcribed mechanically.
//!
//! "This maps halfwidth to fullwidth katakana as per Unicode Normalization Form KC,
//! except that U+FF9E and U+FF9F map to U+309B and U+309C rather than U+3099 and U+309A.
//! It is only used by the ISO-2022-JP encoder." -- WHATWG Encoding Standard ยง5.
//! `ISO2022JP_KATAKANA[codePoint - 0xFF61]` is the replacement code point to look up
//! in JIS X 0208 in place of the original half-width katakana code point.

pub(crate) const ISO2022JP_KATAKANA: [u32; 63] = [
    0x3002, 0x300C, 0x300D, 0x3001, 0x30FB, 0x30F2, 0x30A1, 0x30A3, 0x30A5, 0x30A7, 0x30A9, 0x30E3,
    0x30E5, 0x30E7, 0x30C3, 0x30FC, 0x30A2, 0x30A4, 0x30A6, 0x30A8, 0x30AA, 0x30AB, 0x30AD, 0x30AF,
    0x30B1, 0x30B3, 0x30B5, 0x30B7, 0x30B9, 0x30BB, 0x30BD, 0x30BF, 0x30C1, 0x30C4, 0x30C6, 0x30C8,
    0x30CA, 0x30CB, 0x30CC, 0x30CD, 0x30CE, 0x30CF, 0x30D2, 0x30D5, 0x30D8, 0x30DB, 0x30DE, 0x30DF,
    0x30E0, 0x30E1, 0x30E2, 0x30E4, 0x30E6, 0x30E8, 0x30E9, 0x30EA, 0x30EB, 0x30EC, 0x30ED, 0x30EF,
    0x30F3, 0x309B, 0x309C,
];