[phobos] UTF-8 string slicing

unDEFER undefer at gmail.com
Fri Aug 19 03:11:23 PDT 2011


On Fri, 19 Aug 2011 07:06:53 +0400, Sean Kelly <sean at invisibleduck.org>  
wrote:

> I need to do this from time to time, but I generally just do something  
> like:
>
> buf[0 .. buf.toUCSindex(n)]
>
> A shorthand might be nice though, I suppose.

Hm.. I don't know how it works for you, but for me this code doesn't work  
at all.

-- 
registered Linux user #360474
Don't worry, I can read OpenOffice.org


More information about the phobos mailing list