Searched refs:width_cjk (Results 1 – 3 of 3) sorted by relevance
/external/rust/crates/unicode-width/src/ |
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(),None); in test_char2() [all …]
|
D | lib.rs | 87 fn width_cjk(self) -> Option<usize>; in width_cjk() method 95 fn width_cjk(self) -> Option<usize> { cw::width(self, true) } in width_cjk() method 118 fn width_cjk<'a>(&'a self) -> usize; in width_cjk() method 128 fn width_cjk(&self) -> usize { in width_cjk() method
|
/external/rust/crates/unicode-width/ |
D | README.md | 22 let width = teststr.width_cjk();
|