text wrap

Vladimir Panteleev via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Sat Sep 19 17:34:03 PDT 2015


On Sunday, 20 September 2015 at 00:22:17 UTC, Joel wrote:
> What is simple way to wrap a string into strings?
>
> Eg from:
> I went for a walk and fell down a hole.
>
> To (6 max width):
> I went
> for a
> walk
> and
> fell
> down a
> hole.

http://dlang.org/phobos/std_string.html#.wrap


More information about the Digitalmars-d-learn mailing list