Expand description
CJK character conversion: Simplified/Traditional Chinese and Japanese Kanji.
This is a Rust port of the npm package cjk-conv.
Other crates can depend on it with:
cjk-convert-rs = { git = "https://github.com/flier268/cjk-convert-rs" }
# or a path / crates.io dependencyuse cjk_convert_rs::{cn2tw, tw2cn};
assert_eq!(cn2tw("简繁转换功能测试"), "簡繁轉換功能測試");
assert_eq!(tw2cn("簡繁轉換功能測試"), "简繁转换功能测试");Re-exports§
pub use zh::cn2tw;pub use zh::cn2tw_min;pub use zh::cn2tw_min_with;pub use zh::cn2tw_raw;pub use zh::cn2tw_with;pub use zh::convert_with_table;pub use zh::table_cn2tw;pub use zh::table_cn2tw_min;pub use zh::table_cn2tw_plus;pub use zh::table_tw2cn;pub use zh::table_tw2cn_min;pub use zh::table_tw2cn_plus;pub use zh::tw2cn;pub use zh::tw2cn_min;pub use zh::tw2cn_min_with;pub use zh::tw2cn_raw;pub use zh::tw2cn_with;pub use zh::wiki_s2t;pub use zh::wiki_s2t_v2;pub use zh::wiki_t2s;pub use zh::wiki_t2s_v2;pub use zh::SAFE_MODE_CHAR;pub use zh::SAFE_MODE_CHAR_MIN;pub use jp::cjk2jp;pub use jp::cjk2zhs;pub use jp::cjk2zht;pub use jp::jp2zhs;pub use jp::jp2zht;pub use jp::zh2jp;
Modules§
Structs§
- Convert
Options - Conversion options shared by zh and jp APIs.
Constants§
- VERSION
- Crate version (npm
cjk-conv/version).
Functions§
- is_cjk
- Code points matched by
regexp-helper_re_cjk_conv.