(&self, f: impl Fn(CodePoint) -> bool)
| 1106 | } |
| 1107 | |
| 1108 | pub fn trim_matches(&self, f: impl Fn(CodePoint) -> bool) -> &Self { |
| 1109 | self.trim_start_matches(&f).trim_end_matches(&f) |
| 1110 | } |
| 1111 | |
| 1112 | pub fn find(&self, pat: &Wtf8) -> Option<usize> { |
| 1113 | memchr::memmem::find(self.as_bytes(), pat.as_bytes()) |
no test coverage detected