MCPcopy Create free account
hub / github.com/dartsim/dart / trimLeft

Function trimLeft

dart/common/String.cpp:72–76  ·  view source on GitHub ↗

==============================================================================

Source from the content-addressed store, hash-verified

70
71//==============================================================================
72std::string trimLeft(const std::string& str, const std::string& whitespaces)
73{
74 size_t startpos = str.find_first_not_of(whitespaces);
75 return (startpos == std::string::npos) ? "" : str.substr(startpos);
76}
77
78//==============================================================================
79std::string trimRight(const std::string& str, const std::string& whitespaces)

Callers 2

trimFunction · 0.85
TESTFunction · 0.85

Calls

no outgoing calls

Tested by 1

TESTFunction · 0.68