| 38 | } |
| 39 | |
| 40 | std::string GoogleDriveProvider::EscapeQuery(const std::string& s) const { |
| 41 | std::string out; |
| 42 | for (char c : s) { |
| 43 | if (c == '\'') out += "\\'"; |
| 44 | else if (c == '\\') out += "\\\\"; |
| 45 | else if (c == '\"') out += "\\\""; |
| 46 | else out += c; |
| 47 | } |
| 48 | return out; |
| 49 | } |
| 50 | |
| 51 | std::string GoogleDriveProvider::BuildChildCacheKey(const std::string& parentId, |
| 52 | const std::string& name) const { |
nothing calls this directly
no outgoing calls
no test coverage detected