Disable std::regex use for older gcc versions

This commit is contained in:
Jean-Francois Dockes
2021-08-13 21:38:12 +02:00
parent f91185fd53
commit ce0352eff4
4 changed files with 23 additions and 0 deletions
+2
View File
@@ -1210,6 +1210,7 @@ bool urlisfileurl(const string& url)
return url.find("file://") == 0;
}
#ifndef NO_STD_REGEX
static std::regex
re_uriparse("^(([^:/?#]+):)?(//([^/?#]*))?([^?#]*)(\\?([^#]*))?(#(.*))?",
std::regex::extended);
@@ -1299,6 +1300,7 @@ ParsedUri::ParsedUri(std::string uri)
fragment = mr[9].str();
}
}
#endif // NO_STD_REGEX
/// Directory reading interface. UTF-8 on Windows.
class PathDirContents::Internal {