std.string inPattern() and UTF symbols

2013-12-09 Thread Fra
various (UTF) symbols seems to be ignored by inPattern, see http://dpaste.dzfl.pl/e8ff9002 for a quick example (munch() uses inPattern() internally) Is it me doing something in an improper way, or is the documentation lacking more specific limitation of the function? All I can read is In the

Re: std.string inPattern() and UTF symbols

2013-12-09 Thread qznc
On Monday, 9 December 2013 at 14:44:23 UTC, Fra wrote: various (UTF) symbols seems to be ignored by inPattern, see http://dpaste.dzfl.pl/e8ff9002 for a quick example (munch() uses inPattern() internally) Is it me doing something in an improper way, or is the documentation lacking more

Re: std.string inPattern() and UTF symbols

2013-12-09 Thread Fra
On Monday, 9 December 2013 at 16:10:34 UTC, qznc wrote: That is probably not the root of Fras problem, though. You are right, that was not the root, even if the mistake is extremely simple: foreach(c, s) is used to seek the string. I just realized that foreach can mess things up when used on

Re: std.string inPattern() and UTF symbols

2013-12-09 Thread Fra
On Monday, 9 December 2013 at 16:10:34 UTC, qznc wrote: On Monday, 9 December 2013 at 15:58:53 UTC, qznc wrote: I also smell a unicode bug, due to the combination of foreach and length. Bug reported. :) https://d.puremagic.com/issues/show_bug.cgi?id=11712 That is probably not the root of

Re: std.string inPattern() and UTF symbols

2013-12-09 Thread qznc
On Monday, 9 December 2013 at 15:58:53 UTC, qznc wrote: I also smell a unicode bug, due to the combination of foreach and length. Bug reported. :) https://d.puremagic.com/issues/show_bug.cgi?id=11712 That is probably not the root of Fras problem, though.