uao-rs

Crates.iouao-rs
lib.rsuao-rs
version0.1.0
sourcesrc
created_at2020-06-11 05:47:58.000169
updated_at2020-06-11 05:47:58.000169
descriptionbig5 uao encoder/decoder
homepagehttps://github.com/zenixls2/uao-rs
repositoryhttps://github.com/zenixls2/uao-rs
max_upload_size
id252624
size1,220,577
Zenix (zenixls2)

documentation

https://docs.rs/uao-rs

README

Crates.io License Build Status

uao-rs version - 0.1.0

UAO-rs

** big5-uao decoder/encoder for rust **

Original UAO table is from:

Examples:

use uao_rs::{decode, encode};
const UNICODE: &str = "一小段中文測試♥一小段中文测试♥中国の短いテスト♥";
const BIG5: &[u8] = b"\xa4\x40\xa4\x70\xac\x71\xa4\xa4\xa4\xe5\xb4\xfa\xb8\xd5\x9d\xde\xa4\x40\xa4\x70\xac\x71\xa4\xa4\xa4\xe5\x84\xf2\x86\x49\x9d\xde\xa4\xa4\x83\xf6\xc7\x55\xb5\x75\xc6\xea\xc7\xc2\xc7\xb5\xc7\xc4\x9d\xde";
assert_eq!(encode(UNICODE), BIG5);
assert_eq!(decode(BIG5), UNICODE);

License

Licensed under

Contribution

Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, shall be licensed as above, without any additional terms or conditions.

Commit count: 1

cargo fmt