| 38 | } |
| 39 | |
| 40 | inline static std::string Trim(std::string str) { |
| 41 | if (str.empty()) { |
| 42 | return str; |
| 43 | } |
| 44 | str.erase(str.find_last_not_of(" \f\n\r\t\v") + 1); |
| 45 | str.erase(0, str.find_first_not_of(" \f\n\r\t\v")); |
| 46 | return str; |
| 47 | } |
| 48 | |
| 49 | inline static std::string RemoveQuotationSymbol(std::string str) { |
| 50 | if (str.empty()) { |
no test coverage detected