文件名称:rust-pinyin:汉字转拼音
文件大小:34KB
文件格式:ZIP
更新时间:2024-06-14 12:14:58
rust pinyin chinese hanzi hanzi-pinyin
rust-pinyin 汉语拼音转换工具 Rust 版 Installation Add this to your Cargo.toml: [dependencies] pinyin = "0.7" Documentation API documentation can be found here: Usage use pinyin::{ToPinyin, ToPinyinMulti}; fn main() { let hans = "中国人"; // 无声调,输出 zhong guo ren for pinyin in hans.to_pinyin() { if let Some(pinyin) = pinyin { print!("{} ", pinyin.plain()); } } pri
【文件预览】:
rust-pinyin-master
----Cargo.toml(1KB)
----.gitmodules(98B)
----ci()
--------coveralls.sh(350B)
--------script.sh(584B)
--------install_extra.sh(107B)
----.bumpversion.cfg(170B)
----coverage-check()
--------Cargo.toml(233B)
--------src()
----src()
--------pinyin_multi.rs(5KB)
--------pinyin.rs(4KB)
--------lib.rs(2KB)
--------data.rs(425B)
--------compat.rs(4KB)
----pinyin-data()
----build.rs(11KB)
----examples()
--------basic.rs(1KB)
----.travis.yml(285B)
----LICENSE(1KB)
----DEVELOP.md(1KB)
----README.md(2KB)
----appveyor.yml(341B)
----tests()
--------pinyin()
--------special_pinyin.rs(546B)
--------pinyin.rs(3KB)
--------compat.rs(8KB)
----.gitignore(2KB)
----CHANGELOG.md(4KB)