Lines Matching defs:pos
89 size_t pos = data_.find('#'); // Fragment
90 if (pos != std::string::npos) {
91 AnalysisFragment(pos);
96 pos = data_.find('?'); // Query
97 if (pos != std::string::npos) {
98 AnalysisQuery(pos);
103 pos = data_.find(':'); // Scheme
104 if (pos != std::string::npos) {
105 AnalysisScheme(pos);
117 pos = data_.find("//"); // userInfo path host port ipv4 or ipv6
118 if (pos != std::string::npos && pos == 0) {
162 void Uri::AnalysisFragment(size_t pos)
164 if (pos == 0) {
168 std::string fragment = data_.substr(pos + 1);
174 data_ = data_.substr(0, pos);
177 void Uri::AnalysisQuery(size_t pos)
179 std::string query = data_.substr(pos + 1);
185 data_ = data_.substr(0, pos);
188 void Uri::AnalysisScheme(size_t pos)
191 if (slashPos != std::string::npos && slashPos < pos) {
204 std::string scheme = data_.substr(0, pos);
210 data_ = data_.substr(pos + 1);
249 size_t pos = data_.find('/');
250 if (pos != std::string::npos) {
251 AnalysisPath(pos);
258 pos = data_.find('@');
259 if (pos != std::string::npos) {
260 AnalysisUserInfo(pos);
267 pos = data_.rfind(':');
268 if (pos != std::string::npos) {
270 if (pos1 == std::string::npos || pos > pos1) {
271 isLawfulProt = AnalysisPort(pos);
280 void Uri::AnalysisPath(size_t pos)
282 std::string path = data_.substr(pos);
288 data_ = data_.substr(0, pos);
291 void Uri::AnalysisUserInfo(size_t pos)
293 std::string userInfo = data_.substr(0, pos);
299 data_ = data_.substr(pos + 1);
302 bool Uri::AnalysisPort(size_t pos)
304 std::string port = data_.substr(pos + 1);
317 data_ = data_.substr(0, pos);
320 data_ = data_.substr(0, pos);
510 size_t pos = 0;
512 while ((pos = uriData_.path.find('/', left)) != std::string::npos) {
513 temp.push_back(uriData_.path.substr(left, pos - left));
514 left = pos + 1;