MCPcopy Create free account
hub / github.com/Kitware/VTK / ExtractPath

Function ExtractPath

IO/Core/vtkURI.cxx:91–98  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

89}
90
91const char* ExtractPath(const char* uri, const char* end, vtkURIComponent& output)
92{
93 const auto pathEnd = std::find_if(uri, end, [](char c) { return c == '#' || c == '?'; });
94
95 output = std::string{ uri, pathEnd }; // always defined, but may be empty
96
97 return pathEnd;
98}
99
100const char* ExtractQuery(const char* uri, const char* end, vtkURIComponent& output)
101{

Callers 4

GetFilePathMethod · 0.85
ExpandPathMethod · 0.85
ReadMethod · 0.85
ParseMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected