Home | History | Annotate | Download | only in src

Lines Matching refs:Component

45 // Component ------------------------------------------------------------------
48 struct Component {
49 Component() : begin(0), len(-1) {}
52 Component(int b, int l) : begin(b), len(l) {}
58 // Returns true if this component is valid, meaning the length is given. Even
64 // Returns true if the given component is specified on false, the component
75 bool operator==(const Component& other) const {
79 int begin; // Byte offset in the string of this component.
80 int len; // Will be -1 if the component is unspecified.
83 // Helper that returns a component created with the given begin and ending
85 inline Component MakeRange(int begin, int end) {
86 return Component(begin, end - begin);
98 // url_parse::Component scheme;
102 // if (IsStandardScheme(url, scheme)) // Not provided by this component
104 // else if (IsFileURL(url, scheme)) // Not provided by this component
125 // Returns the length of the URL (the end of the last component).
133 // Returns the number of characters before the given component if it exists,
134 // or where the component would be if it did exist. This will return the
135 // string length if the component would be appended to the end.
139 // component. The |include_delimiter| flag controls if you want this counted
140 // as part of the component or not when the component exists.
167 Component scheme;
170 Component username;
176 Component password;
179 Component host;
182 Component port;
189 Component path;
194 Component query;
200 Component ref;
261 GURL_API bool ExtractScheme(const char* url, int url_len, Component* scheme);
262 GURL_API bool ExtractScheme(const char16* url, int url_len, Component* scheme);
269 // component is not found, it will be set to invalid.
271 const Component& auth,
272 Component* username,
273 Component* password,
274 Component* hostname,
275 Component* port_num);
277 const Component& auth,
278 Component* username,
279 Component* password,
280 Component* hostname,
281 Component* port_num);
283 // Computes the integer port value from the given port component. The port
284 // component should have been identified by one of the init functions on
290 GURL_API int ParsePort(const char* url, const Component& port);
291 GURL_API int ParsePort(const char16* url, const Component& port);
304 const Component& path,
305 Component* file_name);
307 const Component& path,
308 Component* file_name);
320 // The initial query component should not include the '?' (this is the default
326 Component* query,
327 Component* key,
328 Component* value);
330 Component* query,
331 Component* key,
332 Component* value);