Skip to main content

Module text

Module text 

Source
Expand description

Small string helpers shared across the workspace.

Functionsยง

truncate_on_char_boundary
Truncate s to at most max_bytes, snapping the cut down to the nearest UTF-8 character boundary so a multi-byte character is never split.