MCPcopy Create free account
hub / github.com/Kitware/CMake / CurlCompatFileURL

Function CurlCompatFileURL

Source/cmFileCommand.cxx:1702–1710  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1700using cmFileCommandVectorOfChar = std::vector<char>;
1701
1702std::string CurlCompatFileURL(std::string url)
1703{
1704 if (cmHasLiteralPrefix(url, "file://")) {
1705 // libcurl 7.77 and below accidentally allowed spaces in file:// URLs,
1706 // which CMake has long accepted as a result. Explicitly encode spaces.
1707 cmSystemTools::ReplaceString(url, " ", "%20");
1708 }
1709 return url;
1710}
1711
1712size_t cmWriteToFileCallback(void* ptr, size_t size, size_t nmemb, void* data)
1713{

Callers 2

HandleDownloadCommandFunction · 0.85
HandleUploadCommandFunction · 0.85

Calls 1

cmHasLiteralPrefixFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…