Today's programming challenge - How's your Range-Fu ?
Panke via Digitalmars-d
digitalmars-d at puremagic.com
Fri Apr 17 13:44:51 PDT 2015
On Friday, 17 April 2015 at 19:44:41 UTC, ketmar wrote:
> On Fri, 17 Apr 2015 11:17:30 -0700, H. S. Teoh via
> Digitalmars-d wrote:
>
>> Well, talk is cheap, so here's a working implementation of the
>> non-Unicode-correct line wrapper that uses ranges and does not
>> allocate:
>
> there is some... inconsistency: `std.string.wrap` adds final
> "\n" to
> string. ;-) but i always hated it for that.
A range of lines instead of inserted \n would be a good API as
well.
More information about the Digitalmars-d
mailing list