(&self, n: usize, pat: &Wtf8)
| 1053 | } |
| 1054 | |
| 1055 | pub fn rsplitn(&self, n: usize, pat: &Wtf8) -> impl Iterator<Item = &Self> { |
| 1056 | self.as_bytes() |
| 1057 | .rsplitn_str(n, pat) |
| 1058 | .map(|w| unsafe { Wtf8::from_bytes_unchecked(w) }) |
| 1059 | } |
| 1060 | |
| 1061 | pub fn trim(&self) -> &Self { |
| 1062 | let w = self.bytes.trim(); |
no test coverage detected