The OpenD Programming Language

strip

@safe pure nothrow @nogc
inout(C)[]
strip
(
C
size_t L
)
(
return scope inout(C)[] str
,
const C[L] chars...
)
if (
L
)

Examples

import mir.test: should;

"     hello world!     ".strip(' ')     .should == "hello world!";
"     hello world!!!   ".strip(" !").should == "hello world";

Meta