/external/llvm-project/libc/test/src/string/ |
D | strcspn_test.cpp | 15 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/ |
D | strcspn-1.ll | 1 ; 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)
|
D | strcspn-2.ll | 1 ; 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/ |
D | strcspn-1.ll | 2 ; 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)
|
D | strcspn-2.ll | 1 ; 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/ |
D | fileconf.c | 240 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/ |
D | debug.c | 44 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/ |
D | 2007-07-12-ExitDomInfo.ll | 20 …%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/ |
D | 2007-07-12-ExitDomInfo.ll | 21 …%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/ |
D | 2007-07-12-ExitDomInfo.ll | 21 …%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/ |
D | CMakeLists.txt | 112 strcspn 114 strcspn.cpp 116 strcspn.h
|
D | strcspn.h | 16 size_t strcspn(const char *src, const char *segment);
|
D | strcspn.cpp | 16 size_t LLVM_LIBC_ENTRYPOINT(strcspn)(const char *src, const char *segment) { in LLVM_LIBC_ENTRYPOINT() argument
|
/external/mesa3d/src/compiler/glsl/ |
D | s_expression.cpp | 53 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/ |
D | strcspn.c | 10 r = strcspn(s1, s2); in main()
|
/external/llvm-project/compiler-rt/test/sanitizer_common/TestCases/ |
D | strcspn.c | 10 r = strcspn(s1, s2); in main()
|
/external/llvm-project/compiler-rt/test/asan/TestCases/ |
D | strcspn-2.c | 16 r = strcspn(s1, s2); in main()
|
D | strcspn-1.c | 16 r = strcspn(s1, s2); in main()
|
D | strcspn_strict.c | 19 size_t r = strcspn(s1, s2); in main()
|
/external/compiler-rt/test/asan/TestCases/ |
D | strcspn-1.c | 16 r = strcspn(s1, s2); in main()
|
D | strcspn-2.c | 16 r = strcspn(s1, s2); in main()
|
D | strcspn_strict.c | 19 size_t r = strcspn(s1, s2); in main()
|
/external/llvm-project/libcxx/include/ |
D | cstring | 42 size_t strcspn(const char* s1, const char* s2); 82 using ::strcspn;
|
/external/llvm/tools/llvm-symbolizer/ |
D | llvm-symbolizer.cpp | 128 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/ |
D | IncludeOrderCheck.cpp | 163 unsigned FromLen = std::strcspn(FromData, "\n"); in EndOfMainFile() 169 unsigned ToLen = std::strcspn(ToData, "\n"); in EndOfMainFile()
|