eating whitespace

Andrej Mitrovic andrej.mitrovich at gmail.com
Sat Feb 9 13:30:59 PST 2013


On 2/9/13, Peter Sommerfeld <noreply at rubrica.at> wrote:
> I wonder what the best, that means the fastest  way is
> to remove all whitespace " \t\n\r" from as string.
> Whitespace are distributed erratically within the string.
>
> Peter
>

Try "f\too\t\n\rb\nar".removechars("\t\n\r")


More information about the Digitalmars-d-learn mailing list