MCPcopy Create free account
hub / github.com/MaskRay/ccls / lowerPathIfInsensitive

Function lowerPathIfInsensitive

src/utils.cc:92–101  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

90}
91
92std::string lowerPathIfInsensitive(const std::string &path) {
93#if defined(_WIN32)
94 std::string ret = path;
95 for (char &c : ret)
96 c = tolower(c);
97 return ret;
98#else
99 return path;
100#endif
101}
102
103void ensureEndsInSlash(std::string &path) {
104 if (path.empty() || path[path.size() - 1] != '/')

Callers 6

indexerSortFunction · 0.85
main_OnIndexedFunction · 0.85
applyIndexUpdateMethod · 0.85
getFileIdMethod · 0.85
findFileMethod · 0.85
textDocument_didOpenMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected