Expand description
Small string helpers shared across the workspace.
Functionsยง
- truncate_
on_ char_ boundary - Truncate
sto at mostmax_bytes, snapping the cut down to the nearest UTF-8 character boundary so a multi-byte character is never split.
Small string helpers shared across the workspace.
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.