http://d.puremagic.com/issues/show_bug.cgi?id=8551
--- Comment #3 from Daniel Cousens <daniel...@bigpond.com> 2012-08-16 05:58:36 PDT --- (In reply to comment #2) > import std.algorithm; > import std.stdio; > > void main() { > auto s = "abc"; > writeln(s.find("").length); // prints 3 - what the? > writeln(s.find(",").length); // prints 0 - expected > writeln(s.find("b").length); // prints 2 - expected > } > > The problem is from the second implementation of the `splitter` in > std/algorithm.d (:2118). Possibly rooted in erroneous output from find (see > above). As was explained to me by CyberShadow, it does not appear to be erroneous output from find; but most likely just an edge case in splitter. -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------