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/
H A Dtest_returnfuncptrs.py10 # The get_strchr function returns a *pointer* to the C strchr function.
14 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(
[all...]
H A 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")
64 # to strchr is no longer valid after the function returns!
67 strchr
[all...]
H A 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/
H A 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/backends/sanei/
H A Dsanei_auth.c190 if (strchr (line, ':') != NULL) in sanei_authorize()
192 if (strchr (strchr (line, ':') + 1, ':') != NULL) in sanei_authorize()
195 if (strcmp (strchr (strchr (line, ':') + 1, ':') + 1, resource) in sanei_authorize()
252 (((strchr (line, ':')) - line) == (signed) strlen (username))) in sanei_authorize()
255 linep = strchr (line, ':') + 1; in sanei_authorize()
257 if ((strchr (linep, ':') != NULL) in sanei_authorize()
258 && (strcmp (strchr (linep, ':') + 1, resource) == 0)) in sanei_authorize()
261 *(strchr (line in sanei_authorize()
[all...]
/third_party/openssl/crypto/http/
H A 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/musl/src/passwd/
H A 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/mesa3d/src/compiler/glsl/glcpp/
H A 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/node/deps/cares/src/lib/
H A Dinet_net_pton.c87 n = (int)(strchr(xdigits, ch) - xdigits); in ares_inet_net_pton_ipv4()
112 n = (int)(strchr(digits, ch) - digits); in ares_inet_net_pton_ipv4()
144 n = (int)(strchr(digits, ch) - digits); in ares_inet_net_pton_ipv4()
220 pch = strchr(digits, ch); in getbits()
271 if ((pch = strchr((xdigits = xdigits_l), ch)) == NULL) { in ares_inet_pton6()
272 pch = strchr((xdigits = xdigits_u), ch); in ares_inet_pton6()
368 sep = strchr(buf, '/'); in ares_inet_net_pton_ipv6()
/third_party/node/deps/icu-small/source/tools/toolutil/
H A 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 || nullptr!=strchr(U_PKG_RESERVED_CHARS, *start)) { in readList()
/third_party/icu/icu4c/source/tools/toolutil/
H A 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/
H A 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/microhttpd/src/testcurl/
H A 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/porting/liteos_a/kernel/src/stdio/
H A 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()
H A 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/porting/uniproton/kernel/src/stdio/
H A 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/liteos_m/kernel/src/stdio/
H A 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/mesa3d/src/vulkan/util/
H A 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/node/deps/openssl/openssl/crypto/http/
H A Dhttp_lib.c88 host = strchr(p, '@'); in OSSL_parse_url()
97 host_end = strchr(host + 1, ']'); in OSSL_parse_url()
103 host_end = strchr(host, ':'); in OSSL_parse_url()
105 host_end = strchr(host, '/'); in OSSL_parse_url()
107 host_end = strchr(host, '?'); in OSSL_parse_url()
109 host_end = strchr(host, '#'); in OSSL_parse_url()
139 tmp = strchr(p, '?'); in OSSL_parse_url()
149 tmp = strchr(p, '#'); in OSSL_parse_url()
/third_party/ltp/pan/
H A 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/
H A 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/toybox/toys/other/
H A Dpwgen.c64 if (FLAG(B) && strchr("0O1lI'`.,", c)) continue; in pwgen_main()
65 if (FLAG(v) && strchr("aeiou", tolower(c))) continue; in pwgen_main()
68 if (TT.r && strchr(TT.r, c)) continue; in pwgen_main()
/third_party/libcoap/man/
H A Dexamples-code-check.c287 ecp = strchr(cp, ','); in decode_synopsis_definition()
289 ecp = strchr(cp, ')'); in decode_synopsis_definition()
301 ecp = strchr(cp, ','); in decode_synopsis_definition()
303 ecp = strchr(cp, ')'); in decode_synopsis_definition()
341 char *wcp = strchr(func_start, '('); in decode_synopsis_definition()
344 wcp = strchr(func_start, ';'); in decode_synopsis_definition()
346 wcp = strchr(func_start, '\n'); in decode_synopsis_definition()
413 char *cp = strchr(tmp_name, '\n'); in main()
583 cp = strchr(buffer, '\n'); in main()
586 cp = strchr(buffe in main()
[all...]
/third_party/ffmpeg/libavcodec/
H A 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/ltp/testcases/open_posix_testsuite/conformance/interfaces/strchr/
H A D1-1.c19 * -Use strchr for string with char1 and store result in result1.
20 * -Use strchr for string with char2 and store result in result2.
21 * -Use strchr for string with char3 and store result in result3.
36 #define TNAME "strchr/1-1.c"
75 char *ret_str_1 = strchr(sample_str, sample_char_1); in main()
76 char *ret_str_2 = strchr(sample_str, sample_char_2); in main()
77 char *ret_str_3 = strchr(sample_str, sample_char_3); in main()

Completed in 9 milliseconds

12345678910>>...39