| 91 | } |
| 92 | |
| 93 | std::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 |
no outgoing calls
no test coverage detected