Lines Matching refs:string
8 #include <string>
22 BRILLO_EXPORT std::string Combine(
23 const std::string& url,
24 const std::string& subpath) WARN_UNUSED_RESULT;
25 BRILLO_EXPORT std::string CombineMultiple(
26 const std::string& url,
27 const std::vector<std::string>& parts) WARN_UNUSED_RESULT;
29 // Removes the query string/fragment from |url| and returns the query string.
33 BRILLO_EXPORT std::string TrimOffQueryString(std::string* url);
35 // Returns the query string, if available.
40 // ?k=v&foo=bar - URL query string
41 // #fragment - URL fragment string
42 // If |remove_fragment| is true, the function returns the query string without
44 BRILLO_EXPORT std::string GetQueryString(const std::string& url,
47 // Parses the query string into a set of key-value pairs.
49 const std::string& url);
51 // Returns a value of the specified query parameter, or empty string if missing.
52 BRILLO_EXPORT std::string GetQueryStringValue(
53 const std::string& url,
54 const std::string& name);
55 BRILLO_EXPORT std::string GetQueryStringValue(
57 const std::string& name);
59 // Removes the query string and/or a fragment part from URL.
65 BRILLO_EXPORT std::string RemoveQueryString(
66 const std::string& url,
70 BRILLO_EXPORT std::string AppendQueryParam(
71 const std::string& url,
72 const std::string& name,
73 const std::string& value) WARN_UNUSED_RESULT;
75 BRILLO_EXPORT std::string AppendQueryParams(
76 const std::string& url,
80 BRILLO_EXPORT bool HasQueryString(const std::string& url);