Unicode Blocks

CI

This crate contains a list of all unicode blocks and provides some functions to search across them.

Examples

Given a character, determine what unicode block contains it.

```rust extern crate unicode_blocks;

asserteq!(unicodeblocks::BASICLATIN, unicodeblocks::findunicodeblock('A').unwrap()); ```

Given a unicode block, determine whether it is used in CJK.

```rust extern crate unicode_blocks;

assert!(unicodeblocks::iscjkblock(unicodeblocks::CJKUNIFIEDIDEOGRAPHS)); ```

Given a character, determine whether it is in CJK.

```rust extern crate unicode_blocks;

assert!(unicodeblocks::iscjk('。')); ```

Crates.io

https://crates.io/crates/unicode-blocks

Documentation

https://docs.rs/unicode-blocks

License

MIT