[Issue 1590] std.string.startsWith and endsWith please
Derek Parnell
derek at psych.ward
Fri Oct 19 15:20:25 PDT 2007
On Fri, 19 Oct 2007 18:07:23 +0000 (UTC), d-bugmail at puremagic.com wrote:
> http://d.puremagic.com/issues/show_bug.cgi?id=1590
>
> andrei at metalanguage.com changed:
>
> What |Removed |Added
> ----------------------------------------------------------------------------
> Status|NEW |ASSIGNED
>
> ------- Comment #1 from andrei at metalanguage.com 2007-10-19 13:07 -------
> The functions hasPrefix(E1[] longer, E2[] shorter) and hasSuffix(E1[] longer,
> E2[] shorter) will be part of the next minor release and work with all sensible
> combinations of E1 and E2.
And I assume it returns a boolean?
What happens in the edge cases? Such as
hasPrefix("abc", "abc");
hasPrefix("abc", "");
hasPrefix("", "abc");
hasPrefix("", "");
--
Derek Parnell
Melbourne, Australia
skype: derek.j.parnell
More information about the Digitalmars-d-bugs
mailing list