Truncate the length of a UTF-8 string and append a set ending. The string is initially truncated so that it is of maximum length n (this includes the extra ending paramter so the string is truncated to position n - ending.length).
string to truncate and append the ending to
maximum number of code points in the resulting string
the ending to append to the string, defaults to "..."
In: n must be at least ending.length
The truncated and appended string for method chaining
See Implementation
Truncate the length of a UTF-8 string and append a set ending. The string is initially truncated so that it is of maximum length n (this includes the extra ending paramter so the string is truncated to position n - ending.length).