string is rarely useful as a function argument
Timon Gehr
timon.gehr at gmx.ch
Wed Dec 28 11:51:37 PST 2011
On 12/28/2011 08:29 PM, Andrei Alexandrescu wrote:
> 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].
>
That does not do the right thing. It would look more like
cast(string)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