| 47 | } |
| 48 | |
| 49 | inline static std::string RemoveQuotationSymbol(std::string str) { |
| 50 | if (str.empty()) { |
| 51 | return str; |
| 52 | } |
| 53 | str.erase(str.find_last_not_of("'\"") + 1); |
| 54 | str.erase(0, str.find_first_not_of("'\"")); |
| 55 | return str; |
| 56 | } |
| 57 | |
| 58 | inline static bool StartsWith(const std::string& str, const std::string prefix) { |
| 59 | if (str.substr(0, prefix.size()) == prefix) { |
no test coverage detected