strip

fnauto strip(Range)(Range str) if (isSomeString!Range || isRandomAccessRange!Range && hasLength!Range && hasSlicing!Range && !isConvertibleToString!Range && isSomeChar!(ElementEncodingType!Range))

Strips both leading and trailing whitespace (as defined by

isWhite) or as specified in the second argument.

Parameters

strstring or random access range of characters
charsstring of characters to be stripped
leftCharsstring of leading characters to be stripped
rightCharsstring of trailing characters to be stripped

Returns

slice of str stripped of leading and trailing whitespace

or characters as specified in the second argument.

See Also

Generic stripping on ranges: _strip
fnauto strip(Range)(auto ref Range str) if (isConvertibleToString!Range)
No documentation available for this declaration.
fnauto strip(Range, Char)(Range str, const(Char)[] chars) if (((isBidirectionalRange!Range && isSomeChar!(ElementEncodingType!Range)) || isConvertibleToString!Range) && isSomeChar!Char)

Ditto

fnauto strip(Range, Char)(Range str, const(Char)[] leftChars, const(Char)[] rightChars) if (((isBidirectionalRange!Range && isSomeChar!(ElementEncodingType!Range)) || isConvertibleToString!Range) && isSomeChar!Char)

Ditto