(&self, prefix: &Self, prefix_len: usize, is_prefix: FC)
| 343 | } |
| 344 | |
| 345 | fn py_removeprefix<FC>(&self, prefix: &Self, prefix_len: usize, is_prefix: FC) -> &Self |
| 346 | where |
| 347 | FC: Fn(&Self, &Self) -> bool, |
| 348 | { |
| 349 | //if self.py_starts_with(prefix) { |
| 350 | if is_prefix(self, prefix) { |
| 351 | self.get_bytes(prefix_len..self.bytes_len()) |
| 352 | } else { |
| 353 | self |
| 354 | } |
| 355 | } |
| 356 | |
| 357 | fn py_removesuffix<FC>(&self, suffix: &Self, suffix_len: usize, is_suffix: FC) -> &Self |
| 358 | where |
no test coverage detected