Home
last modified time | relevance | path

Searched refs:strtok (Results 1 – 25 of 173) sorted by relevance

1234567

/external/llvm-project/libc/test/src/string/
Dstrtok_test.cpp14 ASSERT_STREQ(__llvm_libc::strtok(empty, ""), nullptr); in TEST()
15 ASSERT_STREQ(__llvm_libc::strtok(empty, "_"), nullptr); in TEST()
18 ASSERT_STREQ(__llvm_libc::strtok(single, ""), "_"); in TEST()
21 ASSERT_STREQ(__llvm_libc::strtok(multiple, ":"), "1,2"); in TEST()
26 ASSERT_STREQ(__llvm_libc::strtok(src, "."), "123"); in TEST()
31 ASSERT_STREQ(__llvm_libc::strtok(src, ","), "12"); in TEST()
36 ASSERT_STREQ(__llvm_libc::strtok(src, ":"), "1234"); in TEST()
41 ASSERT_STREQ(__llvm_libc::strtok(src, "."), "12,"); in TEST()
42 ASSERT_STREQ(__llvm_libc::strtok(src, ".,"), "12"); in TEST()
43 ASSERT_STREQ(__llvm_libc::strtok(src, ",."), "12"); in TEST()
[all …]
/external/f2fs-tools/tools/
Df2fs_io_parse.c169 ptr = strtok(NULL, " "); in handle_tp_pid()
172 ptr = strtok(NULL, " "); in handle_tp_pid()
183 ptr = strtok(NULL, " "); in handle_tp_ios()
186 ptr = strtok(NULL, " "); in handle_tp_ios()
187 ptr = strtok(NULL, " "); in handle_tp_ios()
190 ptr = strtok(NULL, " "); in handle_tp_ios()
193 ptr = strtok(NULL, " "); in handle_tp_ios()
195 ptr = strtok(NULL, " "); in handle_tp_ios()
198 ptr = strtok(NULL, " "); in handle_tp_ios()
217 ptr = strtok(line, ":"); in do_parse()
[all …]
/external/llvm-project/compiler-rt/test/asan/TestCases/
Dstrtok.c37 token = strtok(s, token_delimiter); in test1()
47 token = strtok(s, token_delimiter); in test2()
50 token = strtok(NULL, token_delimiter); in test2()
60 token = strtok(s, token_delimiter); in test3()
69 token = strtok(s, token_delimiter); in test4()
80 token = strtok(s, token_delimiter); in test5()
90 token = strtok(s, &token_delimiter[1]); in test6()
/external/adhd/cras/src/server/
Dcras_hfp_slc.c293 strtok(tokens, "="); in bluetooth_codec_selection()
294 codec = strtok(NULL, ","); in bluetooth_codec_selection()
338 strtok(tokens, "="); in apple_accessory_state_change()
339 num = strtok(NULL, ","); in apple_accessory_state_change()
346 key = strtok(NULL, ","); in apple_accessory_state_change()
347 val = strtok(NULL, ","); in apple_accessory_state_change()
394 strtok(tokens, "="); in apple_supported_features()
396 strtok(NULL, ","); in apple_supported_features()
397 features = strtok(NULL, ","); in apple_supported_features()
433 strtok(tokens, "="); in available_codecs()
[all …]
/external/toybox/toys/other/
Dlsmod.c26 char *name = strtok(toybuf, " "), *size = strtok(NULL, " "), in lsmod_main()
27 *refcnt = strtok(NULL, " "), *users = strtok(NULL, " "); in lsmod_main()
/external/linux-kselftest/tools/testing/selftests/cgroup/
Dcgroup_util.c171 for (line = strtok(buf, delim); line; line = strtok(NULL, delim)) in cg_read_lc()
203 for (fs = strtok(buf, delim); fs; fs = strtok(NULL, delim)) { in cg_find_unified_root()
204 mount = strtok(NULL, delim); in cg_find_unified_root()
205 type = strtok(NULL, delim); in cg_find_unified_root()
206 strtok(NULL, delim); in cg_find_unified_root()
207 strtok(NULL, delim); in cg_find_unified_root()
208 strtok(NULL, delim); in cg_find_unified_root()
404 for (line = strtok(buf, delim); line; line = strtok(NULL, delim)) in is_swap_enabled()
/external/python/cpython2/Lib/ctypes/test/
Dtest_funcptr.py104 strtok = lib.my_strtok
105 strtok.restype = c_char_p
121 self.assertEqual(strtok(b, "\n"), "a")
122 self.assertEqual(strtok(None, "\n"), "b")
123 self.assertEqual(strtok(None, "\n"), "c")
124 self.assertEqual(strtok(None, "\n"), None)
/external/python/cpython3/Lib/ctypes/test/
Dtest_funcptr.py104 strtok = lib.my_strtok
105 strtok.restype = c_char_p
121 self.assertEqual(strtok(b, b"\n"), b"a")
122 self.assertEqual(strtok(None, b"\n"), b"b")
123 self.assertEqual(strtok(None, b"\n"), b"c")
124 self.assertEqual(strtok(None, b"\n"), None)
/external/ltp/testcases/kernel/fs/doio/
Dstring_to_tokens.c84 char *strtok(); in string_to_tokens()
93 if ((arg_array[num_toks] = strtok(arg_string, separator)) == NULL) { in string_to_tokens()
98 if ((arg_array[num_toks] = strtok(NULL, separator)) == NULL) in string_to_tokens()
/external/ppp/pppd/plugins/radius/
Dradrealms.c83 p = strtok(buffer, "\t "); in lookup_realm()
100 if ((p = strtok(NULL, "\t ")) == NULL) { in lookup_realm()
110 if ((p = strtok(NULL, ":")) == NULL) { in lookup_realm()
118 if ((p = strtok(NULL, "\t ")) == NULL) { in lookup_realm()
Dconfig.c102 while ((p = strtok(p, ", \t")) != NULL) { in set_option_srv()
148 p = strtok(p, ", \t"); in set_option_auo()
159 p = strtok(NULL, ", \t"); in set_option_auo()
480 if ((h = strtok (buffer, " \t\n")) == NULL) /* first hostname */ in rc_find_server()
492 if ((s = strtok (NULL, " \t\n")) == NULL) /* and secret field */ in rc_find_server()
514 strtok (hostnm, "/"); in rc_find_server()
517 host2 = strtok (NULL, " "); in rc_find_server()
/external/igt-gpu-tools/lib/
Digt_eld.c111 tok = strtok(value, " "); in parse_sad_field()
118 tok = strtok(NULL, " "); in parse_sad_field()
171 key = strtok(buf, ELD_DELIM); in eld_parse_entry()
172 value = strtok(NULL, ""); in eld_parse_entry()
/external/grpc-grpc/src/core/ext/filters/workarounds/
Dworkaround_cronet_compression_filter.cc145 char* head = strtok(user_agent_str, " "); in parse_user_agent()
157 head = strtok(nullptr, " "); in parse_user_agent()
160 major_version_str = strtok(major_version_str, "."); in parse_user_agent()
161 minor_version_str = strtok(nullptr, "."); in parse_user_agent()
/external/rust/crates/grpcio-sys/grpc/src/core/ext/filters/workarounds/
Dworkaround_cronet_compression_filter.cc147 char* head = strtok(user_agent_str, " "); in parse_user_agent()
159 head = strtok(nullptr, " "); in parse_user_agent()
162 major_version_str = strtok(major_version_str, "."); in parse_user_agent()
163 minor_version_str = strtok(nullptr, "."); in parse_user_agent()
/external/toybox/toys/pending/
Dwget.c197 result = strtok(toybuf, "\r"); in wget_main()
198 strtok(result, " "); in wget_main()
199 rc = strtok(NULL, " "); in wget_main()
200 r_str = strtok(NULL, " "); in wget_main()
/external/selinux/policycoreutils/secon/
Dsecon.c658 color.user_fg = strtok(color_str, " "); in disp_con()
661 color.user_bg = strtok(NULL, " "); in disp_con()
665 color.role_fg = strtok(NULL, " "); in disp_con()
668 color.role_bg = strtok(NULL, " "); in disp_con()
672 color.type_fg = strtok(NULL, " "); in disp_con()
675 color.type_bg = strtok(NULL, " "); in disp_con()
679 color.range_fg = strtok(NULL, " "); in disp_con()
682 color.range_bg = strtok(NULL, " "); in disp_con()
/external/ltp/testcases/kernel/fs/mongo/
Dmongo_slinks.c40 old_path = strtok(line_buffer, "\t "); in main()
41 new_path = strtok(NULL, "\t\n "); in main()
/external/ltp/testcases/network/nfsv4/locks/
Dnetsync.c184 p = strtok(conf, ":"); in getConfiguration()
187 p = strtok(NULL, ":"); in getConfiguration()
190 p = strtok(NULL, ":"); in getConfiguration()
/external/e2fsprogs/lib/e2p/
Dencoding.c89 char *f = strtok(param, "-"); in e2p_str2encoding_flags()
115 f = strtok(NULL, "-"); in e2p_str2encoding_flags()
/external/python/pycparser/utils/internal/
Dzc.c63 stray = strtok(line, delim); in main()
67 stray = strtok(NULL, delim); in main()
/external/mesa3d/src/gallium/frontends/xvmc/tests/
Dxvmc_bench.c103 char *token = strtok(argv[++i], ","); in ParseArgs()
117 token = strtok(NULL, ","); in ParseArgs()
122 char *token = strtok(argv[++i], ","); in ParseArgs()
136 token = strtok(NULL, ","); in ParseArgs()
/external/curl/src/
Dtool_dirhie.c125 tempdir = strtok(outdup, PATH_DELIMITERS); in create_dir_hierarchy()
129 tempdir2 = strtok(NULL, PATH_DELIMITERS); in create_dir_hierarchy()
/external/ltp/pan/
Dsplitstr.c108 cur_tok = strtok(arg_string, separator); in splitstr()
111 cur_tok = strtok(NULL, separator); in splitstr()
/external/iproute2/tc/
Dq_mqprio.c73 tok = strtok(tmp, "@"); in mqprio_parse_opt()
79 tok = strtok(NULL, "@"); in mqprio_parse_opt()
/external/harfbuzz_ng/util/
Doptions-subset.cc101 char *s = strtok((char *) arg, ", "); in parse_drop_tables()
118 s = strtok(nullptr, ", "); in parse_drop_tables()

1234567