| 118 | |
| 119 | #ifdef EXV_ENABLE_FILESYSTEM |
| 120 | std::string pathOfFileUrl(const std::string& url) { |
| 121 | std::string path = url.substr(7); |
| 122 | size_t found = path.find('/'); |
| 123 | return (found == std::string::npos) ? path : path.substr(found); |
| 124 | } |
| 125 | #endif |
| 126 | |
| 127 | } // namespace |