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

Function RemoveLeadingSlash

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

Source from the content-addressed store, hash-verified

195}
196
197std::string_view RemoveLeadingSlash(std::string_view key) {
198 while (!key.empty() && key.front() == kSep) {
199 key.remove_prefix(1);
200 }
201 return key;
202}
203
204Status AssertNoTrailingSlash(std::string_view key) {
205 if (HasTrailingSlash(key)) {

Callers 8

FromUriMethod · 0.85
FileSystemFromUriRealFunction · 0.85
TESTFunction · 0.85
PathFromUriMethod · 0.85
ConcatAbstractPathFunction · 0.85
MakeAbstractPathRelativeFunction · 0.85
RemoveAncestorFunction · 0.85

Calls 1

emptyMethod · 0.45

Tested by 1

TESTFunction · 0.68