Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/EricPengShuai/Interview
/ RTrim
Function
RTrim
STL/string.cpp:36–39 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
34
}
35
36
string RTrim(const string& str)
37
{
38
return str.substr(0,str.find_last_not_of(
" \n\r\t"
)+1);
39
}
40
41
string Trim(const string& str)
42
{
Callers
2
Trim
Function · 0.85
main
Function · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected