MCPcopy 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
36string RTrim(const string& str)
37{
38 return str.substr(0,str.find_last_not_of(" \n\r\t")+1);
39}
40
41string Trim(const string& str)
42{

Callers 2

TrimFunction · 0.85
mainFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected