• Home
  • Raw
  • Download

Lines Matching refs:needle

14   const char *needle = "a";  in TEST()  local
15 ASSERT_STREQ(__llvm_libc::strstr(haystack, needle), nullptr); in TEST()
20 const char *needle = ""; in TEST() local
21 ASSERT_STREQ(__llvm_libc::strstr(haystack, needle), haystack); in TEST()
26 const char *needle = "12345"; in TEST() local
27 ASSERT_STREQ(__llvm_libc::strstr(haystack, needle), nullptr); in TEST()
32 const char *needle = ""; in TEST() local
33 ASSERT_STREQ(__llvm_libc::strstr(haystack, needle), ""); in TEST()
46 const char *needle = "12345"; in TEST() local
47 ASSERT_STREQ(__llvm_libc::strstr(haystack, needle), "12345"); in TEST()
52 const char *needle = "345"; in TEST() local
53 ASSERT_STREQ(__llvm_libc::strstr(haystack, needle), "345"); in TEST()
58 const char *needle = "12345"; in TEST() local
59 ASSERT_STREQ(__llvm_libc::strstr(haystack, needle), nullptr); in TEST()
64 const char *needle = "12"; in TEST() local
65 ASSERT_STREQ(__llvm_libc::strstr(haystack, needle), "12345"); in TEST()
70 const char *needle = "def"; in TEST() local
71 ASSERT_STREQ(__llvm_libc::strstr(haystack, needle), "defghi"); in TEST()
76 const char *needle = "ghi"; in TEST() local
77 ASSERT_STREQ(__llvm_libc::strstr(haystack, needle), "ghi"); in TEST()
89 const char *needle = "lap"; in TEST() local
91 ASSERT_STREQ(__llvm_libc::strstr(haystack, needle), "lap"); in TEST()
96 const char *needle = "tale"; in TEST() local
97 ASSERT_STREQ(__llvm_libc::strstr(haystack, needle), "tale"); in TEST()
102 const char *needle = "dog"; in TEST() local
103 ASSERT_STREQ(__llvm_libc::strstr(haystack, needle), "dog"); in TEST()