Crate unicode_hfwidth [] [src]

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

Functions

is_nonstandard_width

Checks if ch is in the Unicode "Halfwidth and Fullwidth Forms" block.

to_fullwidth

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.

to_halfwidth

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.

to_standard_width

Returns the standard-width form for ch. If ch is not in the Unicode "Halfwidth and Fullwidth forms" block, returns None.