Lines Matching refs:url
13 std::string UrlUtilities::GetUrlHost(const std::string& url) {
14 size_t b = url.find("//");
19 size_t next_slash = url.find_first_of('/', b);
20 size_t next_colon = url.find_first_of(':', b);
24 return std::string(url, b, next_colon - b);
28 return std::string(url, b, next_colon - b);
30 next_slash = url.size();
33 return std::string(url, b, next_slash - b);
36 std::string UrlUtilities::GetUrlHostPath(const std::string& url) {
37 size_t b = url.find("//");
42 return std::string(url, b);
45 std::string UrlUtilities::GetUrlPath(const std::string& url) {
46 size_t b = url.find("//");
51 b = url.find("/", b);
55 size_t e = url.find("#", b+1);
57 return std::string(url, b, (e - b));
58 return std::string(url, b);