Switch to side-by-side view

--- a/sc2src/pathut.h
+++ b/sc2src/pathut.h
@@ -1,15 +1,15 @@
 /* Copyright (C) 2004 J.F.Dockes
  *   This program is free software; you can redistribute it and/or modify
- *   it under the terms of the GNU General Public License as published by
- *   the Free Software Foundation; either version 2 of the License, or
+ *   it under the terms of the GNU Lesser General Public License as published by
+ *   the Free Software Foundation; either version 2.1 of the License, or
  *   (at your option) any later version.
  *
  *   This program is distributed in the hope that it will be useful,
  *   but WITHOUT ANY WARRANTY; without even the implied warranty of
  *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
- *   GNU General Public License for more details.
+ *   GNU Lesser General Public License for more details.
  *
- *   You should have received a copy of the GNU General Public License
+ *   You should have received a copy of the GNU Lesser General Public License
  *   along with this program; if not, write to the
  *   Free Software Foundation, Inc.,
  *   59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
@@ -120,6 +120,22 @@
 /// Turn absolute path into file:// url
 extern std::string path_pathtofileurl(const std::string& path);
 
+/// URI parser, loosely from rfc2396.txt
+class ParsedUri {
+public:
+    ParsedUri(std::string uri);
+    bool parsed{false};
+    std::string scheme;
+    std::string user;
+    std::string pass;
+    std::string host;
+    std::string port;
+    std::string path;
+    std::string query;
+    std::vector<std::pair<std::string,std::string>> parsedquery;
+    std::string fragment;
+};
+
 #ifdef _WIN32
 /// Convert \ separators to /
 void path_slashize(std::string& s);