[Issue 18328] New: algorithm.startsWith can compare narrow string lengths in more circumstances
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Tue Jan 30 02:23:59 UTC 2018
https://issues.dlang.org/show_bug.cgi?id=18328
Issue ID: 18328
Summary: algorithm.startsWith can compare narrow string lengths
in more circumstances
Product: D
Version: D2
Hardware: All
OS: All
Status: NEW
Severity: trivial
Priority: P1
Component: phobos
Assignee: nobody at puremagic.com
Reporter: n8sh.secondary at hotmail.com
algorithm.startsWith can check `haystack.length < needle.length` in more
circumstances than it currently does when one or both of haystack/needle are
narrow strings.
--
More information about the Digitalmars-d-bugs
mailing list