(text: &Wtf8)
| 229 | } |
| 230 | |
| 231 | fn get_num_digits(text: &Wtf8) -> usize { |
| 232 | for (index, character) in text.code_point_indices() { |
| 233 | if !character.is_char_and(|c| c.is_ascii_digit()) { |
| 234 | return index; |
| 235 | } |
| 236 | } |
| 237 | text.len() |
| 238 | } |
| 239 | |
| 240 | fn parse_fill_and_align(text: &Wtf8) -> (Option<CodePoint>, Option<FormatAlign>, &Wtf8) { |
| 241 | let char_indices: Vec<(usize, CodePoint)> = text.code_point_indices().take(3).collect(); |
no test coverage detected