#pragma once #include #include #include #include namespace vcpkg::Paragraphs { using Paragraph = Parse::Paragraph; ExpectedS get_single_paragraph(const Files::Filesystem& fs, const fs::path& control_path); ExpectedS> get_paragraphs(const Files::Filesystem& fs, const fs::path& control_path); ExpectedS> parse_paragraphs(const std::string& str, const std::string& origin); Parse::ParseExpected try_load_port(const Files::Filesystem& fs, const fs::path& control_path); ExpectedS try_load_cached_package(const VcpkgPaths& paths, const PackageSpec& spec); struct LoadResults { std::vector> paragraphs; std::vector> errors; }; LoadResults try_load_all_ports(const Files::Filesystem& fs, const fs::path& ports_dir); std::vector> load_all_ports(const Files::Filesystem& fs, const fs::path& ports_dir); }