Home
last modified time | relevance | path

Searched refs:strpbrk (Results 1 – 25 of 148) sorted by relevance

123456

/external/llvm-project/libc/test/src/string/
Dstrpbrk_test.cpp15 EXPECT_STREQ(__llvm_libc::strpbrk("", ""), nullptr); in TEST()
16 EXPECT_STREQ(__llvm_libc::strpbrk("_", ""), nullptr); in TEST()
17 EXPECT_STREQ(__llvm_libc::strpbrk("", "_"), nullptr); in TEST()
22 EXPECT_STREQ(__llvm_libc::strpbrk(src, "c"), nullptr); in TEST()
26 EXPECT_STREQ(__llvm_libc::strpbrk("12345", "abcdef"), nullptr); in TEST()
31 EXPECT_STREQ(__llvm_libc::strpbrk(src, "1"), "12345"); in TEST()
32 EXPECT_STREQ(__llvm_libc::strpbrk(src, "-1"), "12345"); in TEST()
33 EXPECT_STREQ(__llvm_libc::strpbrk(src, "1_"), "12345"); in TEST()
34 EXPECT_STREQ(__llvm_libc::strpbrk(src, "f1_"), "12345"); in TEST()
40 EXPECT_STREQ(__llvm_libc::strpbrk(src, "3"), "345"); in TEST()
[all …]
/external/llvm-project/llvm/test/Transforms/InstCombine/
Dstrpbrk-1.ll2 ; Test that the strpbrk library call simplifier works correctly.
12 declare i8* @strpbrk(i8*, i8*)
14 ; Check strpbrk(s, "") -> NULL.
22 %ret = call i8* @strpbrk(i8* %str, i8* %pat)
26 ; Check strpbrk("", s) -> NULL.
34 %ret = call i8* @strpbrk(i8* %str, i8* %pat)
38 ; Check strpbrk(s1, s2), where s1 and s2 are constants.
47 %ret = call i8* @strpbrk(i8* %str, i8* %pat)
51 ; Check strpbrk(s, "a") -> strchr(s, 'a').
60 %ret = call i8* @strpbrk(i8* %str, i8* %pat)
[all …]
Dstrpbrk-2.ll1 ; Test that the strpbrk library call simplifier works correctly.
10 declare i16* @strpbrk(i8*, i8*)
12 ; Check that 'strpbrk' functions with the wrong prototype aren't simplified.
19 %ret = call i16* @strpbrk(i8* %str, i8* %pat)
20 ; CHECK-NEXT: %ret = call i16* @strpbrk
/external/llvm/test/Transforms/InstCombine/
Dstrpbrk-1.ll1 ; Test that the strpbrk library call simplifier works correctly.
11 declare i8* @strpbrk(i8*, i8*)
13 ; Check strpbrk(s, "") -> NULL.
19 %ret = call i8* @strpbrk(i8* %str, i8* %pat)
24 ; Check strpbrk("", s) -> NULL.
30 %ret = call i8* @strpbrk(i8* %str, i8* %pat)
35 ; Check strpbrk(s1, s2), where s1 and s2 are constants.
42 %ret = call i8* @strpbrk(i8* %str, i8* %pat)
47 ; Check strpbrk(s, "a") -> strchr(s, 'a').
53 %ret = call i8* @strpbrk(i8* %str, i8* %pat)
[all …]
Dstrpbrk-2.ll1 ; Test that the strpbrk library call simplifier works correctly.
10 declare i16* @strpbrk(i8*, i8*)
12 ; Check that 'strpbrk' functions with the wrong prototype aren't simplified.
19 %ret = call i16* @strpbrk(i8* %str, i8* %pat)
20 ; CHECK-NEXT: %ret = call i16* @strpbrk
/external/iptables/libxtables/
Dgetethertype.c91 cp = strpbrk(e, "#\n"); in getethertypeent()
96 cp = strpbrk(e, " \t"); in getethertypeent()
102 e = strpbrk(cp, " \t"); in getethertypeent()
121 cp = strpbrk(cp, " \t"); in getethertypeent()
/external/libcxx/include/
Dstring.h81 char* __libcpp_strpbrk(const char* __s1, const char* __s2) {return (char*)strpbrk(__s1, __s2);} in __libcpp_strpbrk()
83 const char* strpbrk(const char* __s1, const char* __s2) {return __libcpp_strpbrk(__s1, __s2);} in strpbrk() function
85 char* strpbrk( char* __s1, const char* __s2) {return __libcpp_strpbrk(__s1, __s2);} in strpbrk() function
Dcstring44 const char* strpbrk(const char* s1, const char* s2);
45 char* strpbrk( char* s1, const char* s2);
84 using ::strpbrk;
/external/llvm-project/libcxx/include/
Dstring.h80 char* __libcpp_strpbrk(const char* __s1, const char* __s2) {return (char*)strpbrk(__s1, __s2);} in __libcpp_strpbrk()
82 const char* strpbrk(const char* __s1, const char* __s2) {return __libcpp_strpbrk(__s1, __s2);} in strpbrk() function
84 char* strpbrk( char* __s1, const char* __s2) {return __libcpp_strpbrk(__s1, __s2);} in strpbrk() function
Dcstring43 const char* strpbrk(const char* s1, const char* s2);
44 char* strpbrk( char* s1, const char* s2);
83 using ::strpbrk;
/external/mtools/
Dmkmanifest.c100 while ((s = strpbrk(temp, "^+=/[]:',?*\\<>|\". "))) in dos_name2()
103 while (ext && (s = strpbrk(ext, "^+=/[]:',?*\\<>|\". "))) in dos_name2()
/external/clang/test/CodeGen/
Dlibcalls-fno-builtin.c28 char *strpbrk(const char *s1, const char *s2);
98 char *t16(char *x) { return strpbrk(x, ""); } in t16()
/external/libcxx/test/std/strings/c.strings/
Dcstring.pass.cpp43 ASSERT_SAME_TYPE(char*, decltype(std::strpbrk(cp, cpc))); in main()
60 ASSERT_SAME_TYPE(const char*, decltype(std::strpbrk(cpc, cpc))); in main()
/external/llvm-project/libcxx/test/std/strings/c.strings/
Dcstring.pass.cpp42 ASSERT_SAME_TYPE(char*, decltype(std::strpbrk(cp, cpc))); in main()
59 ASSERT_SAME_TYPE(const char*, decltype(std::strpbrk(cpc, cpc))); in main()
/external/llvm-project/clang/test/CodeGen/
Dlibcalls-fno-builtin.c33 char *strpbrk(const char *s1, const char *s2);
113 char *t16(char *x) { return strpbrk(x, ""); } in t16()
/external/llvm-project/libc/src/string/
DCMakeLists.txt132 strpbrk
134 strpbrk.cpp
136 strpbrk.h
Dstrpbrk.h14 char *strpbrk(const char *src, const char *breakset);
Dstrpbrk.cpp16 char *LLVM_LIBC_ENTRYPOINT(strpbrk)(const char *src, const char *breakset) { in LLVM_LIBC_ENTRYPOINT() argument
/external/libcxx/test/std/depr/depr.c.headers/
Dstring_h.pass.cpp40 static_assert((std::is_same<decltype(strpbrk(cp, cpc)), char*>::value), ""); in main()
56 static_assert((std::is_same<decltype(strpbrk(cpc, cpc)), const char*>::value), ""); in main()
/external/llvm-project/libcxx/test/std/depr/depr.c.headers/
Dstring_h.pass.cpp41 static_assert((std::is_same<decltype(strpbrk(cp, cpc)), char*>::value), ""); in main()
57 static_assert((std::is_same<decltype(strpbrk(cpc, cpc)), const char*>::value), ""); in main()
/external/compiler-rt/test/sanitizer_common/TestCases/
Dstrpbrk.c11 r = strpbrk(s1, s2); in main()
/external/llvm-project/compiler-rt/test/sanitizer_common/TestCases/
Dstrpbrk.c11 r = strpbrk(s1, s2); in main()
/external/llvm-project/compiler-rt/test/asan/TestCases/
Dstrpbrk-2.c16 r = strpbrk(s1, s2); in main()
Dstrpbrk-1.c16 r = strpbrk(s1, s2); in main()
/external/compiler-rt/test/asan/TestCases/
Dstrpbrk-1.c16 r = strpbrk(s1, s2); in main()

123456