Re: Fast removal of character

2017-10-12 Thread Laeeth Isharc via Digitalmars-d-learn
On Wednesday, 11 October 2017 at 22:22:43 UTC, Johan Engelen wrote: std.string.removechars is now deprecated. https://dlang.org/changelog/2.075.0.html#pattern-deprecate What is now the most efficient way to remove characters from a string, if only one type of character needs to be removed?

Re: Fast removal of character

2017-10-11 Thread Jonathan M Davis via Digitalmars-d-learn
On Wednesday, October 11, 2017 23:06:13 Johan Engelen via Digitalmars-d- learn wrote: > I am disappointed to see functions being deprecated, without an > extensive documentation of how to rewrite them for different > usage of the deprecated function. It makes me feel that no deep > thought went

Re: Fast removal of character

2017-10-11 Thread Steven Schveighoffer via Digitalmars-d-learn
On 10/11/17 7:06 PM, Johan Engelen wrote: On Wednesday, 11 October 2017 at 22:45:14 UTC, Jonathan M Davis wrote: On Wednesday, October 11, 2017 22:22:43 Johan Engelen via Digitalmars-d- learn wrote: std.string.removechars is now deprecated.

Re: Fast removal of character

2017-10-11 Thread Johan Engelen via Digitalmars-d-learn
On Wednesday, 11 October 2017 at 22:45:14 UTC, Jonathan M Davis wrote: On Wednesday, October 11, 2017 22:22:43 Johan Engelen via Digitalmars-d- learn wrote: std.string.removechars is now deprecated. https://dlang.org/changelog/2.075.0.html#pattern-deprecate What is now the most efficient way

Re: Fast removal of character

2017-10-11 Thread Jonathan M Davis via Digitalmars-d-learn
On Wednesday, October 11, 2017 22:22:43 Johan Engelen via Digitalmars-d- learn wrote: > std.string.removechars is now deprecated. > https://dlang.org/changelog/2.075.0.html#pattern-deprecate > > What is now the most efficient way to remove characters from a > string, if only one type of character

Fast removal of character

2017-10-11 Thread Johan Engelen via Digitalmars-d-learn
std.string.removechars is now deprecated. https://dlang.org/changelog/2.075.0.html#pattern-deprecate What is now the most efficient way to remove characters from a string, if only one type of character needs to be removed? ``` // old auto old(string s) { return s.removechars(",").to!int;