Expand description
Clipping text to a byte budget without splitting a UTF-8 character.
Structs§
- Clip
- The result of clipping text to a byte cap.
Functions§
- clip
- Clip
textso its UTF-8 length does not exceedcapbytes, trimming back to the nearest character boundary rather than splitting a multi-byte character.