|
lcls2
C++ API: public headers of xtcdata, psalg, psdaq and psana
|
Declares psalg string helpers that remove whitespace: ltrim, rtrim, trim and strip. More...
#include <string>Namespaces | |
| namespace | psalg |
| Usage. | |
Functions | |
| std::string | psalg::ltrim (const std::string &str) |
| Return a copy of str without leading whitespace (space, newline, carriage return, tab, form feed, vertical tab); empty if str is all whitespace. | |
| std::string | psalg::rtrim (const std::string &str) |
| Return a copy of str without trailing whitespace (space, newline, carriage return, tab, form feed, vertical tab); empty if str is all whitespace. | |
| std::string | psalg::trim (const std::string &str) |
| Return rtrim(ltrim(str)). | |
| std::string | psalg::strip (const std::string &str) |
| Return a copy of str with every whitespace character removed (std::isspace in the classic locale). | |
Declares psalg string helpers that remove whitespace: ltrim, rtrim, trim and strip.