Home
last modified time | relevance | path

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

12345678910>>...39

/third_party/python/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)
/third_party/icu/tools/unicode/c/genprops/misc/
Ducdmerge.c43 end=strchr(l, '#'); in endOfData()
50 end=strchr(l, 0); in endOfData()
61 l1=strchr(l1, ';')+1; in sameData()
62 l2=strchr(l2, ';')+1; in sameData()
105 end=strchr(lastLine, '#'); in main()
110 strchr(firstLine, ';'));/* first line starting from the first ; */ in main()
111 } else if(strchr(firstLine, '#')==NULL) { in main()
115 strchr(firstLine, ';'), /* first line starting from the first ; */ in main()
121 strchr(firstLine, ';'), /* first line starting from the first ; */ in main()
/third_party/openssl/crypto/http/
Dhttp_lib.c80 host = strchr(p, '@'); in OSSL_parse_url()
89 host_end = strchr(host + 1, ']'); in OSSL_parse_url()
95 host_end = strchr(host, ':'); in OSSL_parse_url()
97 host_end = strchr(host, '/'); in OSSL_parse_url()
99 host_end = strchr(host, '?'); in OSSL_parse_url()
101 host_end = strchr(host, '#'); in OSSL_parse_url()
131 tmp = strchr(p, '?'); in OSSL_parse_url()
141 tmp = strchr(p, '#'); in OSSL_parse_url()
/third_party/mesa3d/src/compiler/glsl/glcpp/
Dpp.c121 backslash = strchr(shader, '\\'); in remove_line_continuations()
147 cr = strchr(search_start, '\r'); in remove_line_continuations()
148 lf = strchr(search_start, '\n'); in remove_line_continuations()
174 cr = strchr (search_start, '\r'); in remove_line_continuations()
175 lf = strchr (search_start, '\n'); in remove_line_continuations()
216 backslash = strchr(search_start, '\\'); in remove_line_continuations()
/third_party/skia/third_party/externals/microhttpd/src/testcurl/
Dcurl_version_check.c103 curl_ver = strchr (ver, '/'); in curl_check_version()
131 ssl_ver = strchr (curl_ver, ' '); in curl_check_version()
137 ssl_ver = strchr (ssl_ver, '/'); in curl_check_version()
142 ssl_ver = strchr (ssl_ver, '/'); in curl_check_version()
147 ssl_ver = strchr (ssl_ver, '/'); in curl_check_version()
/third_party/musl/src/passwd/
Dgetpwent_a.c30 if (!(s = strchr(s, ':'))) continue; in __getpwent_a()
33 if (!(s = strchr(s, ':'))) continue; in __getpwent_a()
42 if (!(s = strchr(s, ':'))) continue; in __getpwent_a()
45 if (!(s = strchr(s, ':'))) continue; in __getpwent_a()
/third_party/node/deps/icu-small/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()
/third_party/skia/third_party/externals/icu/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()
/third_party/flutter/skia/third_party/externals/icu/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()
/third_party/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()
/third_party/musl/porting/liteos_a/kernel/src/stdio/
D__fmodeflags.c7 if (strchr(mode, '+')) flags = O_RDWR; in __fmodeflags()
10 if (strchr(mode, 'x')) flags |= O_EXCL; in __fmodeflags()
11 if (strchr(mode, 'e')) flags |= O_CLOEXEC; in __fmodeflags()
D__fdopen.c17 if (!strchr("rwa", *mode)) { in __fdopen()
29 if (!strchr(mode, '+')) f->flags = (*mode == 'r') ? F_NOWR : F_NORD; in __fdopen()
32 if (strchr(mode, 'e')) fcntl(fd, F_SETFD, FD_CLOEXEC); in __fdopen()
/third_party/musl/src/stdio/
D__fmodeflags.c7 if (strchr(mode, '+')) flags = O_RDWR; in __fmodeflags()
10 if (strchr(mode, 'x')) flags |= O_EXCL; in __fmodeflags()
11 if (strchr(mode, 'e')) flags |= O_CLOEXEC; in __fmodeflags()
D__fdopen.c15 if (!strchr("rwa", *mode)) { in __fdopen()
27 if (!strchr(mode, '+')) f->flags = (*mode == 'r') ? F_NOWR : F_NORD; in __fdopen()
30 if (strchr(mode, 'e')) __syscall(SYS_fcntl, fd, F_SETFD, FD_CLOEXEC); in __fdopen()
/third_party/musl/porting/liteos_m/kernel/src/stdio/
D__fmodeflags.c7 if (strchr(mode, '+')) flags = O_RDWR; in __fmodeflags()
10 if (strchr(mode, 'x')) flags |= O_EXCL; in __fmodeflags()
11 if (strchr(mode, 'e')) flags |= O_CLOEXEC; in __fmodeflags()
/third_party/musl/porting/uniproton/kernel/src/stdio/
D__fmodeflags.c7 if (strchr(mode, '+')) flags = O_RDWR; in __fmodeflags()
10 if (strchr(mode, 'x')) flags |= O_EXCL; in __fmodeflags()
11 if (strchr(mode, 'e')) flags |= O_CLOEXEC; in __fmodeflags()
/third_party/node/deps/cares/src/lib/
Dinet_net_pton.c82 n = aresx_sztosi(strchr(xdigits, ch) - xdigits); in inet_net_pton_ipv4()
104 n = aresx_sztosi(strchr(digits, ch) - digits); in inet_net_pton_ipv4()
132 n = aresx_sztosi(strchr(digits, ch) - digits); in inet_net_pton_ipv4()
201 pch = strchr(digits, ch); in getbits()
233 pch = strchr(digits, ch); in getv4()
294 if ((pch = strchr((xdigits = xdigits_l), ch)) == NULL) in inet_net_pton_ipv6()
295 pch = strchr((xdigits = xdigits_u), ch); in inet_net_pton_ipv6()
/third_party/mesa3d/src/vulkan/util/
Dvk_util.c36 const char *minor_string = strchr(PACKAGE_VERSION, '.'); in vk_get_driver_version()
37 const char *patch_string = minor_string ? strchr(minor_string + 1, '.') : NULL; in vk_get_driver_version()
61 const char *minor_str = strchr(str, '.'); in vk_get_version_override()
62 const char *patch_str = minor_str ? strchr(minor_str + 1, '.') : NULL; in vk_get_version_override()
/third_party/ltp/pan/
Ddebug.c58 d_level = strchr(d_area, ':'); in set_debug()
73 if ((d_area = strchr(d_area, ',')) != NULL) in set_debug()
76 if ((d_area = strchr(d_level, ',')) == NULL) in set_debug()
/third_party/toybox/toys/pending/
Dwget.c107 *path = strchr(*host, '/'); in wget_info()
109 if ((*path = strchr(*host, '/'))) { in wget_info()
116 if ( *host[0] == '[' && strchr(*host, ']') ) { // IPv6 in wget_info()
119 strchr(*host, ']')[0] = '\0'; in wget_info()
121 if ((*port = strchr(*host, ':'))) { in wget_info()
265 if (f) strchr(f, '\r')[0] = '\0'; in wget_filename()
267 if (!f && strchr(path, '/')) f = getbasename(path); in wget_filename()
/third_party/ffmpeg/libavcodec/
Dhtmlsubtitles.c77 || (in[1] && strchr("CcFfoPSsYy", in[1]) && in[2] == ':')) { in handle_open_brace()
78 char *bracep = strchr(in+2, '}'); in handle_open_brace()
212 if ((param = strchr(tagname, ' '))) in ff_htmlmarkup_to_ass()
279 if ((param = strchr(param, ' '))) in ff_htmlmarkup_to_ass()
284 } else if (tagname[0] && !tagname[1] && strchr("bisu", av_tolower(tagname[0]))) { in ff_htmlmarkup_to_ass()
/third_party/toybox/toys/other/
Dpwgen.c64 if (FLAG(B) && strchr("0O1lI'`.,", c)) continue;
65 if (FLAG(v) && strchr("aeiou", tolower(c))) continue;
68 if (TT.r && strchr(TT.r, c)) continue;
/third_party/gstreamer/gstplugins_base/gst/subparse/
Dmpl2parse.c53 line = strchr (line, ']') + 1; in mpl2_parse_line()
54 line = strchr (line, ']') + 1; in mpl2_parse_line()
76 if ((sep = strchr (line, '|'))) in mpl2_parse_line()

12345678910>>...39