CodeWriterUtility class

Contains helper methods that can be used by custom code writers and templates.

Operations

NameReturnsDescription
wordWrap(str, width)

CodeWriterUtility.wordWrap

X

Wraps the provided string input to a specified maximum width.

Parameters
NameTypeDescription
strstring The string to be wrapped.
widthinteger The maximum width of the wrapped text in characters.
Return value
Type: string [*]
string [*]Wraps the provided string input to a specified maximum width.