boost::urls::url_view_base::zone_id
Return the IPv6 Zone ID
Synopsis
Declared in <boost/url/url_view_base.hpp>
template<string_token::StringToken StringToken = string_token::return_string>
StringToken::result_type
zone_id(StringToken&& token = {});
Description
If the host type is host_type::ipv6
, this function returns the Zone ID as a string. Otherwise an empty string is returned. Any percent‐escapes in the string are decoded first.
BNF
host = IP-literal / IPv4address / reg-name
IP-literal = "[" ( IPv6address / IPv6addrz / IPvFuture ) "]"
ZoneID = 1*( unreserved / pct-encoded )
IPv6addrz = IPv6address "%25" ZoneID
Parameters
Name |
Description |
token |
A string token customization. |
Created with MrDocs