1
0
Fork 0
mirror of https://github.com/NixOS/nix synced 2025-06-28 22:01:15 +02:00

Extract and expose splitUriAndParams function

which splits a URL into localtor and parameter parts
This commit is contained in:
Dzmitry Zaitsau 2019-02-21 11:44:25 +01:00
parent 6bfb082ea2
commit 07f992a74b
2 changed files with 16 additions and 4 deletions

View file

@ -798,4 +798,8 @@ ValidPathInfo decodeValidPathInfo(std::istream & str,
for paths created by makeFixedOutputPath() / addToStore(). */
std::string makeFixedOutputCA(bool recursive, const Hash & hash);
/* Split URI into protocol+hierarchy part and its parameter set. */
std::pair<std::string, Store::Params> splitUriAndParams(const std::string & uri);
}