Lines Matching defs:in_str
97 // |in_str| should be of format
106 bool GetServiceTypeAndHostnameFromUri(const std::string& in_str,
109 std::string::size_type colonpos = in_str.find(':');
113 std::string type = in_str.substr(0, colonpos);
123 *hostname = in_str.substr(colonpos + 1, std::string::npos);
132 bool ParseHostnameAndPortFromString(const std::string& in_str,
135 if (in_str.at(0) == '[') {
136 std::string::size_type closebracket = in_str.rfind(']');
138 *host = in_str.substr(1, closebracket - 1);
139 std::string::size_type colonpos = in_str.find(':', closebracket);
142 in_str.substr(closebracket + 2, std::string::npos), port)) {
150 std::string::size_type colonpos = in_str.find(':');
152 *host = in_str.substr(0, colonpos);
154 in_str.substr(colonpos + 1, std::string::npos), port)) {
158 *host = in_str;