Searched refs:str_width (Results 1 – 2 of 2) sorted by relevance
/external/rust/crates/clap/src/app/ |
D | help.rs | 31 fn str_width(s: &str) -> usize { in str_width() function 220 self.longest = cmp::max(self.longest, str_width(arg.to_string().as_str())); in write_args_unsorted() 255 self.longest = cmp::max(self.longest, str_width(arg.to_string().as_str())); in write_args() 371 let h_w = str_width(h) + str_width(&*spec_vals); in val() 395 let self_len = str_width(arg.to_string().as_str()); in val() 416 self.longest + 4 - (str_width(arg.to_string().as_str())) in val() 432 let too_long = str_width(h) >= self.term_w; in write_before_after_help() 440 str_width(&*help) in write_before_after_help() 475 let too_long = spcs + str_width(h) + str_width(&*spec_vals) >= self.term_w; in help() 486 debugln!("Help::help: help width...{}", str_width(&*help)); in help() [all …]
|
/external/igt-gpu-tools/tests/ |
D | testdisplay.c | 274 double str_width; in paint_output_info() local 287 str_width = igt_cairo_printf_line(cr, align_hcenter, 10, in paint_output_info() 291 cairo_rel_move_to(cr, -str_width / 2, 0); in paint_output_info() 295 str_width = igt_cairo_printf_line(cr, align_left, 10, in paint_output_info() 297 cairo_rel_move_to(cr, str_width, 0); in paint_output_info() 308 str_width = igt_cairo_printf_line(cr, align_right, 10, in paint_output_info() 313 if (str_width > max_width) in paint_output_info() 314 max_width = str_width; in paint_output_info()
|