Home | History | Annotate | Download | only in src

Lines Matching refs:URLComponent

40 #include "URLComponent.h"
64 static void parseAuthority(const CHAR* spec, const URLComponent& auth, URLComponent& username, URLComponent& password, URLComponent& host, URLComponent& port)
84 parseUserInfo(spec, URLComponent(auth.begin(), i - auth.begin()), username, password);
85 parseServerInfo(spec, URLComponent::fromRange(i + 1, auth.begin() + auth.length()), host, port);
94 static bool extractScheme(const CHAR* spec, int specLength, URLComponent& scheme)
106 scheme = URLComponent::fromRange(begin, i);
126 URLComponent authority;
127 URLComponent fullPath;
134 authority = URLComponent(afterSlashes, authEnd - afterSlashes);
137 fullPath = URLComponent();
139 fullPath = URLComponent(authEnd, specLength - authEnd);
169 static void parsePath(const CHAR* spec, const URLComponent& path, URLComponent& filepath, URLComponent& query, URLComponent& fragment)
211 fragment = URLComponent::fromRange(refSeparator + 1, pathEnd);
222 query = URLComponent::fromRange(querySeparator + 1, queryEnd);
228 filepath = URLComponent::fromRange(path.begin(), fileEnd);
271 parsed.path = URLComponent::fromRange(parsed.scheme.end() + 1, specLength);
275 parsed.path = URLComponent::fromRange(begin, specLength);
327 parsed.query = URLComponent::fromRange(i + 1, pathEnd);
338 parsed.path = URLComponent::fromRange(pathBegin, pathEnd);
341 static int parsePort(const CHAR* spec, const URLComponent& component)
348 URLComponent nonZeroDigits(component.end(), 0);
351 nonZeroDigits = URLComponent::fromRange(component.begin() + i, component.end());
374 static void extractFileName(const CHAR* spec, const URLComponent& path, URLComponent& fileName)
399 fileName = URLComponent::fromRange(i + 1, fileEnd);
406 fileName = URLComponent::fromRange(path.begin(), fileEnd);
409 static bool extractQueryKeyValue(const CHAR* spec, URLComponent& query, URLComponent& key, URLComponent& value)
440 query = URLComponent::fromRange(current, end);
507 static void parseUserInfo(const CHAR* spec, const URLComponent& user, URLComponent& username, URLComponent& password)
517 username = URLComponent(user.begin(), colonOffset);
518 password = URLComponent::fromRange(user.begin() + colonOffset + 1, user.begin() + user.length());
522 password = URLComponent();
526 static void parseServerInfo(const CHAR* spec, const URLComponent& serverInfo, URLComponent& host, URLComponent& port)
561 host = URLComponent::fromRange(serverInfo.begin(), colon);
564 port = URLComponent::fromRange(colon + 1, serverInfo.end());