[Issue 1590] std.string.startsWith and endsWith please
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Fri Oct 19 13:06:07 PDT 2007
http://d.puremagic.com/issues/show_bug.cgi?id=1590
------- Comment #4 from wbaxter at gmail.com 2007-10-19 15:06 -------
(In reply to comment #2)
> The best approach would be to define std.algorithm and put the two functions in
> there. As for terminology, google indeed reveals that startsWith and endsWith
> are much more popular, so I'll commit to these names.
Seems reasonable. Things in there will only work on objects that support the
T[] random-access interface for now (and probably only actual D arrays?) but
can be expanded later to include iterators if Phobos ever defines a standard
for those.
--
More information about the Digitalmars-d-bugs
mailing list