Wraps text for a given character width.
capi
wrap-text text width &key start end => strings
| text⇩ |
A string. |
| width⇩ |
A positive integer. |
|
Bounding index designators of text. |
| strings⇩ |
A list of strings. |
The function wrap-text takes a string text and returns a list of strings, each of which is no longer than width. Together the strings in strings contain all the non-whitespace characters of text between start and end and are suitable for displaying this text on multiple lines of length width.
CAPI User Guide and Reference Manual (Windows version) - 01 Dec 2021 19:33:57