[Issue 15596] strip with delimiter?

via Digitalmars-d-bugs digitalmars-d-bugs at puremagic.com
Sat Feb 27 22:47:43 PST 2016


https://issues.dlang.org/show_bug.cgi?id=15596

--- Comment #4 from b2.temp at gmx.com ---
(In reply to Manu from comment #3)
> It is so hard to do string manipulation in phobos. Nobody I've encountered
> yet can find most of the functions, they're scattered among 4, 5, 6?
> modules. Unless you already know what the function names are, and where they
> are, how can people find what they want? They do an exhaustive search
> through a bunch of modules hoping to stumble upon it.
> 
> My feeling is that it wouldn't hurt for std.string to alias the hell out of
> other modules and make all the conventional string operations available in
> one place.

I agree, after reading your BR, I've myself done the error to write a
popWhile() function using a predicate for my user lib after what I've
remembered about algorithm.mutation, but it was too late...

Maybe a note in the std.string doc: "see also: for more generic strip
funcyion..."

--


More information about the Digitalmars-d-bugs mailing list