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