Count the total number of visual positions in a raw styled string. Includes visible chars, `}` exit positions, and empty content positions.
(raw: &str)
| 2033 | /// Count the total number of visual positions in a raw styled string. |
| 2034 | /// Includes visible chars, `}` exit positions, and empty content positions. |
| 2035 | pub fn cursor_len(raw: &str) -> usize { |
| 2036 | raw_to_cursor(raw, raw.chars().count()) |
| 2037 | } |
| 2038 | |
| 2039 | /// If `pos` (a raw char index) points to the start of an empty `{name|}` tag, |
| 2040 | /// advance into it (returning the position between `|` and `}`). |