MCPcopy Create free account
hub / github.com/EricPengShuai/Interview / LTrim

Function LTrim

STL/string.cpp:31–34  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

29
30
31string LTrim(const string& str)
32{
33 return str.substr(str.find_first_not_of(" \n\r\t"));
34}
35
36string RTrim(const string& str)
37{

Callers 2

TrimFunction · 0.85
mainFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected