diff options
| author | Alexander Karatarakis <alkarata@microsoft.com> | 2016-11-07 16:06:36 -0800 |
|---|---|---|
| committer | Alexander Karatarakis <alkarata@microsoft.com> | 2016-11-07 16:06:36 -0800 |
| commit | a721db2c1fbfc1b87065b0b43e32249117e53242 (patch) | |
| tree | 1b0a928249499fe6aefd08261ef9b46186d348c6 /toolsrc/include | |
| parent | 8e9338e4a00b44fd7721d8c6866c72d1502c3f97 (diff) | |
| download | vcpkg-a721db2c1fbfc1b87065b0b43e32249117e53242.tar.gz vcpkg-a721db2c1fbfc1b87065b0b43e32249117e53242.zip | |
Refactor: create new Paragraphs.h/cpp
Diffstat (limited to 'toolsrc/include')
| -rw-r--r-- | toolsrc/include/Paragraphs.h | 11 | ||||
| -rw-r--r-- | toolsrc/include/vcpkg.h | 2 |
2 files changed, 11 insertions, 2 deletions
diff --git a/toolsrc/include/Paragraphs.h b/toolsrc/include/Paragraphs.h new file mode 100644 index 000000000..22aaefe98 --- /dev/null +++ b/toolsrc/include/Paragraphs.h @@ -0,0 +1,11 @@ +#pragma once + +#include <filesystem> +#include <unordered_map> + +namespace vcpkg { namespace Paragraphs +{ + namespace fs = std::tr2::sys; + std::vector<std::unordered_map<std::string, std::string>> get_paragraphs(const fs::path& control_path); + std::vector<std::unordered_map<std::string, std::string>> parse_paragraphs(const std::string& str); +}} diff --git a/toolsrc/include/vcpkg.h b/toolsrc/include/vcpkg.h index dc5933f10..1715a40a5 100644 --- a/toolsrc/include/vcpkg.h +++ b/toolsrc/include/vcpkg.h @@ -14,8 +14,6 @@ namespace vcpkg extern bool g_do_dry_run; - std::vector<std::unordered_map<std::string, std::string>> get_paragraphs(const fs::path& control_path); - std::vector<std::unordered_map<std::string, std::string>> parse_paragraphs(const std::string& str); std::string shorten_description(const std::string& desc); StatusParagraphs database_load_check(const vcpkg_paths& paths); |
