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

Function ltrim

include/dpp/stringops.h:81–85  ·  view source on GitHub ↗

* @brief trim from beginning of string (left) * * @param s string to trim * @return std::string trimmed string */

Source from the content-addressed store, hash-verified

79 * @return std::string trimmed string
80 */
81inline std::string ltrim(std::string s)
82{
83 s.erase(0, s.find_first_not_of(" \t\n\r\f\v"));
84 return s;
85}
86
87/**
88 * @brief Trim from both ends of string (right then left)

Callers 1

trimFunction · 0.85

Calls 1

eraseMethod · 0.80

Tested by

no test coverage detected