asciiStrip

Like strip, but only removes ASCII whitespace.

T[]
asciiStrip
(
T
)
(
T[] s
)
if (
is(Unqual!T == char)
)

Examples

t
{
	string s = "Hello, world!";
	assert(asciiStrip(s) is s);
	assert(asciiStrip("\r\n\tHello ".dup) == "Hello"

Meta