Home
last modified time | relevance | path

Searched refs:strcspn (Results 1 – 25 of 161) sorted by relevance

1234567

/external/llvm-project/libc/test/src/string/
Dstrcspn_test.cpp15 EXPECT_EQ(__llvm_libc::strcspn(src, "b"), size_t{1}); in TEST()
16 EXPECT_EQ(__llvm_libc::strcspn(src, "d"), size_t{2}); in TEST()
20 EXPECT_EQ(__llvm_libc::strcspn("123", segment), size_t{0}); in TEST()
26 EXPECT_EQ(__llvm_libc::strcspn(src, "1"), size_t{0}); in TEST()
27 EXPECT_EQ(__llvm_libc::strcspn(src, "2"), size_t{1}); in TEST()
28 EXPECT_EQ(__llvm_libc::strcspn(src, "3"), size_t{2}); in TEST()
29 EXPECT_EQ(__llvm_libc::strcspn(src, "4"), size_t{3}); in TEST()
30 EXPECT_EQ(__llvm_libc::strcspn(src, "5"), size_t{4}); in TEST()
35 EXPECT_EQ(__llvm_libc::strcspn("", ""), size_t{0}); in TEST()
36 EXPECT_EQ(__llvm_libc::strcspn("", "_"), size_t{0}); in TEST()
[all …]
/external/llvm/test/Transforms/InstCombine/
Dstrcspn-1.ll1 ; Test that the strcspn library call simplifier works correctly.
11 declare i64 @strcspn(i8*, i8*)
13 ; Check strcspn(s, "") -> strlen(s).
19 %ret = call i64 @strcspn(i8* %str, i8* %pat)
25 ; Check strcspn("", s) -> 0.
31 %ret = call i64 @strcspn(i8* %str, i8* %pat)
36 ; Check strcspn(s1, s2), where s1 and s2 are constants.
43 %ret = call i64 @strcspn(i8* %str, i8* %pat)
53 %ret = call i64 @strcspn(i8* %str, i8* %pat)
54 ; CHECK-NEXT: %ret = call i64 @strcspn(i8* %str, i8* %pat)
Dstrcspn-2.ll1 ; Test that the strcspn library call simplifier works correctly.
9 declare double @strcspn(i8*, i8*)
11 ; Check that strcspn functions with the wrong prototype aren't simplified.
17 %ret = call double @strcspn(i8* %str, i8* %pat)
18 ; CHECK-NEXT: call double @strcspn
/external/llvm-project/llvm/test/Transforms/InstCombine/
Dstrcspn-1.ll2 ; Test that the strcspn library call simplifier works correctly.
12 declare i64 @strcspn(i8*, i8*)
14 ; Check strcspn(s, "") -> strlen(s).
23 %ret = call i64 @strcspn(i8* %str, i8* %pat)
27 ; Check strcspn("", s) -> 0.
35 %ret = call i64 @strcspn(i8* %str, i8* %pat)
39 ; Check strcspn(s1, s2), where s1 and s2 are constants.
48 %ret = call i64 @strcspn(i8* %str, i8* %pat)
56 ; CHECK-NEXT: [[RET:%.*]] = call i64 @strcspn(i8* [[STR:%.*]], i8* [[PAT:%.*]])
60 %ret = call i64 @strcspn(i8* %str, i8* %pat)
Dstrcspn-2.ll1 ; Test that the strcspn library call simplifier works correctly.
9 declare double @strcspn(i8*, i8*)
11 ; Check that strcspn functions with the wrong prototype aren't simplified.
17 %ret = call double @strcspn(i8* %str, i8* %pat)
18 ; CHECK-NEXT: call double @strcspn
/external/libpcap/rpcapd/
Dfileconf.c240 toklen = strcspn(ptr, RPCAP_HOSTLIST_SEP "#"); in fileconf_read()
307 toklen = strcspn(ptr, " \t#\r\n"); in fileconf_read()
369 toklen = strcspn(ptr, " \t#\r\n"); in fileconf_read()
443 toklen = strcspn(ptr, " \t#\r\n"); in fileconf_read()
/external/mesa3d/src/util/
Ddebug.c44 for (; n = strcspn(s, ", "), *s; s += MAX2(1, n)) { in parse_debug_string()
62 for (unsigned n; n = strcspn(list, ","), *list; list += MAX2(1, n)) { in comma_separated_list_contains()
/external/llvm/test/Transforms/LoopUnswitch/
D2007-07-12-ExitDomInfo.ll20 …%tmp31 = call i32 @strcspn( i8* null, i8* getelementptr ([3 x i8], [3 x i8]* @str3, i64 0, i64 0) …
45 declare i32 @strcspn(i8*, i8*)
/external/llvm-project/llvm/test/Transforms/LoopUnswitch/
D2007-07-12-ExitDomInfo.ll21 …%tmp31 = call i32 @strcspn( i8* null, i8* getelementptr ([3 x i8], [3 x i8]* @str3, i64 0, i64 0) …
46 declare i32 @strcspn(i8*, i8*)
/external/llvm-project/llvm/test/Transforms/SimpleLoopUnswitch/
D2007-07-12-ExitDomInfo.ll21 …%tmp31 = call i32 @strcspn( i8* null, i8* getelementptr ([3 x i8], [3 x i8]* @str3, i64 0, i64 0) …
46 declare i32 @strcspn(i8*, i8*)
/external/llvm-project/libc/src/string/
DCMakeLists.txt112 strcspn
114 strcspn.cpp
116 strcspn.h
Dstrcspn.h16 size_t strcspn(const char *src, const char *segment);
Dstrcspn.cpp16 size_t LLVM_LIBC_ENTRYPOINT(strcspn)(const char *src, const char *segment) { in LLVM_LIBC_ENTRYPOINT() argument
/external/mesa3d/src/compiler/glsl/
Ds_expression.cpp53 n = strcspn(src, "\n"); in skip_whitespace()
67 size_t n = strcspn(src, "( \v\t\r\n);"); in read_atom()
/external/compiler-rt/test/sanitizer_common/TestCases/
Dstrcspn.c10 r = strcspn(s1, s2); in main()
/external/llvm-project/compiler-rt/test/sanitizer_common/TestCases/
Dstrcspn.c10 r = strcspn(s1, s2); in main()
/external/llvm-project/compiler-rt/test/asan/TestCases/
Dstrcspn-2.c16 r = strcspn(s1, s2); in main()
Dstrcspn-1.c16 r = strcspn(s1, s2); in main()
Dstrcspn_strict.c19 size_t r = strcspn(s1, s2); in main()
/external/compiler-rt/test/asan/TestCases/
Dstrcspn-1.c16 r = strcspn(s1, s2); in main()
Dstrcspn-2.c16 r = strcspn(s1, s2); in main()
Dstrcspn_strict.c19 size_t r = strcspn(s1, s2); in main()
/external/llvm-project/libcxx/include/
Dcstring42 size_t strcspn(const char* s1, const char* s2);
82 using ::strcspn;
/external/llvm/tools/llvm-symbolizer/
Dllvm-symbolizer.cpp128 int name_length = strcspn(pos, kDelimiters); in parseCommand()
137 int offset_length = strcspn(pos, kDelimiters); in parseCommand()
/external/llvm-project/clang-tools-extra/clang-tidy/llvm/
DIncludeOrderCheck.cpp163 unsigned FromLen = std::strcspn(FromData, "\n"); in EndOfMainFile()
169 unsigned ToLen = std::strcspn(ToData, "\n"); in EndOfMainFile()

1234567