(&mut self, idx: usize, c: CodePoint)
| 508 | /// Inserts a codepoint into this `Wtf8Buf` at a byte position. |
| 509 | #[inline] |
| 510 | pub fn insert(&mut self, idx: usize, c: CodePoint) { |
| 511 | self.insert_wtf8(idx, c.encode_wtf8(&mut [0; MAX_LEN_UTF8])) |
| 512 | } |
| 513 | |
| 514 | /// Inserts a WTF-8 slice into this `Wtf8Buf` at a byte position. |
| 515 | #[inline] |