Lines Matching refs:UnicodeWidthChar
16 use super::UnicodeWidthChar;
27 test::black_box(UnicodeWidthChar::width(c)); in cargo()
82 UnicodeWidthChar::width(c) in simple_width_if()
93 _ => UnicodeWidthChar::width(c) in simple_width_match()
123 use super::UnicodeWidthChar; in test_char()
127 assert_eq!(UnicodeWidthChar::width('h'), Some(2)); in test_char()
129 assert_eq!(UnicodeWidthChar::width('\x00'), Some(0)); in test_char()
131 assert_eq!(UnicodeWidthChar::width('\x01'), None); in test_char()
133 assert_eq!(UnicodeWidthChar::width('\u{2081}'), Some(1)); in test_char()
139 use super::UnicodeWidthChar; in test_char2()
143 assert_eq!(UnicodeWidthChar::width('\x00'),Some(0)); in test_char2()
146 assert_eq!(UnicodeWidthChar::width('\x0A'),None); in test_char2()
149 assert_eq!(UnicodeWidthChar::width('w'),Some(1)); in test_char2()
152 assert_eq!(UnicodeWidthChar::width('h'),Some(2)); in test_char2()
155 assert_eq!(UnicodeWidthChar::width('\u{AD}'),Some(1)); in test_char2()
158 assert_eq!(UnicodeWidthChar::width('\u{1160}'),Some(0)); in test_char2()
161 assert_eq!(UnicodeWidthChar::width('\u{a1}'),Some(1)); in test_char2()
164 assert_eq!(UnicodeWidthChar::width('\u{300}'),Some(0)); in test_char2()
170 use super::UnicodeWidthChar; in unicode_12()
174 assert_eq!(UnicodeWidthChar::width('\u{1F971}'), Some(2)); in unicode_12()