stripRight

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

Strips 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

Returns

slice of str stripped of trailing whitespace or characters

specified in the second argument.

See Also

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

Ditto