Searched refs:colon_offset (Results 1 – 3 of 3) sorted by relevance
72 int colon_offset = 0; in ParseUserInfo() local73 while (colon_offset < user.len && spec[user.begin + colon_offset] != ':') in ParseUserInfo()74 colon_offset++; in ParseUserInfo()76 if (colon_offset < user.len) { in ParseUserInfo()78 *username = Component(user.begin, colon_offset); in ParseUserInfo()79 *password = MakeRange(user.begin + colon_offset + 1, user.begin + user.len); in ParseUserInfo()
93 size_t colon_offset = hostname_and_port.find_last_of(':'); in SplitHostPort() local99 colon_offset != std::string::npos && bracket_offset > colon_offset) { in SplitHostPort()100 colon_offset = std::string::npos; in SplitHostPort()103 if (colon_offset == std::string::npos) { in SplitHostPort()107 *out_hostname = hostname_and_port.substr(0, colon_offset); in SplitHostPort()108 *out_port = hostname_and_port.substr(colon_offset + 1); in SplitHostPort()