/external/llvm-project/libc/test/src/string/ |
D | strspn_test.cpp | 15 EXPECT_EQ(__llvm_libc::strspn("", ""), size_t{0}); in TEST() 16 EXPECT_EQ(__llvm_libc::strspn("_", ""), size_t{0}); in TEST() 17 EXPECT_EQ(__llvm_libc::strspn("", "_"), size_t{0}); in TEST() 22 EXPECT_EQ(__llvm_libc::strspn(src, "ab"), size_t{2}); in TEST() 23 EXPECT_EQ(__llvm_libc::strspn(src, "c"), size_t{0}); in TEST() 27 EXPECT_EQ(__llvm_libc::strspn("123", segment), size_t{2}); in TEST() 32 EXPECT_EQ(__llvm_libc::strspn(src, "1"), size_t{1}); in TEST() 35 EXPECT_EQ(__llvm_libc::strspn(src, "2"), size_t{0}); in TEST() 36 EXPECT_EQ(__llvm_libc::strspn(src, "3"), size_t{0}); in TEST() 37 EXPECT_EQ(__llvm_libc::strspn(src, "4"), size_t{0}); in TEST() [all …]
|
/external/llvm/test/Transforms/InstCombine/ |
D | strspn-1.ll | 1 ; Test that the strspn library call simplifier works correctly. 11 declare i64 @strspn(i8*, i8*) 13 ; Check strspn(s, "") -> 0. 19 %ret = call i64 @strspn(i8* %str, i8* %pat) 24 ; Check strspn("", s) -> 0. 30 %ret = call i64 @strspn(i8* %str, i8* %pat) 35 ; Check strspn(s1, s2), where s1 and s2 are constants. 42 %ret = call i64 @strspn(i8* %str, i8* %pat) 52 %ret = call i64 @strspn(i8* %str, i8* %pat) 53 ; CHECK-NEXT: %ret = call i64 @strspn(i8* %str, i8* %pat)
|
/external/llvm-project/llvm/test/Transforms/InstCombine/ |
D | strspn-1.ll | 1 ; Test that the strspn library call simplifier works correctly. 11 declare i64 @strspn(i8*, i8*) 13 ; Check strspn(s, "") -> 0. 19 %ret = call i64 @strspn(i8* %str, i8* %pat) 24 ; Check strspn("", s) -> 0. 30 %ret = call i64 @strspn(i8* %str, i8* %pat) 35 ; Check strspn(s1, s2), where s1 and s2 are constants. 42 %ret = call i64 @strspn(i8* %str, i8* %pat) 52 %ret = call i64 @strspn(i8* %str, i8* %pat) 53 ; CHECK-NEXT: %ret = call i64 @strspn(i8* %str, i8* %pat)
|
/external/ltp/testcases/kernel/hotplug/memory_hotplug/ |
D | commands.c | 165 args = nextarg + strspn(nextarg, whitespace); in get_range() 179 args = nextarg + strspn(nextarg, whitespace); in get_range() 572 args = nextarg + strspn(nextarg, whitespace); in migrate_process() 654 args += strspn(args, whitespace); in show_seg() 675 args += strspn(args, whitespace); in anon_seg() 680 args = nextarg + strspn(nextarg, whitespace); in anon_seg() 688 args = nextarg + strspn(nextarg, whitespace); in anon_seg() 713 args += strspn(args, whitespace); in file_seg() 718 args = nextarg + strspn(nextarg, whitespace); in file_seg() 746 args += strspn(args, whitespace); in remove_seg() [all …]
|
/external/curl/lib/ |
D | curl_path.c | 130 cp += strspn(cp, WHITESPACE); in Curl_get_pathname() 168 *cpp = cp + i + strspn(cp + i, WHITESPACE); in Curl_get_pathname() 176 *cpp = end + strspn(end, WHITESPACE); in Curl_get_pathname()
|
/external/ImageMagick/MagickCore/ |
D | delegate-private.h | 105 for (p+=strspn(p,allowlist); p != q; p+=strspn(p,allowlist)) in SanitizeDelegateString()
|
D | xml-tree.c | 1533 i=(ssize_t) strspn(xml,accept); in ParseEntities() 1634 xml+=strspn(xml+1,XMLWhitespace)+1; in ParseProcessingInstructions() 1640 (strncmp(xml+strspn(xml+10,XMLWhitespace "='\"")+10,"yes",3) == 0)) in ParseProcessingInstructions() 1725 if (strspn(xml+8,XMLWhitespace) == 0) in ParseInternalDoctype() 1727 xml+=strspn(xml+8,XMLWhitespace)+8; in ParseInternalDoctype() 1729 n=xml+strspn(xml,XMLWhitespace "%"); in ParseInternalDoctype() 1736 v=xml+strspn(xml+1,XMLWhitespace)+1; in ParseInternalDoctype() 1786 t=xml+strspn(xml+9,XMLWhitespace)+9; in ParseInternalDoctype() 1804 while ((*(n=xml+strspn(xml+1,XMLWhitespace)+1) != '\0') && in ParseInternalDoctype() 1818 xml+=strspn(xml+1,XMLWhitespace)+1; in ParseInternalDoctype() [all …]
|
/external/clang/test/CodeGen/ |
D | libcalls-fno-builtin.c | 29 size_t strspn(const char *s1, const char *s2); 102 size_t t17(char *x) { return strspn(x, ""); } in t17()
|
/external/llvm-project/clang/test/CodeGen/ |
D | libcalls-fno-builtin.c | 34 size_t strspn(const char *s1, const char *s2); 117 size_t t17(char *x) { return strspn(x, ""); } in t17()
|
/external/llvm-project/libc/src/string/ |
D | CMakeLists.txt | 122 strspn 124 strspn.cpp 126 strspn.h
|
D | strspn.h | 16 size_t strspn(const char *src, const char *segment);
|
D | strspn.cpp | 17 size_t LLVM_LIBC_ENTRYPOINT(strspn)(const char *src, const char *segment) { in LLVM_LIBC_ENTRYPOINT() argument
|
/external/llvm-project/compiler-rt/test/sanitizer_common/TestCases/ |
D | strspn.c | 10 r = strspn(s1, s2); in main()
|
/external/compiler-rt/test/sanitizer_common/TestCases/ |
D | strspn.c | 10 r = strspn(s1, s2); in main()
|
/external/llvm-project/compiler-rt/test/asan/TestCases/ |
D | strspn-2.c | 16 r = strspn(s1, s2); in main()
|
D | strspn-1.c | 16 r = strspn(s1, s2); in main()
|
D | strspn_strict.c | 18 size_t r = strspn(s1, s2); in main()
|
/external/compiler-rt/test/asan/TestCases/ |
D | strspn-2.c | 16 r = strspn(s1, s2); in main()
|
D | strspn-1.c | 16 r = strspn(s1, s2); in main()
|
D | strspn_strict.c | 18 size_t r = strspn(s1, s2); in main()
|
/external/flac/src/share/grabbag/ |
D | cuesheet.c | 176 if(strspn(s, "0123456789.") != strlen(s)) in local__parse_ms_() 288 if(is_cdda && (strlen(field) != 13 || strspn(field, "0123456789") != 13)) { in local__cuesheet_parse_() 417 …if(strlen(field) != 12 || strspn(field, "ABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789") < 5 || strspn(fiel… in local__cuesheet_parse_()
|
/external/libcxx/include/ |
D | cstring | 48 size_t strspn(const char* s1, const char* s2); 86 using ::strspn;
|
/external/llvm/tools/llvm-symbolizer/ |
D | llvm-symbolizer.cpp | 118 pos += strspn(pos, kDelimiters); in parseCommand() 136 pos += strspn(pos, kDelimiters); in parseCommand()
|
/external/llvm-project/libcxx/include/ |
D | cstring | 47 size_t strspn(const char* s1, const char* s2); 85 using ::strspn;
|
/external/selinux/libsemanage/src/ |
D | utilities.c | 82 off = strspn(str, seps); in semanage_split_on_space() 84 off += strspn(str + off, seps); in semanage_split_on_space()
|