aboutsummaryrefslogtreecommitdiff
path: root/toolsrc/src/lib.cpp
diff options
context:
space:
mode:
authorAlexander Karatarakis <alkarata@microsoft.com>2016-11-07 16:06:36 -0800
committerAlexander Karatarakis <alkarata@microsoft.com>2016-11-07 16:06:36 -0800
commita721db2c1fbfc1b87065b0b43e32249117e53242 (patch)
tree1b0a928249499fe6aefd08261ef9b46186d348c6 /toolsrc/src/lib.cpp
parent8e9338e4a00b44fd7721d8c6866c72d1502c3f97 (diff)
downloadvcpkg-a721db2c1fbfc1b87065b0b43e32249117e53242.tar.gz
vcpkg-a721db2c1fbfc1b87065b0b43e32249117e53242.zip
Refactor: create new Paragraphs.h/cpp
Diffstat (limited to 'toolsrc/src/lib.cpp')
-rw-r--r--toolsrc/src/lib.cpp9
1 files changed, 5 insertions, 4 deletions
diff --git a/toolsrc/src/lib.cpp b/toolsrc/src/lib.cpp
index 3c844ac3f..5de9f9639 100644
--- a/toolsrc/src/lib.cpp
+++ b/toolsrc/src/lib.cpp
@@ -11,6 +11,7 @@
#include <cassert>
#include "vcpkg_Files.h"
#include "vcpkg_System.h"
+#include "Paragraphs.h"
using namespace vcpkg;
@@ -51,7 +52,7 @@ static StatusParagraphs load_current_database(const fs::path& vcpkg_dir_status_f
}
auto text = Files::get_contents(vcpkg_dir_status_file).get_or_throw();
- auto pghs = parse_paragraphs(text);
+ auto pghs = Paragraphs::parse_paragraphs(text);
std::vector<std::unique_ptr<StatusParagraph>> status_pghs;
for (auto&& p : pghs)
@@ -94,7 +95,7 @@ StatusParagraphs vcpkg::database_load_check(const vcpkg_paths& paths)
continue;
auto text = Files::get_contents(b->path()).get_or_throw();
- auto pghs = parse_paragraphs(text);
+ auto pghs = Paragraphs::parse_paragraphs(text);
for (auto&& p : pghs)
{
current_status_db.insert(std::make_unique<StatusParagraph>(p));
@@ -217,7 +218,7 @@ std::vector<std::string> vcpkg::get_unmet_package_dependencies(const vcpkg_paths
std::vector<std::unordered_map<std::string, std::string>> pghs;
try
{
- pghs = parse_paragraphs(*control_contents);
+ pghs = Paragraphs::parse_paragraphs(*control_contents);
}
catch (std::runtime_error)
{
@@ -238,7 +239,7 @@ std::vector<std::string> vcpkg::get_unmet_package_build_dependencies(const vcpkg
std::vector<std::unordered_map<std::string, std::string>> pghs;
try
{
- pghs = parse_paragraphs(*control_contents);
+ pghs = Paragraphs::parse_paragraphs(*control_contents);
}
catch (std::runtime_error)
{