foreach over string

Kagamin via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Sat May 24 11:21:36 PDT 2014


On Saturday, 24 May 2014 at 18:18:37 UTC, John Colvin wrote:
> if you use foreach(dchar c; s) you will get the iteration by 
> code-point you are looking for.

Actually I was trying to prevent decoding :) It just occurred to 
me it can be tricky in generic code.


More information about the Digitalmars-d-learn mailing list