Crate unicode_blocks[−][src]
Unicode Blocks
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.
extern crate unicode_blocks; assert_eq!(unicode_blocks::BASIC_LATIN, unicode_blocks::find_unicode_block('A').unwrap());
Given a unicode block, determine whether it is used in CJK.
extern crate unicode_blocks; assert!(unicode_blocks::is_cjk_block(unicode_blocks::CJK_UNIFIED_IDEOGRAPHS));
Given a character, determine whether it is in CJK.
extern crate unicode_blocks; assert!(unicode_blocks::is_cjk('。'));
Structs
UnicodeBlock |
Constants
Functions
find_unicode_block | Given a character, determine what unicode block contains it. |
is_cjk | Given a character, determine whether it is used in CJK. |
is_cjk_block | Given a |