Lines Matching refs:Some
75 Some(1) in simple_width_if()
77 Some(0) in simple_width_if()
90 cu if cu == 0 => Some(0), in simple_width_match()
92 cu if cu < 0x7f => Some(1), in simple_width_match()
125 use core::option::Option::{Some, None}; in test_char()
127 assert_eq!(UnicodeWidthChar::width('h'), Some(2)); in test_char()
128 assert_eq!('h'.width_cjk(), Some(2)); in test_char()
129 assert_eq!(UnicodeWidthChar::width('\x00'), Some(0)); in test_char()
130 assert_eq!('\x00'.width_cjk(), Some(0)); in test_char()
133 assert_eq!(UnicodeWidthChar::width('\u{2081}'), Some(1)); in test_char()
134 assert_eq!('\u{2081}'.width_cjk(), Some(2)); in test_char()
141 use core::option::Option::{Some, None}; in test_char2()
143 assert_eq!(UnicodeWidthChar::width('\x00'),Some(0)); in test_char2()
144 assert_eq!('\x00'.width_cjk(),Some(0)); in test_char2()
149 assert_eq!(UnicodeWidthChar::width('w'),Some(1)); in test_char2()
150 assert_eq!('w'.width_cjk(),Some(1)); in test_char2()
152 assert_eq!(UnicodeWidthChar::width('h'),Some(2)); in test_char2()
153 assert_eq!('h'.width_cjk(),Some(2)); in test_char2()
155 assert_eq!(UnicodeWidthChar::width('\u{AD}'),Some(1)); in test_char2()
156 assert_eq!('\u{AD}'.width_cjk(),Some(1)); in test_char2()
158 assert_eq!(UnicodeWidthChar::width('\u{1160}'),Some(0)); in test_char2()
159 assert_eq!('\u{1160}'.width_cjk(),Some(0)); in test_char2()
161 assert_eq!(UnicodeWidthChar::width('\u{a1}'),Some(1)); in test_char2()
162 assert_eq!('\u{a1}'.width_cjk(),Some(2)); in test_char2()
164 assert_eq!(UnicodeWidthChar::width('\u{300}'),Some(0)); in test_char2()
165 assert_eq!('\u{300}'.width_cjk(),Some(0)); in test_char2()
172 use core::option::Option::{Some, None}; in unicode_12()
174 assert_eq!(UnicodeWidthChar::width('\u{1F971}'), Some(2)); in unicode_12()