Crate unicode_hfwidth

Source
Expand description

Utilities for handling characters in the Unicode “Halfwidth and Fullwidth Forms” block.

Functions§

  • Checks if ch is in the Unicode “Halfwidth and Fullwidth Forms” block.
  • Returns the full-width form for ch. If no full-width form for ch exists, or ch is already in full-width form, returns None.
  • Returns the half-width form for ch. If no half-width form for ch exists, or ch is already in half-width form, returns None.
  • Returns the standard-width form for ch. If ch is not in the Unicode “Halfwidth and Fullwidth forms” block, returns None.