Narrow string is not a random access range
Simen Kjaeraas
simen.kjaras at gmail.com
Tue Oct 23 10:36:18 PDT 2012
On 2012-10-23, 19:21, mist wrote:
> Hm, and all phobos functions should operate on narrow strings as if they
> where not random-acessible? I am thinking about something like
> commonPrefix from std.algorithm, which operates on code points for
> strings.
Preferably, yes. If there are performance (or other) benefits from
operating on code units, and it's just as safe, then operating on code
units is ok.
--
Simen
More information about the Digitalmars-d-learn
mailing list