Home
last modified time | relevance | path

Searched refs:width_cjk (Results 1 – 4 of 4) sorted by relevance

/external/rust/crates/unicode-width/src/
Dtests.rs102 assert_eq!("hello".width_cjk(), 10); in test_str()
104 assert_eq!("\0\0\0\x01\x01".width_cjk(), 0); in test_str()
106 assert_eq!("".width_cjk(), 0); in test_str()
108 assert_eq!("\u{2081}\u{2082}\u{2083}\u{2084}".width_cjk(), 8); in test_str()
128 assert_eq!('h'.width_cjk(), Some(2)); in test_char()
130 assert_eq!('\x00'.width_cjk(), Some(0)); in test_char()
132 assert_eq!('\x01'.width_cjk(), None); in test_char()
134 assert_eq!('\u{2081}'.width_cjk(), Some(2)); in test_char()
144 assert_eq!('\x00'.width_cjk(),Some(0)); in test_char2()
147 assert_eq!('\x0A'.width_cjk(),None); in test_char2()
[all …]
Dlib.rs87 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/scripts/
Dunicode.py250 (wt_lo, wt_hi, width, width_cjk) = wtable.pop(0)
254 wtable_out.append((wt_lo+1, wt_hi, width, width_cjk))
256 wtable_out.append((wt_lo, wt_hi-1, width, width_cjk))
258 wtable_out.append((wt_lo, val-1, width, width_cjk))
259 wtable_out.append((val+1, wt_hi, width, width_cjk))
/external/rust/crates/unicode-width/
DREADME.md22 let width = teststr.width_cjk();