chop
fn
Range chop(Range)(Range str) if ((isBidirectionalRange!Range && isSomeChar!(ElementEncodingType!Range) ||
isNarrowString!Range) &&
!isConvertibleToString!Range)Returns str without its last character, if there is one. If str ends with "\r\n", then both are removed. If str is empty, then it is returned unchanged.
Parameters
str | string (must be valid UTF) |
Returns
slice of str
fn
StringTypeOf!Range chop(Range)(auto ref Range str) if (isConvertibleToString!Range)No documentation available for this declaration.