Searched refs:UnicodeWidthStr (Results 1 – 4 of 4) sorted by relevance
/external/rust/crates/unicode-width/src/ |
D | tests.rs | 99 use super::UnicodeWidthStr; in test_str() 101 assert_eq!(UnicodeWidthStr::width("hello"), 10); in test_str() 103 assert_eq!(UnicodeWidthStr::width("\0\0\0\x01\x01"), 0); in test_str() 105 assert_eq!(UnicodeWidthStr::width(""), 0); in test_str() 107 assert_eq!(UnicodeWidthStr::width("\u{2081}\u{2082}\u{2083}\u{2084}"), 4); in test_str() 114 use super::UnicodeWidthStr; in test_emoji() 116 assert_eq!(UnicodeWidthStr::width(""), 2); // Woman in test_emoji() 117 assert_eq!(UnicodeWidthStr::width(""), 2); // Microscope in test_emoji() 118 assert_eq!(UnicodeWidthStr::width(""), 4); // Woman scientist in test_emoji()
|
D | lib.rs | 99 pub trait UnicodeWidthStr { trait 121 impl UnicodeWidthStr for str {
|
/external/rust/crates/unicode-width/ |
D | README.md | 15 use unicode_width::UnicodeWidthStr; 19 let width = UnicodeWidthStr::width(teststr); 33 use unicode_width::UnicodeWidthStr; 36 assert_eq!(UnicodeWidthStr::width(""), 2); // Woman 37 assert_eq!(UnicodeWidthStr::width(""), 2); // Microscope 38 assert_eq!(UnicodeWidthStr::width(""), 4); // Woman scientist
|
/external/rust/crates/clap/src/app/ |
D | help.rs | 36 UnicodeWidthStr::width(s) in str_width()
|