InsertAtUnattributed adds str to s at the byte position specified by at. The new substring will be unattributed; existing attributes will be moved along with their text.
(str string, at int)
| 392 | // at. The new substring will be unattributed; existing attributes will |
| 393 | // be moved along with their text. |
| 394 | func (s *AttributedString) InsertAtUnattributed(str string, at int) { |
| 395 | cs := C.CString(str) |
| 396 | defer freestr(cs) |
| 397 | C.uiAttributedStringInsertAtUnattributed(s.s, cs, C.size_t(at)) |
| 398 | } |
| 399 | |
| 400 | // Delete deletes the characters and attributes of s in the byte range |
| 401 | // [start, end). |