Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
31
string LTrim(const string& str)
32
{
33
return str.substr(str.find_first_not_of(
" \n\r\t"
));
34
}
35
36
string RTrim(const string& str)
37
{
Callers
2
Trim
Function · 0.85
main
Function · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected