[Issue 7009] New: countChars, removeChars

d-bugmail at puremagic.com d-bugmail at puremagic.com
Fri Nov 25 16:35:01 PST 2011


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: nobody at puremagic.com
        ReportedBy: bearophile_hugs at eml.cc


--- Comment #0 from bearophile_hugs at 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: -------


More information about the Digitalmars-d-bugs mailing list