Lines Matching full:str

15 try_parse(struct snmp_client *sc, const char *str)  in try_parse()  argument
17 const int r = snmp_parse_server(sc, str); in try_parse()
41 const auto str = "somehost"s; variable
42 REQUIRE(try_parse(&sc, str.c_str()) == 0);
44 REQUIRE(sc.chost == str);
50 const auto str = "some.host.domain"s; variable
51 REQUIRE(try_parse(&sc, str.c_str()) == 0);
53 REQUIRE(sc.chost == str);
59 const auto str = "some-mul.host-32.domain."s; variable
60 REQUIRE(try_parse(&sc, str.c_str()) == 0);
62 REQUIRE(sc.chost == str);
68 const auto str = "foo/bar"s; variable
69 REQUIRE(try_parse(&sc, str.c_str()) == 0);
71 REQUIRE(sc.chost == str);
77 const auto str = "/foo/bar"s; variable
78 REQUIRE(try_parse(&sc, str.c_str()) == 0);
80 REQUIRE(sc.chost == str);
93 const auto str = "[" + host + "]"; variable
94 REQUIRE(try_parse(&sc, str.c_str()) == 0);
103 const auto str = "[" + host + "]"; variable
104 REQUIRE(try_parse(&sc, str.c_str()) == 0);
113 const auto str = "[" + host + "]"; variable
114 REQUIRE(try_parse(&sc, str.c_str()) == 0);
123 const auto str = "[" + host + "]"; variable
124 REQUIRE(try_parse(&sc, str.c_str()) == -1);
129 const auto str = "[" + host + "]"; variable
130 REQUIRE(try_parse(&sc, str.c_str()) == -1);
135 const auto str = "[" + host + "]"; variable
136 REQUIRE(try_parse(&sc, str.c_str()) == -1);
141 const auto str = "[" + host + "]" + "xxx"; variable
142 REQUIRE(try_parse(&sc, str.c_str()) == -1);
154 const auto str = host + ":" + port; variable
155 REQUIRE(try_parse(&sc, str.c_str()) == 0);
165 const auto str = host + ":" + port; variable
166 REQUIRE(try_parse(&sc, str.c_str()) == 0);
176 const auto str = host + ":" + port; variable
177 REQUIRE(try_parse(&sc, str.c_str()) == 0);
187 const auto str = host + ":" + port; variable
188 REQUIRE(try_parse(&sc, str.c_str()) == 0);
198 const auto str = host + ":" + port; variable
199 REQUIRE(try_parse(&sc, str.c_str()) == -1);
211 const auto str = "[" + host + "]:" + port; variable
212 REQUIRE(try_parse(&sc, str.c_str()) == 0);
222 const auto str = "[" + host + "]:" + port; variable
223 REQUIRE(try_parse(&sc, str.c_str()) == 0);
233 const auto str = "[" + host + "]:" + port; variable
234 REQUIRE(try_parse(&sc, str.c_str()) == -1);
245 const auto str = host; variable
246 REQUIRE(try_parse(&sc, str.c_str()) == 0);
255 const auto str = host; variable
256 REQUIRE(try_parse(&sc, str.c_str()) == 0);
265 const auto str = host; variable
266 REQUIRE(try_parse(&sc, str.c_str()) == 0);
275 const auto str = host; variable
276 REQUIRE(try_parse(&sc, str.c_str()) == 0);
285 const auto str = host; variable
286 REQUIRE(try_parse(&sc, str.c_str()) == 0);
295 const auto str = host; variable
296 REQUIRE(try_parse(&sc, str.c_str()) == 0);
312 const auto str = trans + "::" + host; variable
313 REQUIRE(try_parse(&sc, str.c_str()) == 0);
323 const auto str = trans + "::" + host; variable
324 REQUIRE(try_parse(&sc, str.c_str()) == 0);
334 const auto str = trans + "::" + host; variable
335 REQUIRE(try_parse(&sc, str.c_str()) == 0);
345 const auto str = trans + "::[" + host + "]"; variable
346 REQUIRE(try_parse(&sc, str.c_str()) == 0);
356 const auto str = trans + "::" + host; variable
357 REQUIRE(try_parse(&sc, str.c_str()) == 0);
367 const auto str = trans + "::" + host; variable
368 REQUIRE(try_parse(&sc, str.c_str()) == 0);
378 const auto str = trans + "::" + host; variable
379 REQUIRE(try_parse(&sc, str.c_str()) == -1);
385 const auto str = trans + "::" + host; variable
386 REQUIRE(try_parse(&sc, str.c_str()) == -1);
399 const auto str = trans + "::" + host + ":" + port; variable
400 REQUIRE(try_parse(&sc, str.c_str()) == 0);
411 const auto str = trans + "::" + host + ":" + port; variable
412 REQUIRE(try_parse(&sc, str.c_str()) == 0);
423 const auto str = trans + "::" + host + ":" + port; variable
424 REQUIRE(try_parse(&sc, str.c_str()) == 0);
435 const auto str = trans + "::[" + host + "]:" + port; variable
436 REQUIRE(try_parse(&sc, str.c_str()) == 0);
453 const auto str = comm + "@" + host; variable
454 REQUIRE(try_parse(&sc, str.c_str()) == 0);
464 const auto str = comm + "@" + host; variable
465 REQUIRE(try_parse(&sc, str.c_str()) == 0);
475 const auto str = comm + "@" + host; variable
476 REQUIRE(try_parse(&sc, str.c_str()) == 0);
495 const auto str = trans + "::" + comm + "@" + host + ":" + port; variable
496 REQUIRE(try_parse(&sc, str.c_str()) == 0);
508 const auto str = trans + "::" + comm + "@" + host + ":" + port; variable
509 REQUIRE(try_parse(&sc, str.c_str()) == 0);
521 const auto str = trans + "::" + comm + "@[" + host + "]:" + port; variable
522 REQUIRE(try_parse(&sc, str.c_str()) == 0);