MCPcopy Create free account
hub / github.com/Selectively11/CloudRedirect / EscapeQuery

Method EscapeQuery

src/providers/google_drive.cpp:40–49  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

38}
39
40std::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
51std::string GoogleDriveProvider::BuildChildCacheKey(const std::string& parentId,
52 const std::string& name) const {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected