[Issue 1590] New: std.string.startsWith and endsWith please
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Tue Oct 16 17:28:42 PDT 2007
http://d.puremagic.com/issues/show_bug.cgi?id=1590
Summary: std.string.startsWith and endsWith please
Product: D
Version: 2.006
Platform: All
OS/Version: All
Status: NEW
Severity: normal
Priority: P2
Component: Phobos
AssignedTo: bugzilla at digitalmars.com
ReportedBy: wbaxter at gmail.com
These would be very nice to have in Phobos' std.string.
Java's strings have them (startsWith, endsWith)
Python's strings have them (startswith, endswith)
Ruby strings have them (starts_with, ends_with)
Perl maybe doesn't have it but perl has ~=/^xxx/ and ~=/xxx$/.
Don't let D be the only one without!
They're simple functions but oft-used.
--
More information about the Digitalmars-d-bugs
mailing list