Specify characters to rtrim.

Synopsis

Declared in <folly/String.h>

template<typename ToTrim>
StringPiece
rtrim(
    StringPiece sp,
    ToTrim toTrim);

Description

Returns a subpiece with all characters the provided toTrim returns true for removed from the back of sp.

Return Value

A subpiece with the matching trailing characters removed.

Parameters

Name

Description

sp

The input piece to trim.

toTrim

Predicate selecting characters to remove.

Created with MrDocs