(&self, pref: PyStrRef)
| 931 | |
| 932 | #[pymethod] |
| 933 | fn removeprefix(&self, pref: PyStrRef) -> Wtf8Buf { |
| 934 | self.as_wtf8() |
| 935 | .py_removeprefix(pref.as_wtf8(), pref.byte_len(), |s, p| s.starts_with(p)) |
| 936 | .to_owned() |
| 937 | } |
| 938 | |
| 939 | #[pymethod] |
| 940 | fn removesuffix(&self, suffix: PyStrRef) -> Wtf8Buf { |
nothing calls this directly
no test coverage detected