87 auto back = std::back_insert_iterator(
answer);
90 answer.append(
"\t\"protocol_end\":\"");
91 helpers::encode_json(std::to_string(
protocol_end), back);
94 answer.append(
"\t\"username_end\":\"");
95 helpers::encode_json(std::to_string(
username_end), back);
98 answer.append(
"\t\"host_start\":\"");
99 helpers::encode_json(std::to_string(
host_start), back);
102 answer.append(
"\t\"host_end\":\"");
103 helpers::encode_json(std::to_string(
host_end), back);
106 answer.append(
"\t\"port\":\"");
107 helpers::encode_json(std::to_string(
port), back);
110 answer.append(
"\t\"pathname_start\":\"");
114 answer.append(
"\t\"search_start\":\"");
115 helpers::encode_json(std::to_string(
search_start), back);
118 answer.append(
"\t\"hash_start\":\"");
119 helpers::encode_json(std::to_string(
hash_start), back);
Definitions for helper functions used within Ada.
ada_warn_unused ada::result< result_type > parse(std::string_view input, const result_type *base_url=nullptr)
bool check_offset_consistency() const noexcept
std::string to_string() const
static constexpr uint32_t omitted
Declaration for the URL Components.