Files
libart-seafire-routing/art/seafire/routing/match.hxx

30 lines
589 B
C++
Raw Normal View History

2025-10-18 00:44:28 +02:00
#ifndef art__seafire__routing__match_hxx_
#define art__seafire__routing__match_hxx_
#include <art/seafire/routing/parameters.hxx>
2026-01-15 08:46:12 +01:00
#include <functional>
#include <map>
2025-10-18 00:44:28 +02:00
#include <string>
namespace art::seafire::routing
{
2026-01-15 08:46:12 +01:00
using validator_t = std::function<bool(std::string const&)>;
using validator_map_t = std::map<std::string, validator_t>;
2025-10-18 00:44:28 +02:00
bool
match(std::string const&,
std::string const&,
2026-01-15 08:46:12 +01:00
validator_map_t const&,
2025-10-18 00:44:28 +02:00
char,
parameters_t&);
std::string
render(std::string const&, parameters_t&);
} // namespace art::seafire::routing
#endif