| 115 | } |
| 116 | |
| 117 | std::string stripFileUriSchemePrefix(std::string const& _path) |
| 118 | { |
| 119 | std::regex const windowsDriveLetterPath("^file:///[a-zA-Z]:/"); |
| 120 | if (regex_search(_path, windowsDriveLetterPath)) |
| 121 | return _path.substr(8); |
| 122 | if (_path.find("file://") == 0) |
| 123 | return _path.substr(7); |
| 124 | else |
| 125 | return _path; |
| 126 | } |
| 127 | |
| 128 | } |
no test coverage detected