uri: add pq convenience query
This commit is contained in:
parent
2e645cc82d
commit
cd42dc11b1
13
uri.hpp
13
uri.hpp
@ -97,16 +97,19 @@ namespace cruft {
|
|||||||
std::string_view heirarchical (void) const&; //{ return { user ().begin (), path ().end () }; }
|
std::string_view heirarchical (void) const&; //{ return { user ().begin (), path ().end () }; }
|
||||||
std::string_view authority (void) const&; //{ return { user ().begin (), port ().end () }; }
|
std::string_view authority (void) const&; //{ return { user ().begin (), port ().end () }; }
|
||||||
|
|
||||||
|
std::string_view pq (void) const&
|
||||||
|
{
|
||||||
|
return {
|
||||||
|
m_views[PATH].begin (),
|
||||||
|
m_views[QUERY].end ()
|
||||||
|
};
|
||||||
|
}
|
||||||
|
|
||||||
std::string_view
|
std::string_view
|
||||||
pqf (void) const& {
|
pqf (void) const& {
|
||||||
return {
|
return {
|
||||||
m_views[PATH].begin (),
|
|
||||||
std::size_t (
|
|
||||||
std::distance (
|
|
||||||
m_views[PATH].begin (),
|
m_views[PATH].begin (),
|
||||||
m_views[FRAGMENT].end ()
|
m_views[FRAGMENT].end ()
|
||||||
)
|
|
||||||
)
|
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user