Home
last modified time | relevance | path

Searched refs:strchr (Results 1 – 25 of 1078) sorted by relevance

12345678910>>...44

/external/ltp/testcases/kernel/io/disktest/
Dparse.c108 if (strchr(optarg, 'g')) { in fill_cld_args()
111 if (strchr(optarg, 'c')) { in fill_cld_args()
114 if (strchr(optarg, 'm')) { in fill_cld_args()
117 if (strchr(optarg, 'r')) { in fill_cld_args()
120 if (strchr(optarg, 's')) { in fill_cld_args()
123 if (strchr(optarg, 'S')) { in fill_cld_args()
126 if (strchr(optarg, 'w')) { in fill_cld_args()
129 if (strchr(optarg, 'W')) { in fill_cld_args()
132 if (strchr(optarg, 't')) { in fill_cld_args()
157 if (strchr(optarg, 'L')) in fill_cld_args()
[all …]
/external/python/cpython3/Lib/ctypes/test/
Dtest_returnfuncptrs.py14 strchr = get_strchr()
15 self.assertEqual(strchr(b"abcdef", b"b"), b"bcdef")
16 self.assertEqual(strchr(b"abcdef", b"x"), None)
17 self.assertEqual(strchr(b"abcdef", 98), b"bcdef")
18 self.assertEqual(strchr(b"abcdef", 107), None)
19 self.assertRaises(ArgumentError, strchr, b"abcdef", 3.0)
20 self.assertRaises(TypeError, strchr, b"abcdef")
30 strchr = CFUNCTYPE(c_char_p, c_char_p, c_char)(addr)
31 self.assertTrue(strchr(b"abcdef", b"b"), "bcdef")
32 self.assertEqual(strchr(b"abcdef", b"x"), None)
[all …]
Dtest_stringptr.py47 strchr = lib.my_strchr
48 strchr.restype = c_char_p
52 strchr.argtypes = c_char_p, c_char
53 self.assertEqual(strchr(b"abcdef", b"c"), b"cdef")
54 self.assertEqual(strchr(c_buffer(b"abcdef"), b"c"), b"cdef")
58 strchr.argtypes = POINTER(c_char), c_char
60 self.assertEqual(strchr(buf, b"c"), b"cdef")
61 self.assertEqual(strchr(b"abcdef", b"c"), b"cdef")
67 strchr.restype = POINTER(c_char)
69 r = strchr(buf, b"c")
Dtest_funcptr.py97 strchr = lib.my_strchr
98 strchr.restype = c_char_p
99 strchr.argtypes = (c_char_p, c_char)
100 self.assertEqual(strchr(b"abcdefghi", b"b"), b"bcdefghi")
101 self.assertEqual(strchr(b"abcdefghi", b"x"), None)
/external/python/cpython2/Lib/ctypes/test/
Dtest_returnfuncptrs.py15 strchr = get_strchr()
16 self.assertEqual(strchr("abcdef", "b"), "bcdef")
17 self.assertEqual(strchr("abcdef", "x"), None)
18 self.assertRaises(ArgumentError, strchr, "abcdef", 3)
19 self.assertRaises(TypeError, strchr, "abcdef")
29 strchr = CFUNCTYPE(c_char_p, c_char_p, c_char)(addr)
30 self.assertTrue(strchr("abcdef", "b"), "bcdef")
31 self.assertEqual(strchr("abcdef", "x"), None)
32 self.assertRaises(ArgumentError, strchr, "abcdef", 3)
33 self.assertRaises(TypeError, strchr, "abcdef")
[all …]
Dtest_stringptr.py45 strchr = lib.my_strchr
46 strchr.restype = c_char_p
50 strchr.argtypes = c_char_p, c_char
51 self.assertEqual(strchr("abcdef", "c"), "cdef")
52 self.assertEqual(strchr(c_buffer("abcdef"), "c"), "cdef")
56 strchr.argtypes = POINTER(c_char), c_char
58 self.assertEqual(strchr(buf, "c"), "cdef")
59 self.assertEqual(strchr("abcdef", "c"), "cdef")
65 strchr.restype = POINTER(c_char)
67 r = strchr(buf, "c")
Dtest_funcptr.py97 strchr = lib.my_strchr
98 strchr.restype = c_char_p
99 strchr.argtypes = (c_char_p, c_char)
100 self.assertEqual(strchr("abcdefghi", "b"), "bcdefghi")
101 self.assertEqual(strchr("abcdefghi", "x"), None)
/external/swiftshader/third_party/llvm-7.0/llvm/test/Transforms/InstCombine/
Dstrchr-1.ll1 ; Test that the strchr library call simplifier works correctly.
11 declare i8* @strchr(i8*, i32)
15 ; CHECK-NOT: call i8* @strchr
19 %dst = call i8* @strchr(i8* %str, i32 119)
26 ; CHECK-NOT: call i8* @strchr
30 %dst = call i8* @strchr(i8* %str, i32 119)
37 ; CHECK-NOT: call i8* @strchr
41 %dst = call i8* @strchr(i8* %src, i32 0)
48 ; CHECK-NOT: call i8* @strchr
52 %dst = call i8* @strchr(i8* %src, i32 %chr)
[all …]
Dstrchr-2.ll1 ; Test that the strchr libcall simplifier works correctly.
10 declare i8 @strchr(i8*, i32)
14 ; CHECK: call i8 @strchr
18 %dst = call i8 @strchr(i8* %str, i32 119)
/external/llvm/test/Transforms/InstCombine/
Dstrchr-1.ll1 ; Test that the strchr library call simplifier works correctly.
11 declare i8* @strchr(i8*, i32)
15 ; CHECK-NOT: call i8* @strchr
19 %dst = call i8* @strchr(i8* %str, i32 119)
26 ; CHECK-NOT: call i8* @strchr
30 %dst = call i8* @strchr(i8* %str, i32 119)
37 ; CHECK-NOT: call i8* @strchr
41 %dst = call i8* @strchr(i8* %src, i32 0)
48 ; CHECK-NOT: call i8* @strchr
52 %dst = call i8* @strchr(i8* %src, i32 %chr)
[all …]
Dstrchr-2.ll1 ; Test that the strchr libcall simplifier works correctly.
10 declare i8 @strchr(i8*, i32)
14 ; CHECK: call i8 @strchr
18 %dst = call i8 @strchr(i8* %str, i32 119)
/external/clang/include/clang/Basic/
DBuiltins.h99 return strchr(getRecord(ID).Attributes, 'U') != nullptr; in isPure()
105 return strchr(getRecord(ID).Attributes, 'c') != nullptr; in isConst()
110 return strchr(getRecord(ID).Attributes, 'n') != nullptr; in isNoThrow()
115 return strchr(getRecord(ID).Attributes, 'r') != nullptr; in isNoReturn()
120 return strchr(getRecord(ID).Attributes, 'j') != nullptr; in isReturnsTwice()
126 return strchr(getRecord(ID).Attributes, 'u') != nullptr; in isUnevaluated()
132 return strchr(getRecord(ID).Attributes, 'F') != nullptr; in isLibFunction()
139 return strchr(getRecord(ID).Attributes, 'f') != nullptr; in isPredefinedLibFunction()
146 return strchr(getRecord(ID).Attributes, 'i') != nullptr; in isPredefinedRuntimeFunction()
151 return strchr(getRecord(ID).Attributes, 't') != nullptr; in hasCustomTypechecking()
[all …]
/external/python/cpython2/PC/os2emx/
Dgetpathp.c219 if (strchr(prog, SEP) || strchr(prog, ALTSEP)) in get_progpath()
221 if (strchr(prog, SEP)) in get_progpath()
226 char *delim = strchr(path, DELIM); in get_progpath()
342 buf = strchr(buf, '\0'); in calculate_path()
347 buf = strchr(buf, '\0'); in calculate_path()
353 buf = strchr(buf, '\0'); in calculate_path()
360 q = strchr(p, DELIM); in calculate_path()
367 buf = strchr(buf, '\0'); in calculate_path()
382 buf = strchr(buf, '\0'); in calculate_path()
/external/swiftshader/third_party/LLVM/test/Transforms/SimplifyLibCalls/
DStrChr.ll11 declare i8* @strchr(i8*, i32)
16 %world = call i8* @strchr(i8* %hello_p, i32 119)
18 %ignore = call i8* @strchr(i8* %null_p, i32 119)
19 ; CHECK-NOT: call i8* strchr
20 %null = call i8* @strchr(i8* %hello_p, i32 0)
22 %result = call i8* @strchr(i8* %hello_p, i32 %index)
D2007-04-06-strchr-miscompile.ll13 …%tmp3 = tail call i8* @strchr( i8* getelementptr ([5 x i8]* @str, i32 0, i32 2), i32 103 ) …
17 declare i8* @strchr(i8*, i32)
20 …%tmp3 = tail call i8* @strchr( i8* getelementptr ([8 x i8]* @str1, i32 0, i32 2), i32 0 ) …
26 …%tmp3 = tail call i8* @strchr( i8* getelementptr ([5 x i8]* @str2, i32 0, i32 1), i32 80 ) …
/external/python/cpython2/PC/os2vacpp/
Dgetpathp.c264 if (strchr(prog, SEP) || strchr(prog, ALTSEP)) in get_progpath()
266 if (strchr(prog, SEP)) in get_progpath()
271 char *delim = strchr(path, DELIM); in get_progpath()
334 delim = strchr(prefix, DELIM); in calculate_path()
394 buf = strchr(buf, '\0'); in calculate_path()
400 buf = strchr(buf, '\0'); in calculate_path()
405 buf = strchr(buf, '\0'); in calculate_path()
411 buf = strchr(buf, '\0'); in calculate_path()
418 q = strchr(p, DELIM); in calculate_path()
425 buf = strchr(buf, '\0'); in calculate_path()
[all …]
/external/curl/lib/
Ddict.c151 word = strchr(path, ':'); in dict_do()
154 database = strchr(word, ':'); in dict_do()
157 strategy = strchr(database, ':'); in dict_do()
160 nthdef = strchr(strategy, ':'); in dict_do()
208 word = strchr(path, ':'); in dict_do()
211 database = strchr(word, ':'); in dict_do()
214 nthdef = strchr(database, ':'); in dict_do()
252 ppath = strchr(path, '/'); in dict_do()
/external/python/cpython2/PC/
Dgetpathp.c427 if (strchr(prog, SEP) || strchr(prog, ALTSEP)) in get_progpath()
429 if (strchr(prog, SEP)) in get_progpath()
434 char *delim = strchr(path, DELIM); in get_progpath()
584 buf = strchr(buf, '\0'); in calculate_path()
590 buf = strchr(buf, '\0'); in calculate_path()
595 buf = strchr(buf, '\0'); in calculate_path()
601 buf = strchr(buf, '\0'); in calculate_path()
608 buf = strchr(buf, '\0'); in calculate_path()
614 buf = strchr(buf, '\0'); in calculate_path()
622 q = strchr(p, DELIM); in calculate_path()
[all …]
/external/mesa3d/src/compiler/glsl/glcpp/
Dpp.c120 backslash = strchr(shader, '\\'); in remove_line_continuations()
146 cr = strchr(search_start, '\r'); in remove_line_continuations()
147 lf = strchr(search_start, '\n'); in remove_line_continuations()
173 cr = strchr (search_start, '\r'); in remove_line_continuations()
174 lf = strchr (search_start, '\n'); in remove_line_continuations()
215 backslash = strchr(search_start, '\\'); in remove_line_continuations()
/external/grpc-grpc/src/core/lib/gpr/
Dhost_port.cc32 if (host[0] != '[' && strchr(host, ':') != nullptr) { in gpr_join_host_port()
51 const char* rbracket = strchr(name, ']'); in gpr_split_host_port()
74 const char* colon = strchr(name, ':'); in gpr_split_host_port()
75 if (colon != nullptr && strchr(colon + 1, ':') == nullptr) { in gpr_split_host_port()
/external/iptables/extensions/
Dlibip6t_DNAT.c56 start = strchr(arg, '['); in parse_to()
60 colon = strchr(arg, ':'); in parse_to()
61 if (colon && strchr(colon+1, ':')) in parse_to()
66 end = strchr(start, ']'); in parse_to()
72 colon = strchr(end + 1, ':'); in parse_to()
89 error = strchr(colon+1, ':'); in parse_to()
94 dash = strchr(colon, '-'); in parse_to()
122 dash = strchr(start, '-'); in parse_to()
Dlibip6t_SNAT.c59 start = strchr(arg, '['); in parse_to()
63 colon = strchr(arg, ':'); in parse_to()
64 if (colon && strchr(colon+1, ':')) in parse_to()
69 end = strchr(start, ']'); in parse_to()
75 colon = strchr(end + 1, ':'); in parse_to()
92 error = strchr(colon+1, ':'); in parse_to()
97 dash = strchr(colon, '-'); in parse_to()
125 dash = strchr(start, '-'); in parse_to()
/external/icu/icu4c/source/tools/toolutil/
Dpkg_icu.cpp38 const char *listNameEnd=strchr(listname, 0); in isListTextFile()
77 listNameEnd=strchr(listname, 0); in readList()
93 end=strchr(line, '#'); in readList()
98 end=strchr(line, 0); in readList()
108 if(*start==0 || NULL!=strchr(U_PKG_RESERVED_CHARS, *start)) { in readList()
/external/libevent/sample/
Dhostcheck.c168 pattern_wildcard = strchr(pattern, '*'); in hostmatch()
176 pattern_label_end = strchr(pattern, '.'); in hostmatch()
177 if(pattern_label_end == NULL || strchr(pattern_label_end+1, '.') == NULL || in hostmatch()
186 hostname_label_end = strchr(hostname, '.'); in hostmatch()
/external/lua/src/
Dldblib.c165 if (strchr(options, 'S')) { in db_getinfo()
172 if (strchr(options, 'l')) in db_getinfo()
174 if (strchr(options, 'u')) { in db_getinfo()
179 if (strchr(options, 'n')) { in db_getinfo()
183 if (strchr(options, 't')) in db_getinfo()
185 if (strchr(options, 'L')) in db_getinfo()
187 if (strchr(options, 'f')) in db_getinfo()
326 if (strchr(smask, 'c')) mask |= LUA_MASKCALL; in makemask()
327 if (strchr(smask, 'r')) mask |= LUA_MASKRET; in makemask()
328 if (strchr(smask, 'l')) mask |= LUA_MASKLINE; in makemask()

12345678910>>...44