Lines Matching refs:spec

43 parse_connection_spec_without_prefix (std::string spec, struct addrinfo *hint)  in parse_connection_spec_without_prefix()  argument
55 && (spec[0] == '[' in parse_connection_spec_without_prefix()
56 || std::count (spec.begin (), in parse_connection_spec_without_prefix()
57 spec.end (), ':') > 1))); in parse_connection_spec_without_prefix()
61 if (spec[0] == '[') in parse_connection_spec_without_prefix()
65 size_t close_bracket_pos = spec.find_first_of (']'); in parse_connection_spec_without_prefix()
69 spec.c_str ()); in parse_connection_spec_without_prefix()
73 const char c = spec[close_bracket_pos + 1]; in parse_connection_spec_without_prefix()
79 spec.c_str ()); in parse_connection_spec_without_prefix()
82 spec.erase (0, 1); in parse_connection_spec_without_prefix()
83 spec.erase (close_bracket_pos - 1, 1); in parse_connection_spec_without_prefix()
85 else if (spec.find_first_of (']') != std::string::npos) in parse_connection_spec_without_prefix()
87 spec.c_str ()); in parse_connection_spec_without_prefix()
91 last_colon_pos = spec.find_last_of (':'); in parse_connection_spec_without_prefix()
100 ret.port_str = spec.substr (last_colon_pos + 1); in parse_connection_spec_without_prefix()
103 host_len = spec.size (); in parse_connection_spec_without_prefix()
105 ret.host_str = spec.substr (0, host_len); in parse_connection_spec_without_prefix()
117 parse_connection_spec (const char *spec, struct addrinfo *hint) in parse_connection_spec() argument
143 if (startswith (spec, prefix.prefix)) in parse_connection_spec()
145 spec += strlen (prefix.prefix); in parse_connection_spec()
153 return parse_connection_spec_without_prefix (spec, hint); in parse_connection_spec()