Crates.io | uao-rs |
lib.rs | uao-rs |
version | 0.1.0 |
source | src |
created_at | 2020-06-11 05:47:58.000169 |
updated_at | 2020-06-11 05:47:58.000169 |
description | big5 uao encoder/decoder |
homepage | https://github.com/zenixls2/uao-rs |
repository | https://github.com/zenixls2/uao-rs |
max_upload_size | |
id | 252624 |
size | 1,220,577 |
** big5-uao decoder/encoder for rust **
Original UAO table is from:
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);
Licensed under
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.