(&self, from: &Wtf8, to: &Wtf8)
| 1175 | } |
| 1176 | |
| 1177 | pub fn replace(&self, from: &Wtf8, to: &Wtf8) -> Wtf8Buf { |
| 1178 | let w = self.bytes.replace(from, to); |
| 1179 | unsafe { Wtf8Buf::from_bytes_unchecked(w) } |
| 1180 | } |
| 1181 | |
| 1182 | pub fn replacen(&self, from: &Wtf8, to: &Wtf8, n: usize) -> Wtf8Buf { |
| 1183 | let w = self.bytes.replacen(from, to, n); |
no outgoing calls
no test coverage detected