std.d.lexer requirements

Christophe Travert travert at phare.normalesup.org
Thu Aug 2 02:17:03 PDT 2012


Walter Bright , dans le message (digitalmars.D:174015), a écrit :
> On 8/2/2012 12:49 AM, Jacob Carlborg wrote:
>> But what I still don't understand is how a UTF-8 range is going to be usable by
>> other range based functions in Phobos.
> 
> Worst case use an adapter range.
> 
> 

Yes

auto r = myString.byChar();

after implementing a byChar adapter range or just

auto r = cast(const(ubyte)[]) myString;

And it's a range of code unit, not code point.
And it's usable in phobos.


More information about the Digitalmars-d mailing list