| 89 | } |
| 90 | |
| 91 | const 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 | |
| 100 | const char* ExtractQuery(const char* uri, const char* end, vtkURIComponent& output) |
| 101 | { |
no outgoing calls
no test coverage detected