Searched refs:width_cjk (Results 1 - 2 of 2) sorted by relevance
/third_party/rust/crates/unicode-width/src/ |
H A D | tests.rs | 118 assert_eq!("hello".width_cjk(), 10); in test_str() 120 assert_eq!("\0\0\0\x01\x01".width_cjk(), 0); in test_str() 122 assert_eq!("".width_cjk(), 0); in test_str() 124 assert_eq!("\u{2081}\u{2082}\u{2083}\u{2084}".width_cjk(), 8); in test_str() 144 assert_eq!('h'.width_cjk(), Some(2)); in test_char() 146 assert_eq!('\x00'.width_cjk(), Some(0)); in test_char() 148 assert_eq!('\x01'.width_cjk(), None); in test_char() 150 assert_eq!('\u{2081}'.width_cjk(), Some(2)); in test_char() 160 assert_eq!('\x00'.width_cjk(),Some(0)); in test_char2() 163 assert_eq!('\x0A'.width_cjk(),Non in test_char2() [all...] |
H A D | lib.rs | 25 //! let width = teststr.width_cjk(); 87 fn width_cjk(self) -> Option<usize>; in width_cjk() functions 95 fn width_cjk(self) -> Option<usize> { cw::width(self, true) } in width_cjk() functions 118 fn width_cjk<'a>(&'a self) -> usize; in width_cjk() functions 128 fn width_cjk(&self) -> usize { in width_cjk() functions
|
Completed in 1 milliseconds