Home | History | Annotate | Download | only in common

Lines Matching refs:string

9 #include <string>
80 // The <all_urls> string pattern.
84 static bool IsValidSchemeForExtensions(const std::string& scheme);
88 // Convenience to construct a URLPattern from a string. If the string is not
90 URLPattern(int valid_schemes, const std::string& pattern);
99 // Initializes this instance by parsing the provided string. Returns
103 ParseResult Parse(const std::string& pattern_str);
109 // Gets the host the pattern matches. This can be an empty string if the
111 const std::string& host() const { return host_; }
112 void SetHost(const std::string& host);
120 const std::string& path() const { return path_; }
121 void SetPath(const std::string& path);
130 bool SetScheme(const std::string& scheme);
133 const std::string& scheme() const { return scheme_; }
137 bool IsValidScheme(const std::string& scheme) const;
149 bool MatchesScheme(const std::string& test) const;
152 bool MatchesHost(const std::string& test) const;
156 bool MatchesPath(const std::string& test) const;
170 bool SetPort(const std::string& port);
171 const std::string& port() const { return port_; }
173 // Returns a string representing this instance.
174 const std::string& GetAsString() const;
205 // Get an error string for a ParseResult.
210 bool MatchesAnyScheme(const std::vector<std::string>& schemes) const;
213 bool MatchesAllSchemes(const std::vector<std::string>& schemes) const;
218 bool MatchesPortPattern(const std::string& port) const;
222 std::vector<std::string> GetExplicitSchemes() const;
233 std::string scheme_;
236 std::string host_;
243 std::string port_;
247 std::string path_;
251 std::string path_escaped_;
253 // A string representing this URLPattern.
254 mutable std::string spec_;