MCPcopy Create free account
hub / github.com/SIPp/sipp / trim

Function trim

src/call.cpp:93–100  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

91}
92
93std::string trim(const std::string &s) {
94 size_t first = s.find_first_not_of(' ');
95 if (first == std::string::npos) {
96 return s;
97 }
98 size_t last = s.find_last_not_of(' ');
99 return s.substr(first, (last - first + 1));
100}
101
102#define callDebug(...) do { if (useCallDebugf) { _callDebug( __VA_ARGS__ ); } } while (0)
103

Callers 4

process_setFunction · 0.70
process_traceFunction · 0.70
process_commandFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected