MCPcopy Create free account
hub / github.com/andysworkshop/stm32plus / trimLeft

Function trimLeft

lib/include/string/StdStringUtil.h:26–34  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

24 */
25
26 inline void trimLeft(std::string& str,const char *trimChars=defaultTrimChars) {
27
28 std::string::size_type pos;
29
30 if((pos=str.find_first_not_of(trimChars))==std::string::npos)
31 str.clear();
32 else if(pos!=0)
33 str=str.substr(pos);
34 }
35
36
37 /**

Callers 2

trimFunction · 0.85
appendPathMethod · 0.85

Calls 1

clearMethod · 0.45

Tested by

no test coverage detected