• Home
  • Raw
  • Download

Lines Matching full: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()
141 use core::option::Option::{Some, None}; in test_char()
143 assert_eq!(UnicodeWidthChar::width('h'), Some(2)); in test_char()
144 assert_eq!('h'.width_cjk(), Some(2)); in test_char()
145 assert_eq!(UnicodeWidthChar::width('\x00'), Some(0)); in test_char()
146 assert_eq!('\x00'.width_cjk(), Some(0)); in test_char()
149 assert_eq!(UnicodeWidthChar::width('\u{2081}'), Some(1)); in test_char()
150 assert_eq!('\u{2081}'.width_cjk(), Some(2)); in test_char()
157 use core::option::Option::{Some, None}; in test_char2()
159 assert_eq!(UnicodeWidthChar::width('\x00'),Some(0)); in test_char2()
160 assert_eq!('\x00'.width_cjk(),Some(0)); in test_char2()
165 assert_eq!(UnicodeWidthChar::width('w'),Some(1)); in test_char2()
166 assert_eq!('w'.width_cjk(),Some(1)); in test_char2()
168 assert_eq!(UnicodeWidthChar::width('h'),Some(2)); in test_char2()
169 assert_eq!('h'.width_cjk(),Some(2)); in test_char2()
171 assert_eq!(UnicodeWidthChar::width('\u{AD}'),Some(1)); in test_char2()
172 assert_eq!('\u{AD}'.width_cjk(),Some(1)); in test_char2()
174 assert_eq!(UnicodeWidthChar::width('\u{1160}'),Some(0)); in test_char2()
175 assert_eq!('\u{1160}'.width_cjk(),Some(0)); in test_char2()
177 assert_eq!(UnicodeWidthChar::width('\u{a1}'),Some(1)); in test_char2()
178 assert_eq!('\u{a1}'.width_cjk(),Some(2)); in test_char2()
180 assert_eq!(UnicodeWidthChar::width('\u{300}'),Some(0)); in test_char2()
181 assert_eq!('\u{300}'.width_cjk(),Some(0)); in test_char2()
188 use core::option::Option::{Some, None}; in unicode_12()
190 assert_eq!(UnicodeWidthChar::width('\u{1F971}'), Some(2)); in unicode_12()