MCPcopy Create free account
hub / github.com/andlabs/ui / InsertAtUnattributed

Method InsertAtUnattributed

drawtext.go:394–398  ·  view source on GitHub ↗

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)

Source from the content-addressed store, hash-verified

392// at. The new substring will be unattributed; existing attributes will
393// be moved along with their text.
394func (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).

Callers

nothing calls this directly

Calls 1

freestrFunction · 0.85

Tested by

no test coverage detected