SetAttribute sets a in the byte range [start, end) of s. Any existing attributes in that byte range of the same type are removed.
(a Attribute, start, end int)
| 406 | // SetAttribute sets a in the byte range [start, end) of s. Any existing |
| 407 | // attributes in that byte range of the same type are removed. |
| 408 | func (s *AttributedString) SetAttribute(a Attribute, start, end int) { |
| 409 | C.uiAttributedStringSetAttribute(s.s, a.toLibui(), C.size_t(start), C.size_t(end)) |
| 410 | } |
| 411 | |
| 412 | // TODO uiAttributedStringForEachAttribute |
| 413 | // TODO uiAttributedStringNumGraphemes |
no test coverage detected