2016-09-18 20:50:08 -07:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include <unordered_map>
|
|
|
|
|
2017-01-05 14:25:50 -08:00
|
|
|
namespace vcpkg::details
|
2016-09-18 20:50:08 -07:00
|
|
|
{
|
2016-09-26 21:12:04 -07:00
|
|
|
std::string optional_field(const std::unordered_map<std::string, std::string>& fields, const std::string& fieldname);
|
2016-11-02 20:26:52 -07:00
|
|
|
std::string remove_optional_field(std::unordered_map<std::string, std::string>* fields, const std::string& fieldname);
|
2016-09-18 20:50:08 -07:00
|
|
|
|
2016-09-26 21:12:04 -07:00
|
|
|
std::string required_field(const std::unordered_map<std::string, std::string>& fields, const std::string& fieldname);
|
2016-11-02 20:26:52 -07:00
|
|
|
std::string remove_required_field(std::unordered_map<std::string, std::string>* fields, const std::string& fieldname);
|
2016-11-07 17:37:08 -08:00
|
|
|
|
|
|
|
std::string shorten_description(const std::string& desc);
|
2017-01-05 14:25:50 -08:00
|
|
|
}
|