Home
last modified time | relevance | path

Searched refs:strspn (Results 1 – 25 of 134) sorted by relevance

123456

/external/llvm-project/libc/test/src/string/
Dstrspn_test.cpp15 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/
Dstrspn-1.ll1 ; 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/
Dstrspn-1.ll1 ; 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/
Dcommands.c165 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/
Dcurl_path.c130 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/
Ddelegate-private.h105 for (p+=strspn(p,allowlist); p != q; p+=strspn(p,allowlist)) in SanitizeDelegateString()
Dxml-tree.c1533 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/
Dlibcalls-fno-builtin.c29 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/
Dlibcalls-fno-builtin.c34 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/
DCMakeLists.txt122 strspn
124 strspn.cpp
126 strspn.h
Dstrspn.h16 size_t strspn(const char *src, const char *segment);
Dstrspn.cpp17 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/
Dstrspn.c10 r = strspn(s1, s2); in main()
/external/compiler-rt/test/sanitizer_common/TestCases/
Dstrspn.c10 r = strspn(s1, s2); in main()
/external/llvm-project/compiler-rt/test/asan/TestCases/
Dstrspn-2.c16 r = strspn(s1, s2); in main()
Dstrspn-1.c16 r = strspn(s1, s2); in main()
Dstrspn_strict.c18 size_t r = strspn(s1, s2); in main()
/external/compiler-rt/test/asan/TestCases/
Dstrspn-2.c16 r = strspn(s1, s2); in main()
Dstrspn-1.c16 r = strspn(s1, s2); in main()
Dstrspn_strict.c18 size_t r = strspn(s1, s2); in main()
/external/flac/src/share/grabbag/
Dcuesheet.c176 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/
Dcstring48 size_t strspn(const char* s1, const char* s2);
86 using ::strspn;
/external/llvm/tools/llvm-symbolizer/
Dllvm-symbolizer.cpp118 pos += strspn(pos, kDelimiters); in parseCommand()
136 pos += strspn(pos, kDelimiters); in parseCommand()
/external/llvm-project/libcxx/include/
Dcstring47 size_t strspn(const char* s1, const char* s2);
85 using ::strspn;
/external/selinux/libsemanage/src/
Dutilities.c82 off = strspn(str, seps); in semanage_split_on_space()
84 off += strspn(str + off, seps); in semanage_split_on_space()

123456