Function trim_tail
Summary
#include "breeze/text/trim_tail.hpp"
(1) std::string trim_tail(std::string const &s, std::locale const &loc=std::locale())
(2) std::string trim_tail(std::string const &s, set_of_chars const &to_be_removed)
Function overload
Synopsis
#include "breeze/text/trim_tail.hpp"
std::string trim_tail(std::string const &s, std::locale const &loc=std::locale())
Description
- Returns
- A string obtained from
s
by removing all the trailing charactersc
for whichstd::isspace( c, loc )
returnstrue
.
Source
Line 31 in breeze/text/trim_tail.hpp.
Synopsis
#include "breeze/text/trim_tail.hpp"
std::string trim_tail(std::string const &s, set_of_chars const &to_be_removed)
Description
- Returns
- A string obtained from
s
by removing all the trailing characters that are also contained into_be_removed
.
Source
Line 41 in breeze/text/trim_tail.hpp.