Crates.io | yeslogic-unicode-blocks |
lib.rs | yeslogic-unicode-blocks |
version | 0.2.0 |
source | src |
created_at | 2024-10-30 00:27:42.943046 |
updated_at | 2024-10-30 00:27:42.943046 |
description | Functions to access and search Unicode blocks. |
homepage | |
repository | https://github.com/yeslogic/unicode-blocks |
max_upload_size | |
id | 1427797 |
size | 71,768 |
This is fork of unicode-blocks maintained by YesLogic. Differences from upstream: updated Unicode data, script to regenerate Rust source.
This crate contains a list of all unicode blocks and provides some functions to search across them.
assert_eq!(yeslogic_unicode_blocks::BASIC_LATIN, yeslogic_unicode_blocks::find_unicode_block('A').unwrap());
assert!(yeslogic_unicode_blocks::is_cjk_block(yeslogic_unicode_blocks::CJK_UNIFIED_IDEOGRAPHS));
assert!(yeslogic_unicode_blocks::is_cjk('。'));