pub fn cstrlen(text: &str) -> i32Expand description
Display width of a control string — a label whose ~ markers delimit the
hotkey letter and occupy no columns themselves ("~O~K" is 2 wide).
This is the measure the widgets that draw control strings (buttons, menus,
the status line) centre and size with, so anything laying out around such a
label must use it rather than width, which would count the ~ markers.