Lines Matching full:url
5 #include "util/url.h"
16 Url::Url(const std::string& source) { in Url() function in openscreen::Url
19 const char* url = source.c_str(); in Url() local
26 if (!ExtractScheme(url, url_length, &scheme)) { in Url()
30 if (CompareSchemeComponent(url, scheme, kFileScheme) || in Url()
31 CompareSchemeComponent(url, scheme, kFileSystemScheme) || in Url()
32 CompareSchemeComponent(url, scheme, kMailtoScheme)) { in Url()
35 } else if (IsStandard(url, scheme)) { in Url()
36 ParseStandardURL(url, url_length, &parsed); in Url()
41 ParsePathURL(url, url_length, true, &parsed); in Url()
47 scheme_ = std::string(url + parsed.scheme.begin, url + parsed.scheme.end()); in Url()
51 host_ = std::string(url + parsed.host.begin, url + parsed.host.end()); in Url()
55 int parse_result = ParsePort(url, parsed.port); in Url()
66 path_ = std::string(url + parsed.path.begin, url + parsed.path.end()); in Url()
71 query_ = std::string(url + parsed.query.begin, url + parsed.query.end()); in Url()
77 Url::Url(const Url&) = default;
79 Url::Url(Url&& other) noexcept in Url() function in openscreen::Url
93 Url::~Url() = default;
95 Url& Url::operator=(const Url&) = default;
97 Url& Url::operator=(Url&& other) { in operator =()