[Issue 13632] Second argument for std.string.strip
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Thu Feb 1 03:25:27 UTC 2018
https://issues.dlang.org/show_bug.cgi?id=13632
--- Comment #3 from github-bugzilla at puremagic.com ---
Commits pushed to master at https://github.com/dlang/phobos
https://github.com/dlang/phobos/commit/2346990c091e68d0b07ed2fbd41dd865a3251713
Fix issue 13632: Enhancement to std.string.strip
Added second argument similar to Python `str.strip`
Second argument accepts a string of characters to strip and
strips only those characters.
Examples:
"xyzhello".stripLeft("xyz") == "hello"
"helloxy ".stripRight("xy ") == "hello"
"xhellox".strip("x") == "hello"
Signed-off-by: Aravinda VK <mail at aravindavk.in>
https://github.com/dlang/phobos/commit/8d93656917bb0f301ed07fe9de773f7484987361
Merge pull request #6023 from aravindavk/string_strip_enhancement
Fix issue 13632: Enhancement to std.string.strip
merged-on-behalf-of: unknown
--
More information about the Digitalmars-d-bugs
mailing list