`s` without its prefix `p` when `s` starts with `p` in any ASCII letter case (JS `/^p/i`).
(s: &'a str, p: &str)
| 1692 | /// `s` without its prefix `p` when `s` starts with `p` in any ASCII letter |
| 1693 | /// case (JS `/^p/i`). |
| 1694 | fn strip_prefix_ascii_ci<'a>(s: &'a str, p: &str) -> Option<&'a str> { |
| 1695 | s.get(..p.len()).filter(|head| head.eq_ignore_ascii_case(p)).map(|_| &s[p.len()..]) |
| 1696 | } |
| 1697 | |
| 1698 | /// phpConcatParts (languages/php.ts): the parts of a `.` concatenation, left |
| 1699 | /// to right — `__DIR__ . '/inc/' . 'a.php'` is a left-nested tree of binary |
no test coverage detected