Searched defs:idx (Results 1 - 20 of 20) sorted by relevance

/ndk/sources/cxx-stl/llvm-libc++/libcxx/test/strings/string.conversions/
H A Dstod.pass.cpp12 // double stod(const string& str, size_t *idx = 0);
13 // double stod(const wstring& str, size_t *idx = 0);
29 size_t idx = 0; local
30 assert(std::stod("10g", &idx) == 10);
31 assert(idx == 2);
32 idx = 0;
33 assert(std::stod(L"10g", &idx) == 10);
34 assert(idx == 2);
37 assert(std::stod("1.e60", &idx) == 1.e60);
38 assert(idx
[all...]
H A Dstof.pass.cpp15 // float stof(const string& str, size_t *idx = 0);
16 // float stof(const wstring& str, size_t *idx = 0);
32 size_t idx = 0; local
33 assert(std::stof("10g", &idx) == 10);
34 assert(idx == 2);
35 idx = 0;
36 assert(std::stof(L"10g", &idx) == 10);
37 assert(idx == 2);
38 idx = 0;
44 assert(std::stof("1.e60", &idx)
[all...]
H A Dstoi.pass.cpp12 // int stoi(const string& str, size_t *idx = 0, int base = 10);
13 // int stoi(const wstring& str, size_t *idx = 0, int base = 10);
28 size_t idx = 0; local
29 assert(std::stoi("10g", &idx, 16) == 16);
30 assert(idx == 2);
31 idx = 0;
32 assert(std::stoi(L"10g", &idx, 16) == 16);
33 assert(idx == 2);
38 std::stoi("0x100000000", &idx, 16);
46 std::stoi(L"0x100000000", &idx, 1
[all...]
H A Dstol.pass.cpp15 // long stol(const string& str, size_t *idx = 0, int base = 10);
16 // long stol(const wstring& str, size_t *idx = 0, int base = 10);
31 size_t idx = 0; local
32 assert(std::stol("10g", &idx, 16) == 16);
33 assert(idx == 2);
34 idx = 0;
35 assert(std::stol(L"10g", &idx, 16) == 16);
36 assert(idx == 2);
37 idx = 0;
40 std::stol("", &idx);
[all...]
H A Dstold.pass.cpp12 // long double stold(const string& str, size_t *idx = 0);
13 // long double stold(const wstring& str, size_t *idx = 0);
31 size_t idx = 0; local
32 assert(std::stold("10g", &idx) == 10);
33 assert(idx == 2);
34 idx = 0;
35 assert(std::stold(L"10g", &idx) == 10);
36 assert(idx == 2);
39 assert(std::stold("1.e60", &idx) == 1.e60L);
40 assert(idx
[all...]
H A Dstoll.pass.cpp15 // long long stoll(const string& str, size_t *idx = 0, int base = 10);
16 // long long stoll(const wstring& str, size_t *idx = 0, int base = 10);
31 size_t idx = 0; local
32 assert(std::stoll("10g", &idx, 16) == 16);
33 assert(idx == 2);
34 idx = 0;
35 assert(std::stoll(L"10g", &idx, 16) == 16);
36 assert(idx == 2);
37 idx = 0;
40 std::stoll("", &idx);
[all...]
H A Dstoul.pass.cpp15 // unsigned long stoul(const string& str, size_t *idx = 0, int base = 10);
16 // unsigned long stoul(const wstring& str, size_t *idx = 0, int base = 10);
29 size_t idx = 0; local
30 assert(std::stoul("10g", &idx, 16) == 16);
31 assert(idx == 2);
32 idx = 0;
33 assert(std::stoul(L"10g", &idx, 16) == 16);
34 assert(idx == 2);
35 idx = 0;
38 std::stoul("", &idx);
[all...]
H A Dstoull.pass.cpp15 // unsigned long long stoull(const string& str, size_t *idx = 0, int base = 10);
16 // unsigned long long stoull(const wstring& str, size_t *idx = 0, int base = 10);
29 size_t idx = 0; local
30 assert(std::stoull("10g", &idx, 16) == 16);
31 assert(idx == 2);
32 idx = 0;
33 assert(std::stoull(L"10g", &idx, 16) == 16);
34 assert(idx == 2);
35 idx = 0;
38 std::stoull("", &idx);
[all...]
/ndk/tests/device/test-stlport_shared-exception/jni/
H A Dvariadic73.cpp7 template<typename... Exceptions> void f(int idx) throw(Exceptions...) { argument
8 if (idx == 0) throw A();
9 else if (idx == 1) throw B();
10 else if (idx == 2) throw C();
/ndk/tests/device/test-stlport_static-exception/jni/
H A Dvariadic73.cpp7 template<typename... Exceptions> void f(int idx) throw(Exceptions...) { argument
8 if (idx == 0) throw A();
9 else if (idx == 1) throw B();
10 else if (idx == 2) throw C();
/ndk/sources/android/support/src/musl-locale/
H A Dlanginfo.c32 int idx = item & 65535; local
39 if (idx > 1) return NULL;
43 if (idx > 0x31) return NULL;
47 if (idx > 0) return NULL;
51 if (idx > 1) return NULL;
58 for (; idx; idx--, str++) for (; *str; str++);
/ndk/tests/abcc/jni/host/
H A Dmain.cpp25 unsigned idx = 1; local
27 while (argv[idx] != 0) {
28 std::string arg = argv[idx++];
46 input = argv[idx++];
47 output = argv[idx++];
/ndk/sources/cxx-stl/stlport/src/
H A Dcxa.c61 size_t idx; member in struct:exit_function_list
121 for (i = 0; i < l->idx; ++i)
124 if ( i < l->idx )
127 if (l->idx < sizeof (l->fns) / sizeof (l->fns[0])) {
128 i = l->idx++;
139 l->idx = 1;
174 for (f = &funcs->fns[funcs->idx - 1]; f >= &funcs->fns[0]; --f) {
/ndk/sources/android/crazy_linker/src/
H A Dcrazy_linker_util.h283 int idx = items_.IndexOf(item); local
284 if (idx >= 0)
293 int idx = items_.IndexOf(item); local
294 if (idx < 0)
296 items_.RemoveAt(idx);
/ndk/sources/cxx-stl/llvm-libc++/libcxx/src/
H A Dstring.cpp66 as_integer_helper(const string& func, const S& str, size_t* idx, int base, F f) argument
78 if (idx)
79 *idx = static_cast<size_t>(ptr - p);
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 ) argument
95 long r = as_integer_helper<long>( func, s, idx, base, strtol );
104 as_integer(const string& func, const string& s, size_t* idx, int base ) argument
106 return as_integer_helper<long>( func, s, idx, base, strtol );
112 as_integer( const string& func, const string& s, size_t* idx, int base ) argument
114 return as_integer_helper<unsigned long>( func, s, idx, bas
120 as_integer( const string& func, const string& s, size_t* idx, int base ) argument
128 as_integer( const string& func, const string& s, size_t* idx, int base ) argument
137 as_integer( const string& func, const wstring& s, size_t* idx, int base ) argument
149 as_integer( const string& func, const wstring& s, size_t* idx, int base ) argument
157 as_integer( const string& func, const wstring& s, size_t* idx, int base ) argument
165 as_integer( const string& func, const wstring& s, size_t* idx, int base ) argument
173 as_integer( const string& func, const wstring& s, size_t* idx, int base ) argument
183 as_float_helper(const string& func, const S& str, size_t* idx, F f ) argument
255 stoi(const string& str, size_t* idx, int base) argument
261 stoi(const wstring& str, size_t* idx, int base) argument
267 stol(const string& str, size_t* idx, int base) argument
273 stol(const wstring& str, size_t* idx, int base) argument
279 stoul(const string& str, size_t* idx, int base) argument
285 stoul(const wstring& str, size_t* idx, int base) argument
291 stoll(const string& str, size_t* idx, int base) argument
297 stoll(const wstring& str, size_t* idx, int base) argument
303 stoull(const string& str, size_t* idx, int base) argument
309 stoull(const wstring& str, size_t* idx, int base) argument
315 stof(const string& str, size_t* idx) argument
321 stof(const wstring& str, size_t* idx) argument
327 stod(const string& str, size_t* idx) argument
333 stod(const wstring& str, size_t* idx) argument
339 stold(const string& str, size_t* idx) argument
345 stold(const wstring& str, size_t* idx) argument
[all...]
/ndk/sources/cxx-stl/llvm-libc++abi/libcxxabi/src/
H A Dcxa_vector.cpp77 st_cxa_cleanup ( void *ptr, size_t &idx, size_t element_size, destruct_f destructor ) argument
78 : ptr_ ( ptr ), idx_ ( idx ), element_size_ ( element_size ),
210 size_t idx = 0; local
213 st_cxa_cleanup cleanup ( dest_array, idx, element_size, destructor );
215 for ( idx = 0; idx < element_count;
216 ++idx, src_ptr += element_size, dest_ptr += element_size )
235 size_t idx; local
237 st_cxa_cleanup cleanup ( array_address, idx, element_size, destructor );
240 for ( idx
258 size_t idx = element_count; local
283 size_t idx = element_count; local
[all...]
/ndk/sources/host-tools/make-3.81/
H A Dcommands.c274 unsigned int nlines, idx;
289 idx = 0;
311 if (idx == nlines)
317 lines[idx++] = savestring (p, end - p);
323 if (idx != nlines)
325 nlines = idx;
335 for (idx = 0; idx < nlines; ++idx)
339 for (p = lines[idx];
272 unsigned int nlines, idx; local
[all...]
H A Dfunction.c353 register unsigned int idx;
369 idx = 0;
383 if (idx + len + 1 > length)
388 bcopy (name, &result[idx], len);
389 idx += len;
390 result[idx++] = ' ';
397 if (idx == 0)
400 result[idx - 1] = '\0';
347 register unsigned int idx; local
H A Dmain.c133 unsigned int idx; /* Index into above. */
1460 for (i = 0; i < makefiles->idx; ++i)
1658 for (ui=1; ui < jobserver_fds->idx; ++ui)
1740 jobserver_fds->idx = 1;
2004 if (directories != 0 && directories->idx > 0)
2482 sl->idx = 0;
2486 else if (sl->idx == sl->max - 1)
2493 sl->list[sl->idx++] = optarg;
2494 sl->list[sl->idx] = 0;
2778 register unsigned int i = sl->idx;
132 unsigned int idx; /* Index into above. */ member in struct:stringlist
[all...]
H A Dread.c1332 unsigned int idx = 0;
1387 if (idx == 0)
1390 definition[idx - 1] = '\0';
1403 if (idx + len + 1 > length)
1405 length = (idx + len) * 2;
1409 bcopy (line, &definition[idx], len);
1410 idx += len;
1412 definition[idx++] = '\n';
2856 register unsigned int idx = 0;
2881 if (idx
1327 unsigned int idx = 0; local
2842 register unsigned int idx = 0; local
[all...]

Completed in 362 milliseconds