Home
last modified time | relevance | path

Searched refs:idx (Results 1 – 25 of 28) sorted by relevance

12

/ndk/sources/cxx-stl/llvm-libc++/libcxx/test/strings/string.conversions/
Dstof.pass.cpp32 size_t idx = 0; in main() local
33 assert(std::stof("10g", &idx) == 10); in main()
34 assert(idx == 2); in main()
35 idx = 0; in main()
36 assert(std::stof(L"10g", &idx) == 10); in main()
37 assert(idx == 2); in main()
38 idx = 0; in main()
41 assert(std::stof("1.e60", &idx) == INFINITY); in main()
46 assert(idx == 0); in main()
50 assert(std::stof(L"1.e60", &idx) == INFINITY); in main()
[all …]
Dstod.pass.cpp29 size_t idx = 0; in main() local
30 assert(std::stod("10g", &idx) == 10); in main()
31 assert(idx == 2); in main()
32 idx = 0; in main()
33 assert(std::stod(L"10g", &idx) == 10); in main()
34 assert(idx == 2); in main()
37 assert(std::stod("1.e60", &idx) == 1.e60); in main()
38 assert(idx == 5); in main()
46 assert(std::stod(L"1.e60", &idx) == 1.e60); in main()
47 assert(idx == 5); in main()
[all …]
Dstold.pass.cpp31 size_t idx = 0; in main() local
32 assert(std::stold("10g", &idx) == 10); in main()
33 assert(idx == 2); in main()
34 idx = 0; in main()
35 assert(std::stold(L"10g", &idx) == 10); in main()
36 assert(idx == 2); in main()
39 assert(std::stold("1.e60", &idx) == 1.e60L); in main()
40 assert(idx == 5); in main()
48 assert(std::stold(L"1.e60", &idx) == 1.e60L); in main()
49 assert(idx == 5); in main()
[all …]
Dstoull.pass.cpp26 size_t idx = 0; in main() local
27 assert(std::stoull("10g", &idx, 16) == 16); in main()
28 assert(idx == 2); in main()
29 idx = 0; in main()
30 assert(std::stoull(L"10g", &idx, 16) == 16); in main()
31 assert(idx == 2); in main()
32 idx = 0; in main()
35 std::stoull("", &idx); in main()
40 assert(idx == 0); in main()
42 idx = 0; in main()
[all …]
Dstoll.pass.cpp31 size_t idx = 0; in main() local
32 assert(std::stoll("10g", &idx, 16) == 16); in main()
33 assert(idx == 2); in main()
34 idx = 0; in main()
35 assert(std::stoll(L"10g", &idx, 16) == 16); in main()
36 assert(idx == 2); in main()
37 idx = 0; in main()
40 std::stoll("", &idx); in main()
45 assert(idx == 0); in main()
49 std::stoll(L"", &idx); in main()
[all …]
Dstoul.pass.cpp26 size_t idx = 0; in main() local
27 assert(std::stoul("10g", &idx, 16) == 16); in main()
28 assert(idx == 2); in main()
29 idx = 0; in main()
30 assert(std::stoul(L"10g", &idx, 16) == 16); in main()
31 assert(idx == 2); in main()
32 idx = 0; in main()
35 std::stoul("", &idx); in main()
40 assert(idx == 0); in main()
44 std::stoul(L"", &idx); in main()
[all …]
Dstoi.pass.cpp28 size_t idx = 0; in main() local
29 assert(std::stoi("10g", &idx, 16) == 16); in main()
30 assert(idx == 2); in main()
31 idx = 0; in main()
32 assert(std::stoi(L"10g", &idx, 16) == 16); in main()
33 assert(idx == 2); in main()
38 std::stoi("0x100000000", &idx, 16); in main()
46 std::stoi(L"0x100000000", &idx, 16); in main()
53 idx = 0; in main()
56 std::stoi("", &idx); in main()
[all …]
Dstol.pass.cpp28 size_t idx = 0; in main() local
29 assert(std::stol("10g", &idx, 16) == 16); in main()
30 assert(idx == 2); in main()
31 idx = 0; in main()
32 assert(std::stol(L"10g", &idx, 16) == 16); in main()
33 assert(idx == 2); in main()
34 idx = 0; in main()
37 std::stol("", &idx); in main()
42 assert(idx == 0); in main()
46 std::stol(L"", &idx); in main()
[all …]
/ndk/sources/cxx-stl/llvm-libc++/libcxx/src/
Dstring.cpp62 as_integer_helper(const string& func, const S& str, size_t* idx, int base, F f) in as_integer_helper() argument
74 if (idx) in as_integer_helper()
75 *idx = static_cast<size_t>(ptr - p); in as_integer_helper()
82 as_integer(const string& func, const S& s, size_t* idx, int base);
88 as_integer(const string& func, const string& s, size_t* idx, int base ) in as_integer() argument
91 long r = as_integer_helper<long>( func, s, idx, base, strtol ); in as_integer()
100 as_integer(const string& func, const string& s, size_t* idx, int base ) in as_integer() argument
102 return as_integer_helper<long>( func, s, idx, base, strtol ); in as_integer()
108 as_integer( const string& func, const string& s, size_t* idx, int base ) in as_integer() argument
110 return as_integer_helper<unsigned long>( func, s, idx, base, strtoul ); in as_integer()
[all …]
/ndk/sources/android/support/src/musl-locale/
Dlanginfo.c32 int idx = item & 65535; in nl_langinfo() local
39 if (idx > 1) return NULL; in nl_langinfo()
43 if (idx > 0x31) return NULL; in nl_langinfo()
47 if (idx > 0) return NULL; in nl_langinfo()
51 if (idx > 1) return NULL; in nl_langinfo()
58 for (; idx; idx--, str++) for (; *str; str++); in nl_langinfo()
/ndk/tests/device/test-stlport_shared-exception/jni/
Dvariadic73.cpp7 template<typename... Exceptions> void f(int idx) throw(Exceptions...) { in f() argument
8 if (idx == 0) throw A(); in f()
9 else if (idx == 1) throw B(); in f()
10 else if (idx == 2) throw C(); in f()
/ndk/tests/device/test-stlport_static-exception/jni/
Dvariadic73.cpp7 template<typename... Exceptions> void f(int idx) throw(Exceptions...) { in f() argument
8 if (idx == 0) throw A(); in f()
9 else if (idx == 1) throw B(); in f()
10 else if (idx == 2) throw C(); in f()
/ndk/sources/host-tools/sed-4.2.1/testsuite/
Dtst-rxspencer.c168 check_match (regmatch_t *rm, int idx, const char *string, in check_match() argument
173 if (rm[idx].rm_so == -1 && rm[idx].rm_eo == -1) in check_match()
175 printf ("%s rm[%d] unexpectedly matched\n", fail, idx); in check_match()
179 if (rm[idx].rm_so == -1 || rm[idx].rm_eo == -1) in check_match()
181 printf ("%s rm[%d] unexpectedly did not match\n", fail, idx); in check_match()
187 if (rm[idx].rm_so != rm[idx].rm_eo) in check_match()
189 printf ("%s rm[%d] not empty\n", fail, idx); in check_match()
193 if (strncmp (string + rm[idx].rm_so, match + 1, strlen (match + 1) in check_match()
196 printf ("%s rm[%d] not matching %s\n", fail, idx, match); in check_match()
202 if (rm[idx].rm_eo - rm[idx].rm_so != strlen (match) in check_match()
[all …]
/ndk/sources/host-tools/sed-4.2.1/lib/
Dregex_internal.h340 Idx idx; /* for BACK_REF */ member
441 static unsigned int re_string_context_at (const re_string_t *input, Idx idx,
448 #define re_string_first_byte(pstr, idx) \ argument
449 ((idx) == (pstr)->valid_len || (pstr)->wcs[idx] != WEOF)
450 #define re_string_is_single_byte_char(pstr, idx) \ argument
451 ((pstr)->wcs[idx] != WEOF && ((pstr)->valid_len == (idx) + 1 \
452 || (pstr)->wcs[(idx) + 1] != WEOF))
457 #define re_string_byte_at(pstr,idx) ((pstr)->mbs[idx]) argument
458 #define re_string_skip_bytes(pstr,idx) ((pstr)->cur_idx += (idx)) argument
459 #define re_string_set_index(pstr,idx) ((pstr)->cur_idx = (idx)) argument
[all …]
Dregex_internal.c575 re_string_reconstruct (re_string_t *pstr, Idx idx, int eflags) in re_string_reconstruct() argument
579 if (BE (pstr->raw_mbs_idx <= idx, 0)) in re_string_reconstruct()
580 offset = idx - pstr->raw_mbs_idx; in re_string_reconstruct()
598 offset = idx; in re_string_reconstruct()
645 pstr->len = pstr->raw_len - idx + offset; in re_string_reconstruct()
646 pstr->stop = pstr->raw_stop - idx + offset; in re_string_reconstruct()
698 pstr->len = pstr->raw_len - idx + offset; in re_string_reconstruct()
699 pstr->stop = pstr->raw_stop - idx + offset; in re_string_reconstruct()
765 pstr->valid_len = re_string_skip_chars (pstr, idx, &wc) - idx; in re_string_reconstruct()
801 pstr->raw_mbs_idx = idx; in re_string_reconstruct()
[all …]
Dregcomp.c1010 && clexp_node->opr.idx == dfa->nodes[node_idx].opr.idx) in create_initial_state()
1274 int idx = node->token.opr.idx; in optimize_subexps() local
1275 node->token.opr.idx = dfa->subexp_map[idx]; in optimize_subexps()
1276 dfa->used_bkref_map |= 1 << node->token.opr.idx; in optimize_subexps()
1282 Idx other_idx = node->left->token.opr.idx; in optimize_subexps()
1288 dfa->subexp_map[other_idx] = dfa->subexp_map[node->token.opr.idx]; in optimize_subexps()
1333 && (node->token.opr.idx >= BITSET_WORD_BITS in lower_subexp()
1335 & ((bitset_word_t) 1 << node->token.opr.idx)))) in lower_subexp()
1350 op->token.opr.idx = cls->token.opr.idx = node->token.opr.idx; in lower_subexp()
1406 Idx idx = node->node_idx; in link_nfa_nodes() local
[all …]
Dregexec.c65 const re_dfastate_t *state, Idx idx)
191 const re_string_t *input, Idx idx)
204 const re_token_t *node, Idx idx)
1075 Idx idx) in acquire_init_state_context() argument
1081 context = re_string_context_at (&mctx->input, idx - 1, mctx->eflags); in acquire_init_state_context()
1268 const re_dfastate_t *state, Idx idx) in check_halt_state_context() argument
1275 context = re_string_context_at (&mctx->input, idx, mctx->eflags); in check_halt_state_context()
1345 Idx subexp_idx = dfa->nodes[node].opr.idx + 1; in proceed_next_node()
1406 fs->stack[num].idx = str_idx; in push_fail_stack()
1423 *pidx = fs->stack[num].idx; in pop_fail_stack()
[all …]
/ndk/sources/cxx-stl/stlport/src/
Dcxa.c61 size_t idx; member
121 for (i = 0; i < l->idx; ++i) in __new_exitfn()
124 if ( i < l->idx ) in __new_exitfn()
127 if (l->idx < sizeof (l->fns) / sizeof (l->fns[0])) { in __new_exitfn()
128 i = l->idx++; in __new_exitfn()
139 l->idx = 1; in __new_exitfn()
174 for (f = &funcs->fns[funcs->idx - 1]; f >= &funcs->fns[0]; --f) { in __cxa_finalize()
/ndk/build/tools/toolchain-patches/mclinker/
D0001-Compile-against-llvm-3.3.patch35 st_info = symtab[idx].st_info;
36 st_other = symtab[idx].st_other;
40 st_name = symtab[idx].st_name;
41 st_value = symtab[idx].st_value;
42 st_size = symtab[idx].st_size;
91 for (size_t idx = 0; idx < shnum; ++idx) {
94 sh_name = shdrTab[idx].sh_name;
95 sh_type = shdrTab[idx].sh_type;
96 sh_flags = shdrTab[idx].sh_flags;
112 d_tag = dynamic[idx].d_tag;
[all …]
/ndk/sources/host-tools/make-3.81/
Dcommands.c272 unsigned int nlines, idx; in chop_commands() local
287 idx = 0; in chop_commands()
309 if (idx == nlines) in chop_commands()
315 lines[idx++] = savestring (p, end - p); in chop_commands()
321 if (idx != nlines) in chop_commands()
323 nlines = idx; in chop_commands()
333 for (idx = 0; idx < nlines; ++idx) in chop_commands()
337 for (p = lines[idx]; in chop_commands()
358 cmds->lines_flags[idx] = flags; in chop_commands()
Dread.c1327 unsigned int idx = 0; in do_define() local
1382 if (idx == 0) in do_define()
1385 definition[idx - 1] = '\0'; in do_define()
1398 if (idx + len + 1 > length) in do_define()
1400 length = (idx + len) * 2; in do_define()
1404 bcopy (line, &definition[idx], len); in do_define()
1405 idx += len; in do_define()
1407 definition[idx++] = '\n'; in do_define()
2842 register unsigned int idx = 0; in construct_include_path() local
2867 if (idx == max - 1) in construct_include_path()
[all …]
Dmain.c132 unsigned int idx; /* Index into above. */ member
1456 for (i = 0; i < makefiles->idx; ++i) in main()
1654 for (ui=1; ui < jobserver_fds->idx; ++ui) in main()
1736 jobserver_fds->idx = 1; in main()
2000 if (directories != 0 && directories->idx > 0) in main()
2477 sl->idx = 0; in decode_switches()
2481 else if (sl->idx == sl->max - 1) in decode_switches()
2488 sl->list[sl->idx++] = optarg; in decode_switches()
2489 sl->list[sl->idx] = 0; in decode_switches()
2772 register unsigned int i = sl->idx; in define_makeflags()
/ndk/sources/host-tools/sed-4.2.1/sed/
Dcompile.c716 setup_label(list, idx, name, err_info) in setup_label() argument
718 countT idx;
723 ret->v_index = idx;
1309 int i, j, idx, src_char_num; local
1331 idx = 0;
1341 if (idx >= dest_len)
1351 mbclen = MBRLEN (dest_buf + idx, dest_len - idx, &cur_stat);
1360 strncpy(trans_pairs[2 * i + 1], dest_buf + idx, mbclen);
1362 idx += mbclen; /* Forward to next character. */
1365 if (idx != dest_len)
Dexecute.c1671 int idx, prev_idx; /* index in the input line. */ local
1675 for (idx = 0; idx < line.length;)
1678 mbclen = MBRLEN (line.active + idx, line.length - idx,
1691 if (strncmp(line.active + idx, trans[2*i], mbclen) == 0)
1713 prev_idx = idx;
1719 move_from = line.active + idx + mbclen;
1720 move_to = line.active + idx + trans_len;
1721 move_len = line.length + 1 - idx - mbclen;
1725 idx += move_offset;
1732 idx += mbclen;
/ndk/sources/cxx-stl/llvm-libc++/libcxx/test/utilities/intseq/intseq.general/
Dinteger_seq.pass.cpp22 auto extract ( const AtContainer &t, const std::integer_sequence<T, I...> idx ) in extract() argument

12