Lines Matching refs:url_path
47 std::string decode_ampersands(std::string const& url_path) { in decode_ampersands() argument
50 result.reserve(url_path.length()); in decode_ampersands()
52 while((next = url_path.find('&', pos)) != std::string::npos) { in decode_ampersands()
53 result.append(url_path, pos, next - pos); in decode_ampersands()
55 if(url_path.substr(pos, 5) == "&") { in decode_ampersands()
64 result.append(url_path, pos, url_path.length()); in decode_ampersands()
70 std::string decode_percents(std::string const& url_path) { in decode_percents() argument
73 result.reserve(url_path.length()); in decode_percents()
75 while((next = url_path.find('%', pos)) != std::string::npos) { in decode_percents()
76 result.append(url_path, pos, next - pos); in decode_percents()
78 switch(url_path[pos]) { in decode_percents()
80 if(url_path.length() - next < 3) return ""; in decode_percents()
81 char hex[3] = { url_path[next + 1], url_path[next + 2], '\0' }; in decode_percents()
91 result.append(url_path, pos, url_path.length()); in decode_percents()
292 url_path(m[5]), in do_url() local
375 else if ( !no_link_errors && url_path.empty() && !fragment.empty() in do_url()
387 if(url_path.empty()) return; in do_url()
400 if(url_path.empty()) { in do_url()
410 string decoded_path = decode_percents(url_path); in do_url()