Skip to content

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

License

Notifications You must be signed in to change notification settings

yeslogic/unicode-blocks

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

yeslogic-unicode-blocks


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.

Examples

Given a character, determine what unicode block contains it.

assert_eq!(yeslogic_unicode_blocks::BASIC_LATIN, yeslogic_unicode_blocks::find_unicode_block('A').unwrap());

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

assert!(yeslogic_unicode_blocks::is_cjk_block(yeslogic_unicode_blocks::CJK_UNIFIED_IDEOGRAPHS));

Given a character, determine whether it is in CJK.

assert!(yeslogic_unicode_blocks::is_cjk('。'));

About

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

Resources

License

Stars

Watchers

Forks

Languages

  • Rust 97.5%
  • Awk 2.5%