MCPcopy Create free account
hub / github.com/apache/trafficserver / operator[]

Method operator[]

src/cripts/Urls.cc:139–151  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

137}
138
139Url::Path::String
140Url::Path::operator[](Segments::size_type ix)
141{
142 Url::Path::String ret;
143
144 _ensure_initialized(_owner);
145 _parser(); // Make sure the segments are loaded
146 if (ix < _segments.size()) {
147 ret._initialize(_segments[ix], this, ix);
148 }
149
150 return ret; // RVO
151}
152
153Url::Path
154Url::Path::operator=(cripts::string_view path)

Callers

nothing calls this directly

Calls 4

sizeMethod · 0.45
_initializeMethod · 0.45
findMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected