/ndk/sources/cxx-stl/llvm-libc++/libcxx/test/strings/string.conversions/ |
D | stof.pass.cpp | 32 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() 44 assert(std::stof("1.e60", &idx) == INFINITY); in main() 45 assert(idx == 5); in main() 56 assert(std::stof(L"1.e60", &idx) == INFINITY); in main() [all …]
|
D | stold.pass.cpp | 31 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 …]
|
D | stod.pass.cpp | 29 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 …]
|
D | stoull.pass.cpp | 29 size_t idx = 0; in main() local 30 assert(std::stoull("10g", &idx, 16) == 16); in main() 31 assert(idx == 2); in main() 32 idx = 0; in main() 33 assert(std::stoull(L"10g", &idx, 16) == 16); in main() 34 assert(idx == 2); in main() 35 idx = 0; in main() 38 std::stoull("", &idx); in main() 43 assert(idx == 0); in main() 45 idx = 0; in main() [all …]
|
D | stoul.pass.cpp | 29 size_t idx = 0; in main() local 30 assert(std::stoul("10g", &idx, 16) == 16); in main() 31 assert(idx == 2); in main() 32 idx = 0; in main() 33 assert(std::stoul(L"10g", &idx, 16) == 16); in main() 34 assert(idx == 2); in main() 35 idx = 0; in main() 38 std::stoul("", &idx); in main() 43 assert(idx == 0); in main() 47 std::stoul(L"", &idx); in main() [all …]
|
D | stoll.pass.cpp | 31 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 …]
|
D | stol.pass.cpp | 31 size_t idx = 0; in main() local 32 assert(std::stol("10g", &idx, 16) == 16); in main() 33 assert(idx == 2); in main() 34 idx = 0; in main() 35 assert(std::stol(L"10g", &idx, 16) == 16); in main() 36 assert(idx == 2); in main() 37 idx = 0; in main() 40 std::stol("", &idx); in main() 45 assert(idx == 0); in main() 49 std::stol(L"", &idx); in main() [all …]
|
D | stoi.pass.cpp | 28 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 …]
|
/ndk/sources/cxx-stl/llvm-libc++/libcxx/src/ |
D | string.cpp | 66 as_integer_helper(const string& func, const S& str, size_t* idx, int base, F f) in as_integer_helper() argument 78 if (idx) in as_integer_helper() 79 *idx = static_cast<size_t>(ptr - p); in as_integer_helper() 86 as_integer(const string& func, const S& s, size_t* idx, int base); 92 as_integer(const string& func, const string& s, size_t* idx, int base ) in as_integer() argument 95 long r = as_integer_helper<long>( func, s, idx, base, strtol ); in as_integer() 104 as_integer(const string& func, const string& s, size_t* idx, int base ) in as_integer() argument 106 return as_integer_helper<long>( func, s, idx, base, strtol ); in as_integer() 112 as_integer( const string& func, const string& s, size_t* idx, int base ) in as_integer() argument 114 return as_integer_helper<unsigned long>( func, s, idx, base, strtoul ); in as_integer() [all …]
|
/ndk/sources/android/support/src/musl-locale/ |
D | langinfo.c | 32 int idx = item & 65535; in nl_langinfo_l() local 39 if (idx > 1) return NULL; in nl_langinfo_l() 43 if (idx > 0x31) return NULL; in nl_langinfo_l() 47 if (idx > 0) return NULL; in nl_langinfo_l() 51 if (idx > 1) return NULL; in nl_langinfo_l() 58 for (; idx; idx--, str++) for (; *str; str++); in nl_langinfo_l()
|
/ndk/sources/cxx-stl/llvm-libc++abi/libcxxabi/src/ |
D | cxa_vector.cpp | 77 st_cxa_cleanup ( void *ptr, size_t &idx, size_t element_size, destruct_f destructor ) in st_cxa_cleanup() argument 78 : ptr_ ( ptr ), idx_ ( idx ), element_size_ ( element_size ), in st_cxa_cleanup() 210 size_t idx = 0; in __cxa_vec_cctor() local 213 st_cxa_cleanup cleanup ( dest_array, idx, element_size, destructor ); in __cxa_vec_cctor() 215 for ( idx = 0; idx < element_count; in __cxa_vec_cctor() 216 ++idx, src_ptr += element_size, dest_ptr += element_size ) in __cxa_vec_cctor() 235 size_t idx; in __cxa_vec_ctor() local 237 st_cxa_cleanup cleanup ( array_address, idx, element_size, destructor ); in __cxa_vec_ctor() 240 for ( idx = 0; idx < element_count; ++idx, ptr += element_size ) in __cxa_vec_ctor() 258 size_t idx = element_count; in __cxa_vec_dtor() local [all …]
|
/ndk/tests/device/test-stlport_static-exception/jni/ |
D | variadic73.cpp | 7 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_shared-exception/jni/ |
D | variadic73.cpp | 7 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/ |
D | tst-rxspencer.c | 168 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/ |
D | regex_internal.h | 340 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 …]
|
D | regex_internal.c | 575 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 …]
|
D | regcomp.c | 1010 && 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 …]
|
D | regexec.c | 65 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/ |
D | cxa.c | 61 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/tests/abcc/jni/host/ |
D | main.cpp | 25 unsigned idx = 1; in parseArguments() local 27 while (argv[idx] != 0) { in parseArguments() 28 std::string arg = argv[idx++]; in parseArguments() 46 input = argv[idx++]; in parseArguments() 47 output = argv[idx++]; in parseArguments()
|
/ndk/sources/host-tools/make-3.81/ |
D | commands.c | 272 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()
|
D | read.c | 1327 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 …]
|
/ndk/sources/android/crazy_linker/src/ |
D | crazy_linker_util.h | 283 int idx = items_.IndexOf(item); in Add() local 284 if (idx >= 0) in Add() 293 int idx = items_.IndexOf(item); in Del() local 294 if (idx < 0) in Del() 296 items_.RemoveAt(idx); in Del()
|
D | crazy_linker_elf_relocations.cpp | 668 for (size_t idx = mips_gotsym_; idx < mips_symtab_count_; idx++, got++) { in RelocateMipsGot() local 669 const char* sym_name = symbols->LookupNameById(idx); in RelocateMipsGot() 677 if (symbols->IsWeakById(idx)) { in RelocateMipsGot()
|
/ndk/sources/host-tools/sed-4.2.1/sed/ |
D | compile.c | 716 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)
|