byCodePoint for a range of chars

monarch_dodra via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Tue May 20 12:58:16 PDT 2014


On Tuesday, 20 May 2014 at 17:59:09 UTC, John Colvin wrote:
> Given a range with element type char, what's the best way of 
> iterating over it by code-point, without filling an array first?
>
> Related to this: What's the status of std.utf and std.encoding? 
> The comments in std.encoding say that some functions supersede 
> their std.utf counterparts.

FWI, Walter just wrote "byDchar", that does what you want:
https://github.com/D-Programming-Language/phobos/pull/2043

It's about to be merged.


More information about the Digitalmars-d-learn mailing list