http://d.puremagic.com/issues/show_bug.cgi?id=7009

           Summary: countChars, removeChars
           Product: D
           Version: D2
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: enhancement
          Priority: P2
         Component: DMD
        AssignedTo: nob...@puremagic.com
        ReportedBy: bearophile_h...@eml.cc


--- Comment #0 from bearophile_h...@eml.cc 2011-11-25 16:34:03 PST ---
For uniformity with the other string functions I think std.string.countchars,
std.string.removechars need a capital letter in the middle:


import std.string: countChars, removeChars;
void main() {
    string s = "hello";
    assert(s.countChars("l") == 2);
    assert(s.removeChars("l") == "heo");
}

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------

Reply via email to