[Issue 1590] std.string.startsWith and endsWith please

d-bugmail at puremagic.com d-bugmail at puremagic.com
Fri Oct 19 12:58:54 PDT 2007


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





------- Comment #3 from wbaxter at gmail.com  2007-10-19 14:58 -------
Just for the record, Andrei's reply above was a response to this NG post:

"""
Sounds good, but what module?  Doesn't seem to have much reason to be in
std.string if it works with any types.  Perhaps it's time std got an array
utils module with generic array manipulation functions?  (A la
cashew.utils.array).   You know with "advanced" functionality like removing an
item from an array, etc.

And if it's not going into std.string, I think there's a case to be made that
std.string should still have a startsWith and endsWith (that just alias
hasPrefix/hasSuffix) because std.string is where people will look for it and
those are the names people will expect.
"""


-- 



More information about the Digitalmars-d-bugs mailing list