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

Function StripPrefix

cpp/src/arrow/dataset/partition.cc:830–834  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

828}
829
830std::string StripPrefix(const std::string& path, const std::string& prefix) {
831 auto maybe_base_less = fs::internal::RemoveAncestor(prefix, path);
832 auto base_less = maybe_base_less ? std::string(*maybe_base_less) : path;
833 return base_less;
834}
835
836std::string StripPrefixAndFilename(const std::string& path, const std::string& prefix) {
837 auto base_less = StripPrefix(path, prefix);

Callers 3

StripPrefixAndFilenameFunction · 0.85
FinishMethod · 0.85

Calls 1

RemoveAncestorFunction · 0.85

Tested by

no test coverage detected