string or random access range of characters
string of characters to be stripped
slice of str stripped of trailing whitespace or characters specified in the second argument.
assert(stripRight(" hello world ", "x") == " hello world "); assert(stripRight(" hello world ", " ") == " hello world"); assert(stripRight(" hello worldxy ", "xy ") == " hello world");
Generic stripping on ranges: std.algorithm.mutation._stripRight
Strips trailing whitespace (as defined by std.uni.isWhite) or as specified in the second argument.