Narrow string is not a random access range

mist none at none.none
Wed Oct 24 05:37:33 PDT 2012


Wait. So you consider commonPrefix returning malformed string to 
be fine? I have lost you here. For example, for code sample given 
above, output is:

==========
Пи
П[\D0]
==========

Problem is if you use == on code unit you can match only part of 
valid symbol.


More information about the Digitalmars-d-learn mailing list