(&self, w: impl AsRef<Wtf8>)
| 1163 | } |
| 1164 | |
| 1165 | pub fn strip_prefix(&self, w: impl AsRef<Wtf8>) -> Option<&Self> { |
| 1166 | self.bytes |
| 1167 | .strip_prefix(w.as_ref().as_bytes()) |
| 1168 | .map(|w| unsafe { Wtf8::from_bytes_unchecked(w) }) |
| 1169 | } |
| 1170 | |
| 1171 | pub fn strip_suffix(&self, w: impl AsRef<Wtf8>) -> Option<&Self> { |
| 1172 | self.bytes |
no test coverage detected