aboutsummaryrefslogtreecommitdiff
path: root/toolsrc/include/Paragraphs.h
diff options
context:
space:
mode:
authorAlexander Karatarakis <alkarata@microsoft.com>2017-03-24 10:46:49 -0700
committerAlexander Karatarakis <alkarata@microsoft.com>2017-03-27 12:43:14 -0700
commitd2bab3c370fca9fa5216d97495810faaeeaebc2d (patch)
tree205fd2130c93e9fe40975a271dd11381b562fead /toolsrc/include/Paragraphs.h
parent90bb4a2eeb316fbc5055d507044229cbc8bc5337 (diff)
downloadvcpkg-d2bab3c370fca9fa5216d97495810faaeeaebc2d.tar.gz
vcpkg-d2bab3c370fca9fa5216d97495810faaeeaebc2d.zip
Rework Paragraph parsing error handling. Add single paragraph functions
Diffstat (limited to 'toolsrc/include/Paragraphs.h')
-rw-r--r--toolsrc/include/Paragraphs.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/toolsrc/include/Paragraphs.h b/toolsrc/include/Paragraphs.h
index 79b66a67f..74f8218ca 100644
--- a/toolsrc/include/Paragraphs.h
+++ b/toolsrc/include/Paragraphs.h
@@ -8,8 +8,10 @@
namespace vcpkg::Paragraphs
{
- 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);
+ expected<std::unordered_map<std::string, std::string>> get_single_paragraph(const fs::path& control_path);
+ expected<std::vector<std::unordered_map<std::string, std::string>>> get_paragraphs(const fs::path& control_path);
+ expected<std::unordered_map<std::string, std::string>> parse_single_paragraph(const std::string& str);
+ expected<std::vector<std::unordered_map<std::string, std::string>>> parse_paragraphs(const std::string& str);
expected<SourceParagraph> try_load_port(const fs::path& control_path);