MCPcopy Create free account
hub / github.com/apache/arrow / ToSlashes

Function ToSlashes

cpp/src/arrow/filesystem/path_util.cc:319–329  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

317}
318
319std::string ToSlashes(std::string_view v) {
320 std::string s(v);
321#ifdef _WIN32
322 for (auto& c : s) {
323 if (c == '\\') {
324 c = '/';
325 }
326 }
327#endif
328 return s;
329}
330
331bool IsEmptyPath(std::string_view v) {
332 for (const auto c : v) {

Callers 4

FileSystemFromUriOrPathFunction · 0.85
TESTFunction · 0.85
ParseFileSystemUriFunction · 0.85
PathFromUriHelperFunction · 0.85

Calls

no outgoing calls

Tested by 1

TESTFunction · 0.68