Lines Matching refs:Ch

35     typedef typename ValueType::Ch Ch;  typedef
37 typedef std::basic_string<Ch> String;
44 …GenericUri(const Ch* uri, SizeType len, Allocator* allocator = 0) : uri_(), base_(), scheme_(), au… 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_()
54 const Ch* u = uri.template Get<const Ch*>(); // TypeHelper from document.h in uri_()
55 Parse(u, internal::StrLen<Ch>(u)); in uri_()
60 Parse(uri.c_str(), internal::StrLen<Ch>(uri.c_str())); in uri_()
100 uri.template Set<const Ch*>(this->GetString(), allocator); // TypeHelper from document.h in Get()
103 const Ch* GetString() const { return uri_; } in GetString()
104 SizeType GetStringLength() const { return uri_ == 0 ? 0 : internal::StrLen<Ch>(uri_); } in GetStringLength()
105 const Ch* GetBaseString() const { return base_; } in GetBaseString()
106 SizeType GetBaseStringLength() const { return base_ == 0 ? 0 : internal::StrLen<Ch>(base_); } in GetBaseStringLength()
107 const Ch* GetSchemeString() const { return scheme_; } in GetSchemeString()
108 …SizeType GetSchemeStringLength() const { return scheme_ == 0 ? 0 : internal::StrLen<Ch>(scheme_); } in GetSchemeStringLength()
109 const Ch* GetAuthString() const { return auth_; } in GetAuthString()
110 SizeType GetAuthStringLength() const { return auth_ == 0 ? 0 : internal::StrLen<Ch>(auth_); } in GetAuthStringLength()
111 const Ch* GetPathString() const { return path_; } in GetPathString()
112 SizeType GetPathStringLength() const { return path_ == 0 ? 0 : internal::StrLen<Ch>(path_); } in GetPathStringLength()
113 const Ch* GetQueryString() const { return query_; } in GetQueryString()
114 SizeType GetQueryStringLength() const { return query_ == 0 ? 0 : internal::StrLen<Ch>(query_); } in GetQueryStringLength()
115 const Ch* GetFragString() const { return frag_; } in GetFragString()
116 SizeType GetFragStringLength() const { return frag_ == 0 ? 0 : internal::StrLen<Ch>(frag_); } in GetFragStringLength()
138 Ch* s1;
139 Ch* s2;
149 return internal::StrCmp<Ch>(s1, s2) == 0;
208 std::memcpy(&resuri.path_[pos], baseuri.path_, lastslashpos * sizeof(Ch));
242 size_t total = (3 * len + 7) * sizeof(Ch); in Allocate()
243 scheme_ = static_cast<Ch*>(allocator_->Malloc(total)); in Allocate()
277 void Parse(const Ch* uri, std::size_t len) { in Parse()
296 std::memcpy(scheme_, &uri[start], pos1 * sizeof(Ch)); in Parse()
315 std::memcpy(auth_, &uri[start], (pos2 - start) * sizeof(Ch)); in Parse()
332 std::memcpy(path_, &uri[start], (pos2 - start) * sizeof(Ch)); in Parse()
351 std::memcpy(query_, &uri[start], (pos2 - start) * sizeof(Ch)); in Parse()
362 std::memcpy(frag_, &uri[start], (len - start) * sizeof(Ch)); in Parse()
375 Ch* next = base_; in SetBase()
376 std::memcpy(next, scheme_, GetSchemeStringLength() * sizeof(Ch)); in SetBase()
378 std::memcpy(next, auth_, GetAuthStringLength() * sizeof(Ch)); in SetBase()
380 std::memcpy(next, path_, GetPathStringLength() * sizeof(Ch)); in SetBase()
382 std::memcpy(next, query_, GetQueryStringLength() * sizeof(Ch)); in SetBase()
389 Ch* next = uri_; in SetUri()
390 std::memcpy(next, base_, GetBaseStringLength() * sizeof(Ch)); in SetUri()
392 std::memcpy(next, frag_, GetFragStringLength() * sizeof(Ch)); in SetUri()
399 Ch* CopyPart(Ch* to, Ch* from, std::size_t len) { in CopyPart()
402 std::memcpy(to, from, len * sizeof(Ch)); in CopyPart()
404 Ch* next = to + len + 1; in CopyPart()
446 std::memmove(&path_[newpos], &path_[pathpos], slashpos * sizeof(Ch)); in RemoveDotSegments()
460 Ch* uri_; // Everything
461 Ch* base_; // Everything except fragment
462 Ch* scheme_; // Includes the :
463 Ch* auth_; // Includes the //
464 Ch* path_; // Absolute if starts with /
465 Ch* query_; // Includes the ?
466 Ch* frag_; // Includes the #