[Issue 6428] New: Inconsistent implement in std.array.replaceFirst
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Tue Aug 2 06:55:13 PDT 2011
http://d.puremagic.com/issues/show_bug.cgi?id=6428
Summary: Inconsistent implement in std.array.replaceFirst
Product: D
Version: D2
Platform: Other
OS/Version: Windows
Status: NEW
Severity: normal
Priority: P2
Component: Phobos
AssignedTo: nobody at puremagic.com
ReportedBy: bitworld at qq.com
--- Comment #0 from Heromyth <bitworld at qq.com> 2011-08-02 06:55:12 PDT ---
Test code:
string s1 = "abc bcf";
string s2 = s1.replaceFirst("bc", "ee");
writefln("%s\n%s", s1, s2);
The s2 should be "aee bcf", however the result of replaceFirst is "aee".
--
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