#ifndef SERVER_URL_PARSER_HPP #define SERVER_URL_PARSER_HPP #include "server/api/parsed_url.hpp" #include #include namespace osrm { namespace server { namespace api { // Starts parsing and iter and modifies it until iter == end or parsing failed boost::optional parseURL(std::string::iterator &iter, const std::string::iterator end); inline boost::optional parseURL(std::string url_string) { auto iter = url_string.begin(); return parseURL(iter, url_string.end()); } } } } #endif