Function unicode_hfwidth::to_standard_width [] [src]

pub fn to_standard_width(ch: char) -> Option<char>

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

Example

assert_eq!(unicode_hfwidth::to_standard_width('カ'), None);
assert_eq!(unicode_hfwidth::to_standard_width('カ'), Some('カ'));
assert_eq!(unicode_hfwidth::to_standard_width('a'), Some('a'));