digitalmars.D.learn - std.range.chunks for char[]
- cal (3/3) Oct 17 2012 Is there an equivalent to std.range.chunks that will work on a
- Jonathan M Davis (6/9) Oct 17 2012 Not that I'm aware of (though there _may_ be a function that you could d...
Is there an equivalent to std.range.chunks that will work on a char array? As in, it will return a range iterating over chunks of code points?
Oct 17 2012
On Thursday, October 18, 2012 01:19:02 cal wrote:Is there an equivalent to std.range.chunks that will work on a char array? As in, it will return a range iterating over chunks of code points?Not that I'm aware of (though there _may_ be a function that you could do it with that I'm not thinking of), but such a function would be an order of magnitude worse than chunks, because it would have to actually walk the string to determine where to slice it. Writing it would be fairly trivial though. - Jonathan M Davis
Oct 17 2012