Lines Matching refs:uri

44 …GenericUri(const Ch* uri, SizeType len, Allocator* allocator = 0) : uri_(), base_(), scheme_(), au…  in uri_()
45 Parse(uri, len); in uri_()
48 …GenericUri(const Ch* uri, Allocator* allocator = 0) : uri_(), base_(), scheme_(), auth_(), path_()… in uri_()
49 Parse(uri, internal::StrLen<Ch>(uri)); in uri_()
53 …template<typename T> GenericUri(const T& uri, Allocator* allocator = 0) : uri_(), base_(), scheme_… in uri_()
54 const Ch* u = uri.template Get<const Ch*>(); // TypeHelper from document.h in uri_()
59 …GenericUri(const String& uri, Allocator* allocator = 0) : uri_(), base_(), scheme_(), auth_(), pat… in uri_()
60 Parse(uri.c_str(), internal::StrLen<Ch>(uri.c_str())); in uri_()
99 template<typename T> void Get(T& uri, Allocator& allocator) { in Get() argument
100 uri.template Set<const Ch*>(this->GetString(), allocator); // TypeHelper from document.h in Get()
119 …static String Get(const GenericUri& uri) { return String(uri.GetString(), uri.GetStringLength()); } in Get() argument
120 …static String GetBase(const GenericUri& uri) { return String(uri.GetBaseString(), uri.GetBaseStrin… in GetBase() argument
121 …static String GetScheme(const GenericUri& uri) { return String(uri.GetSchemeString(), uri.GetSchem… in GetScheme() argument
122 …static String GetAuth(const GenericUri& uri) { return String(uri.GetAuthString(), uri.GetAuthStrin… in GetAuth() argument
123 …static String GetPath(const GenericUri& uri) { return String(uri.GetPathString(), uri.GetPathStrin… in GetPath() argument
124 …static String GetQuery(const GenericUri& uri) { return String(uri.GetQueryString(), uri.GetQuerySt… in GetQuery() argument
125 …static String GetFrag(const GenericUri& uri) { return String(uri.GetFragString(), uri.GetFragStrin… in GetFrag() argument
137 bool Match(const GenericUri& uri, bool full = true) const {
142 s2 = uri.uri_;
145 s2 = uri.base_;
277 void Parse(const Ch* uri, std::size_t len) { in Parse() argument
284 if (uri[pos1] == ':') break; in Parse()
289 if (uri[pos2] == '/') break; in Parse()
290 if (uri[pos2] == '?') break; in Parse()
291 if (uri[pos2] == '#') break; in Parse()
296 std::memcpy(scheme_, &uri[start], pos1 * sizeof(Ch)); in Parse()
307 if (start < len - 1 && uri[start] == '/' && uri[start + 1] == '/') { in Parse()
310 if (uri[pos2] == '/') break; in Parse()
311 if (uri[pos2] == '?') break; in Parse()
312 if (uri[pos2] == '#') break; in Parse()
315 std::memcpy(auth_, &uri[start], (pos2 - start) * sizeof(Ch)); in Parse()
327 if (uri[pos2] == '?') break; in Parse()
328 if (uri[pos2] == '#') break; in Parse()
332 std::memcpy(path_, &uri[start], (pos2 - start) * sizeof(Ch)); in Parse()
344 if (start < len && uri[start] == '?') { in Parse()
347 if (uri[pos2] == '#') break; in Parse()
351 std::memcpy(query_, &uri[start], (pos2 - start) * sizeof(Ch)); in Parse()
361 if (start < len && uri[start] == '#') { in Parse()
362 std::memcpy(frag_, &uri[start], (len - start) * sizeof(Ch)); in Parse()