string is rarely useful as a function argument

Andrei Alexandrescu SeeWebsiteForEmail at erdani.org
Wed Dec 28 11:29:08 PST 2011


On 12/28/11 1:17 PM, Robert Jacques wrote:
> Would slicing, i.e. s[i..j] still be valid?

No, only s.rep[i .. j].

> If so, what would be the
> recommended way of finding i and j?

find, findSplit etc. from std.algorithm, std.utf functions etc.


Andrei


More information about the Digitalmars-d mailing list