String Prefix Predicate

"Nordlöw" via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Tue Aug 19 03:06:27 PDT 2014


On Tuesday, 19 August 2014 at 08:23:53 UTC, monarch_dodra wrote:
> You could define your own range of chars, for example, a 
> "rope". Or, you want to store your string in a deterministic 
> container ("Array!char"). These would produce individual code 
> units, but you'd still need them to be interpreted your range 
> as a sequence of code points. This is where `byDchar` would 
> come in handy.
>
> There is a fair bit of discrepancy between a "char[]", and a 
> range where `ElementType!R` is `char`, which is quite 
> unfortunate. There have been talks of killing auto-decode, in 
> which case, a range of chars would have the same behavior as a 
> char[].

Ok, thanks again.


More information about the Digitalmars-d-learn mailing list