#encoder

uao-rs

big5 uao encoder/decoder

1 unstable release

0.1.0 Jun 11, 2020

#160 in #encoder

MIT license

325KB
93 lines

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.

Dependencies