vcpkg/toolsrc/include/vcpkglib_helpers.h

15 lines
623 B
C
Raw Normal View History

2016-09-19 11:50:08 +08:00
#pragma once
#include <unordered_map>
2017-01-06 06:25:50 +08:00
namespace vcpkg::details
2016-09-19 11:50:08 +08:00
{
std::string optional_field(const std::unordered_map<std::string, std::string>& fields, const std::string& fieldname);
std::string remove_optional_field(std::unordered_map<std::string, std::string>* fields, const std::string& fieldname);
2016-09-19 11:50:08 +08:00
std::string required_field(const std::unordered_map<std::string, std::string>& fields, const std::string& fieldname);
std::string remove_required_field(std::unordered_map<std::string, std::string>* fields, const std::string& fieldname);
std::string shorten_description(const std::string& desc);
2017-01-06 06:25:50 +08:00
}