(text: &Wtf8)
| 269 | } |
| 270 | |
| 271 | fn parse_alternate_form(text: &Wtf8) -> (bool, &Wtf8) { |
| 272 | let mut chars = text.code_points(); |
| 273 | match chars.next().and_then(CodePoint::to_char) { |
| 274 | Some('#') => (true, chars.as_wtf8()), |
| 275 | _ => (false, text), |
| 276 | } |
| 277 | } |
| 278 | |
| 279 | fn parse_zero(text: &Wtf8) -> (bool, &Wtf8) { |
| 280 | let mut chars = text.code_points(); |
no test coverage detected