[Issue 4483] foreach over string or wstring, where element type not specified, does not support unicode

via Digitalmars-d-bugs digitalmars-d-bugs at puremagic.com
Wed Apr 6 12:47:34 PDT 2016


https://issues.dlang.org/show_bug.cgi?id=4483

--- Comment #20 from Dmitry Olshansky <dmitry.olsh at gmail.com> ---
(In reply to Sobirari Muhomori from comment #19)
> (In reply to Dmitry Olshansky from comment #18)
> > b) Comparing strings or searching for substring.
> 
> Doesn't regex search for substring?

No, it examines one codepoint at a time. There is a special prefix matcher that
does indeed avoid decoding but is very limited in what it could do so it's used
only to find possible start of a match.

--


More information about the Digitalmars-d-bugs mailing list