Home
last modified time | relevance | path

Searched refs:n1 (Results 1 – 16 of 16) sorted by relevance

/ndk/tests/device/test-stlport/unit/
Dmismatch_test.cpp40 int n1[5] = { 1, 2, 3, 4, 5 }; in mismatch0() local
44 pair <int*, int*> result = mismatch((int*)n1, (int*)n1 + 5, (int*)n2); in mismatch0()
45 CPPUNIT_ASSERT(result.first ==(n1 + 5) && result.second ==(n2 + 5)); in mismatch0()
47 result = mismatch((int*)n1, (int*)n1 + 5, (int*)n3); in mismatch0()
48 CPPUNIT_ASSERT(!(result.first ==(n1 + 5) && result.second ==(n3 + 5))); in mismatch0()
49 CPPUNIT_ASSERT((result.first - n1)==3); in mismatch0()
70 char const* n1[size] = { "Brett", "Graham", "Jack", "Mike", "Todd" }; in mismatch2() local
73 copy(n1, n1 + 5, (char const**)n2); in mismatch2()
74 …pair <char const**, char const**> result = mismatch((char const**)n1, (char const**)n1 + size, (ch… in mismatch2()
76 CPPUNIT_ASSERT(result.first == n1 + size && result.second == n2 + size); in mismatch2()
[all …]
Dlexcmp_test.cpp34 char n1[size] = "shoe"; in lexcmp1() local
37 bool before = lexicographical_compare(n1, n1 + size, n2, n2 + size); in lexcmp1()
43 char n1[size] = "shoe"; in lexcmp2() local
46 bool before = lexicographical_compare(n1, n1 + size, n2, n2 + size, greater<char>()); in lexcmp2()
/ndk/tests/device/test-gnustl-full/unit/
Dmismatch_test.cpp40 int n1[5] = { 1, 2, 3, 4, 5 }; in mismatch0() local
44 pair <int*, int*> result = mismatch((int*)n1, (int*)n1 + 5, (int*)n2); in mismatch0()
45 CPPUNIT_ASSERT(result.first ==(n1 + 5) && result.second ==(n2 + 5)); in mismatch0()
47 result = mismatch((int*)n1, (int*)n1 + 5, (int*)n3); in mismatch0()
48 CPPUNIT_ASSERT(!(result.first ==(n1 + 5) && result.second ==(n3 + 5))); in mismatch0()
49 CPPUNIT_ASSERT((result.first - n1)==3); in mismatch0()
70 char const* n1[size] = { "Brett", "Graham", "Jack", "Mike", "Todd" }; in mismatch2() local
73 copy(n1, n1 + 5, (char const**)n2); in mismatch2()
74 …pair <char const**, char const**> result = mismatch((char const**)n1, (char const**)n1 + size, (ch… in mismatch2()
76 CPPUNIT_ASSERT(result.first == n1 + size && result.second == n2 + size); in mismatch2()
[all …]
Dlexcmp_test.cpp34 char n1[size] = "shoe"; in lexcmp1() local
37 bool before = lexicographical_compare(n1, n1 + size, n2, n2 + size); in lexcmp1()
43 char n1[size] = "shoe"; in lexcmp2() local
46 bool before = lexicographical_compare(n1, n1 + size, n2, n2 + size, greater<char>()); in lexcmp2()
/ndk/sources/cxx-stl/stlport/src/c_locale_dummy/
Dc_locale_dummy.c272 const char* s1, size_t n1, const char* s2, size_t n2) { in _Locale_strcmp() argument
275 while (n1 > 0 || n2 > 0) { in _Locale_strcmp()
276 size_t bufsize1 = n1 < 63 ? n1 : 63; in _Locale_strcmp()
283 s1 += bufsize1; n1 -= bufsize1; in _Locale_strcmp()
292 const wchar_t* s1, size_t n1, const wchar_t* s2, size_t n2) { in _WLocale_strcmp() argument
295 while (n1 > 0 || n2 > 0) { in _WLocale_strcmp()
296 size_t bufsize1 = n1 < 63 ? n1 : 63; in _WLocale_strcmp()
303 s1 += bufsize1; n1 -= bufsize1; in _WLocale_strcmp()
/ndk/sources/cxx-stl/stlport/src/c_locale_glibc/
Dc_locale_glibc2.c363 const char *s1, size_t n1, in _Locale_strcmp() argument
367 while (n1 > 0 || n2 > 0) { in _Locale_strcmp()
368 size_t bufsize1 = n1 < 63 ? n1 : 63; in _Locale_strcmp()
375 s1 += bufsize1; n1 -= bufsize1; in _Locale_strcmp()
383 const wchar_t *s1, size_t n1, in _WLocale_strcmp() argument
387 while (n1 > 0 || n2 > 0) { in _WLocale_strcmp()
388 size_t bufsize1 = n1 < 63 ? n1 : 63; in _WLocale_strcmp()
395 s1 += bufsize1; n1 -= bufsize1; in _WLocale_strcmp()
/ndk/sources/cxx-stl/stlport/src/c_locale_win32/
Dc_wlocale_win32.c198 const wchar_t* s1, size_t n1, in _WLocale_strcmp_aux() argument
201 while (n1 > 0 || n2 > 0) { in _WLocale_strcmp_aux()
202 DWORD size1 = trim_size_t_to_DWORD(n1); in _WLocale_strcmp_aux()
207 n1 -= size1; in _WLocale_strcmp_aux()
214 const wchar_t* s1, size_t n1, in _WLocale_strcmp() argument
217 result = _WLocale_strcmp_aux(lcol, s1, n1, s2, n2); in _WLocale_strcmp()
Dc_locale_win32.c1088 const char* s1, size_t n1, in _Locale_strcmp_auxA() argument
1091 while (n1 > 0 || n2 > 0) { in _Locale_strcmp_auxA()
1092 DWORD size1 = trim_size_t_to_DWORD(n1); in _Locale_strcmp_auxA()
1097 n1 -= size1; in _Locale_strcmp_auxA()
1104 const char* s1, size_t n1, in _Locale_strcmp() argument
1108 result = _Locale_strcmp_auxA(lcol, s1, n1, s2, n2); in _Locale_strcmp()
1113 buf1 = __ConvertToCP(atoi(lcol->cp), __GetDefaultCP(lcol->lc.id), s1, n1, &size1); in _Locale_strcmp()
/ndk/sources/host-tools/make-3.81/tests/scripts/functions/
Dcall96 $answer = "1 2 3 4 5 6 7 8 9\n1 2 3 4 5\n1 2 3\n1 2 3\n";
Dandor48 … "short-circuit\n1\n2 true\n3 true\n4 z\n5 true\n6 true\n7 b\n8 true\n9 z hi\n10 truethere\n11\n");
/ndk/sources/host-tools/sed-4.2.1/lib/
Dquotearg.c686 size_t n1 = n0 + 1; in quotearg_n_options() local
689 if (xalloc_oversized (n1, sizeof *sv)) in quotearg_n_options()
692 slotvec = sv = xrealloc (preallocated ? NULL : sv, n1 * sizeof *sv); in quotearg_n_options()
695 memset (sv + nslots, 0, (n1 - nslots) * sizeof *sv); in quotearg_n_options()
696 nslots = n1; in quotearg_n_options()
/ndk/sources/host-tools/make-3.81/tests/scripts/variables/
DMAKELEVEL27 $answer = "MAKELEVEL is 0\necho \$MAKELEVEL\n1\n";
/ndk/sources/host-tools/nawk-20071023/
Dlib.c71 void makefields(int n1, int n2) /* create $n1..$n2 inclusive */ in makefields() argument
76 for (i = n1; i <= n2; i++) { in makefields()
357 void cleanfld(int n1, int n2) /* clean out fields n1 .. n2 inclusive */ in cleanfld() argument
362 for (i = n1; i <= n2; i++) { in cleanfld()
Drun.c1147 int n1, n2; in cat() local
1154 n1 = strlen(x->sval); in cat()
1156 s = (char *) malloc(n1 + n2 + 1); in cat()
1161 strcpy(s+n1, y->sval); in cat()
/ndk/tests/
Drun-tests.sh169 RET=`sed -e 's![[:cntrl:]]!!g' $ADB_CMD_LOG | tail -n1`
/ndk/sources/host-tools/make-3.81/tests/scripts/features/
Dtargetvars70 $answer = "one 2\n1 2\n";