yeslogic-unicode-blocks 0.2.0

Functions to access and search Unicode blocks.
Documentation
  • Coverage
  • 1.16%
    4 out of 344 items documented1 out of 1 items with examples
  • Size
  • Source code size: 71.4 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 9.9 MB This is the summed size of all files generated by rustdoc for all configured targets
  • Ø build duration
  • this release: 10s Average build duration of successful builds.
  • all releases: 10s Average build duration of successful builds in releases after 2024-10-23.
  • Links
  • yeslogic/unicode-blocks
    0 0 0
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • wezm github:yeslogic:developers-prince

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(''));