Lines Matching refs:path_

41 …GenericUri(Allocator* allocator = 0) : uri_(), base_(), scheme_(), auth_(), path_(), query_(), fra…  in uri_()
44 …ype len, Allocator* allocator = 0) : uri_(), base_(), scheme_(), auth_(), path_(), query_(), frag_… in uri_()
48 …Ch* uri, Allocator* allocator = 0) : uri_(), base_(), scheme_(), auth_(), path_(), query_(), frag_… in uri_()
53 … T& uri, Allocator* allocator = 0) : uri_(), base_(), scheme_(), auth_(), path_(), query_(), frag_… in uri_()
59 …ng& uri, Allocator* allocator = 0) : uri_(), base_(), scheme_(), auth_(), path_(), query_(), frag_… in uri_()
65 …GenericUri(const GenericUri& rhs) : uri_(), base_(), scheme_(), auth_(), path_(), query_(), frag_(… in GenericUri()
70 …ricUri& rhs, Allocator* allocator) : uri_(), base_(), scheme_(), auth_(), path_(), query_(), frag_… in GenericUri()
87 path_ = CopyPart(auth_, rhs.auth_, rhs.GetAuthStringLength());
88 query_ = CopyPart(path_, rhs.path_, rhs.GetPathStringLength());
111 const Ch* GetPathString() const { return path_; } in GetPathString()
112 SizeType GetPathStringLength() const { return path_ == 0 ? 0 : internal::StrLen<Ch>(path_); } in GetPathStringLength()
165 resuri.path_ = CopyPart(resuri.auth_, auth_, GetAuthStringLength());
166 resuri.query_ = CopyPart(resuri.path_, path_, GetPathStringLength());
174 resuri.path_ = CopyPart(resuri.auth_, auth_, GetAuthStringLength());
175 resuri.query_ = CopyPart(resuri.path_, path_, GetPathStringLength());
180 resuri.path_ = CopyPart(resuri.auth_, baseuri.auth_, baseuri.GetAuthStringLength());
183 … resuri.query_ = CopyPart(resuri.path_, baseuri.path_, baseuri.GetPathStringLength());
192 if (path_[0] == '/') {
194 resuri.query_ = CopyPart(resuri.path_, path_, GetPathStringLength());
200 resuri.path_[pos] = '/';
205 if (baseuri.path_[lastslashpos - 1] == '/') break;
208 std::memcpy(&resuri.path_[pos], baseuri.path_, lastslashpos * sizeof(Ch));
210 resuri.query_ = CopyPart(&resuri.path_[pos], path_, GetPathStringLength());
248 path_ = auth_; in Allocate()
249 path_++; in Allocate()
250 *path_ = '\0'; in Allocate()
251 query_ = path_; in Allocate()
321 path_ = auth_ + GetAuthStringLength(); in Parse()
322 path_++; in Parse()
323 *path_ = '\0'; in Parse()
332 std::memcpy(path_, &uri[start], (pos2 - start) * sizeof(Ch)); in Parse()
333 path_[pos2 - start] = '\0'; in Parse()
334 if (path_[0] == '/') in Parse()
341 query_ = path_ + GetPathStringLength(); in Parse()
380 std::memcpy(next, path_, GetPathStringLength() * sizeof(Ch)); in SetBase()
421 if (path_[pathpos + slashpos] == '/') break; in RemoveDotSegments()
425 if (slashpos == 2 && path_[pathpos] == '.' && path_[pathpos + 1] == '.') { in RemoveDotSegments()
428 RAPIDJSON_ASSERT(newpos == 0 || path_[newpos - 1] == '/'); in RemoveDotSegments()
435 if (path_[lastslashpos - 1] == '/') break; in RemoveDotSegments()
441 } else if (slashpos == 1 && path_[pathpos] == '.') { in RemoveDotSegments()
446 std::memmove(&path_[newpos], &path_[pathpos], slashpos * sizeof(Ch)); in RemoveDotSegments()
450 path_[newpos] = '/'; in RemoveDotSegments()
457 path_[newpos] = '\0'; in RemoveDotSegments()
464 Ch* path_; // Absolute if starts with / variable