Lines Matching refs:string
19 #include <string>
55 static auto& kLocalSocketTypes = *new std::unordered_map<std::string, LocalSocketType>({
67 bool parse_tcp_socket_spec(const std::string& spec, std::string* hostname, int* port,
68 std::string* error) {
74 std::string hostname_value;
87 std::string addr = spec.substr(4);
113 static bool tcp_host_is_local(const std::string& hostname) {
118 bool is_socket_spec(const std::string& spec) {
120 std::string prefix = it.first + ":";
128 bool is_local_socket_spec(const std::string& spec) {
130 std::string prefix = it.first + ":";
136 std::string error;
137 std::string hostname;
144 int socket_spec_connect(const std::string& spec, std::string* error) {
146 std::string hostname;
172 std::string prefix = it.first + ":";
189 int socket_spec_listen(const std::string& spec, std::string* error, int* resolved_tcp_port) {
191 std::string hostname;
215 std::string prefix = it.first + ":";