(text: &Wtf8)
| 277 | } |
| 278 | |
| 279 | fn parse_zero(text: &Wtf8) -> (bool, &Wtf8) { |
| 280 | let mut chars = text.code_points(); |
| 281 | match chars.next().and_then(CodePoint::to_char) { |
| 282 | Some('0') => (true, chars.as_wtf8()), |
| 283 | _ => (false, text), |
| 284 | } |
| 285 | } |
| 286 | |
| 287 | fn parse_precision(text: &Wtf8) -> Result<(Option<usize>, &Wtf8), FormatSpecError> { |
| 288 | let mut chars = text.code_points(); |
no test coverage detected