#pragma once #include "filesystem_fs.h" #include #include "expected.h" #include "BinaryParagraph.h" #include "vcpkg_paths.h" namespace vcpkg::Paragraphs { std::vector> get_paragraphs(const fs::path& control_path); std::vector> parse_paragraphs(const std::string& str); expected try_load_port(const fs::path& control_path); expected try_load_cached_package(const vcpkg_paths& paths, const package_spec& spec); std::vector load_all_ports(const fs::path& ports_dir); std::map extract_port_names_and_versions(const std::vector& source_paragraphs); }