diff options
| author | Robert Schumacher <roschuma@microsoft.com> | 2017-08-18 20:32:35 -0700 |
|---|---|---|
| committer | Robert Schumacher <roschuma@microsoft.com> | 2017-08-18 20:32:35 -0700 |
| commit | 4d34488649fe5d71b8a553706d960a3784c56bb1 (patch) | |
| tree | 732e382d5b84bb626b1bc0eaec008592d5ed9112 /toolsrc/include/PackageSpec.h | |
| parent | aab0173509c89746f8988b000854d2ed8c9115e7 (diff) | |
| download | vcpkg-4d34488649fe5d71b8a553706d960a3784c56bb1.tar.gz vcpkg-4d34488649fe5d71b8a553706d960a3784c56bb1.zip | |
[vcpkg] Consolidate specifier parsing
Diffstat (limited to 'toolsrc/include/PackageSpec.h')
| -rw-r--r-- | toolsrc/include/PackageSpec.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/toolsrc/include/PackageSpec.h b/toolsrc/include/PackageSpec.h index 15b5e5b9b..77a14e90e 100644 --- a/toolsrc/include/PackageSpec.h +++ b/toolsrc/include/PackageSpec.h @@ -6,6 +6,15 @@ namespace vcpkg { + struct ParsedSpecifier + { + std::string name; + std::vector<std::string> features; + std::string triplet; + + static ExpectedT<ParsedSpecifier, PackageSpecParseResult> from_string(const std::string& input); + }; + struct PackageSpec { static std::string to_string(const std::string& name, const Triplet& triplet); |
