The text to line wrap.
The options to line wrap with, such as whether to add a prefix and suffix.
A LineWrapRange that will wrap the given text onto seperate lines.
auto constChars = cast(const(char)[])"Hello"; auto mutableChars = ['H', 'e', 'l', 'l', 'o']; // Mutable "char[]" is promoted to const "const(char)[]". LineWrapRange!(const(char)[]) constRange = constChars.asLineWrapped; LineWrapRange!(const(char)[]) mutableRange = mutableChars.asLineWrapped;
LineWrapRange for full documentation.
lineWrap for an eagerly evaluated version.
Returns an InputRange (LineWrapRange) that will wrap the given text onto seperate lines.