wordWrapLine

Separates a single long line into separate lines, performing word-wrapping where possible.

string[]
wordWrapLine
(
string text
,
size_t lineWidth = 80
,
char sep = ' '
)

Parameters

text string

The long line of text to split into lines.

lineWidth size_t

The maximum length of a line.

sep char

The separator character that can be used for word-wrapping.

Meta