[Issue 8551] Endless Split
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Thu Aug 16 06:09:04 PDT 2012
http://d.puremagic.com/issues/show_bug.cgi?id=8551
--- Comment #4 from Daniel Cousens <daniel350 at bigpond.com> 2012-08-16 06:09:03 PDT ---
The culprit lies in the fact that when find() returns a string the same length
as the input; _frontLength is then left as `0`.
This later leads to the following result in popFront():
_input = _input[_frontLength + separatorLength .. _input.length];
is equal to
_input = _input[0 .. _input.length];
Ie, unchanged.
Therefore, the range remains the same length, and never completes.
--
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
More information about the Digitalmars-d-bugs
mailing list