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 thenon-Unicode-correct line wrapper that uses ranges and does not allocate:there is some... inconsistency: `std.string.wrap` adds final "\n" tostring. ;-) but i always hated it for that.
A range of lines instead of inserted \n would be a good API as well.
