MCPcopy Create free account
hub / github.com/brainboxdotcc/DPP / rtrim

Function rtrim

include/dpp/stringops.h:69–73  ·  view source on GitHub ↗

* @brief trim from end of string (right) * * @param s String to trim * @return std::string trimmed string */

Source from the content-addressed store, hash-verified

67 * @return std::string trimmed string
68 */
69inline std::string rtrim(std::string s)
70{
71 s.erase(s.find_last_not_of(" \t\n\r\f\v") + 1);
72 return s;
73}
74
75/**
76 * @brief trim from beginning of string (left)

Callers 1

trimFunction · 0.85

Calls 1

eraseMethod · 0.80

Tested by

no test coverage detected