| 424 | constexpr std::string_view fileScheme("file:"); |
| 425 | |
| 426 | bool isFile(const std::string& url) { |
| 427 | return Uri(url).getScheme() == fileScheme; |
| 428 | } |
| 429 | |
| 430 | std::string convertFileUriToFilename(const std::string& url) { |
| 431 | return Uri::uriPathToNativePath(std::string(Uri(url).getPath())); |