Switch to unified view

a/src/pathut.h b/src/pathut.h
...
...
118
extern bool path_isdesc(const std::string& top, const std::string& sub);
118
extern bool path_isdesc(const std::string& top, const std::string& sub);
119
119
120
/// Turn absolute path into file:// url
120
/// Turn absolute path into file:// url
121
extern std::string path_pathtofileurl(const std::string& path);
121
extern std::string path_pathtofileurl(const std::string& path);
122
122
123
/// URI parser, loosely from rfc2396.txt
124
class ParsedUri {
125
public:
126
    ParsedUri(std::string uri);
127
    bool parsed{false};
128
    std::string scheme;
129
    std::string user;
130
    std::string pass;
131
    std::string host;
132
    std::string port;
133
    std::string path;
134
    std::string query;
135
    std::vector<std::pair<std::string,std::string>> parsedquery;
136
    std::string fragment;
137
};
138
123
#ifdef _WIN32
139
#ifdef _WIN32
124
/// Convert \ separators to /
140
/// Convert \ separators to /
125
void path_slashize(std::string& s);
141
void path_slashize(std::string& s);
126
void path_backslashize(std::string& s);
142
void path_backslashize(std::string& s);
127
#endif
143
#endif