/ndk/tests/device/test-gnustl-full/unit/ |
H A D | lexcmp_test.cpp | 34 char n1[size] = "shoe"; local 37 bool before = lexicographical_compare(n1, n1 + size, n2, n2 + size); 43 char n1[size] = "shoe"; local 46 bool before = lexicographical_compare(n1, n1 + size, n2, n2 + size, greater<char>());
|
H A D | mismatch_test.cpp | 40 int n1[5] = { 1, 2, 3, 4, 5 }; local 44 pair <int*, int*> result = mismatch((int*)n1, (int*)n1 + 5, (int*)n2); 45 CPPUNIT_ASSERT(result.first ==(n1 + 5) && result.second ==(n2 + 5)); 47 result = mismatch((int*)n1, (int*)n1 + 5, (int*)n3); 48 CPPUNIT_ASSERT(!(result.first ==(n1 + 5) && result.second ==(n3 + 5))); 49 CPPUNIT_ASSERT((result.first - n1)==3); 70 char const* n1[size] = { "Brett", "Graham", "Jack", "Mike", "Todd" }; local 73 copy(n1, n [all...] |
/ndk/tests/device/test-stlport/unit/ |
H A D | lexcmp_test.cpp | 34 char n1[size] = "shoe"; local 37 bool before = lexicographical_compare(n1, n1 + size, n2, n2 + size); 43 char n1[size] = "shoe"; local 46 bool before = lexicographical_compare(n1, n1 + size, n2, n2 + size, greater<char>());
|
H A D | mismatch_test.cpp | 40 int n1[5] = { 1, 2, 3, 4, 5 }; local 44 pair <int*, int*> result = mismatch((int*)n1, (int*)n1 + 5, (int*)n2); 45 CPPUNIT_ASSERT(result.first ==(n1 + 5) && result.second ==(n2 + 5)); 47 result = mismatch((int*)n1, (int*)n1 + 5, (int*)n3); 48 CPPUNIT_ASSERT(!(result.first ==(n1 + 5) && result.second ==(n3 + 5))); 49 CPPUNIT_ASSERT((result.first - n1)==3); 70 char const* n1[size] = { "Brett", "Graham", "Jack", "Mike", "Todd" }; local 73 copy(n1, n [all...] |
/ndk/sources/host-tools/toolbox/ |
H A D | cmp_win.c | 70 int n1, n2, ret = 0; local 72 n1 = fread(buf1, 1, BUFSIZE, f1); 74 ret = (n1 != n2) || memcmp(buf1, buf2, n1) != 0; 75 } while (!ret && n1 == BUFSIZE);
|
/ndk/sources/cxx-stl/stlport/src/c_locale_win32/ |
H A D | c_wlocale_win32.c | 198 const wchar_t* s1, size_t n1,
201 while (n1 > 0 || n2 > 0) {
202 DWORD size1 = trim_size_t_to_DWORD(n1);
207 n1 -= size1;
214 const wchar_t* s1, size_t n1,
217 result = _WLocale_strcmp_aux(lcol, s1, n1, s2, n2);
197 _WLocale_strcmp_aux(_Locale_collate_t* lcol, const wchar_t* s1, size_t n1, const wchar_t* s2, size_t n2) argument 213 _WLocale_strcmp(_Locale_collate_t* lcol, const wchar_t* s1, size_t n1, const wchar_t* s2, size_t n2) argument
|
H A D | c_locale_win32.c | 1088 const char* s1, size_t n1, 1091 while (n1 > 0 || n2 > 0) { 1092 DWORD size1 = trim_size_t_to_DWORD(n1); 1097 n1 -= size1; 1104 const char* s1, size_t n1, 1108 result = _Locale_strcmp_auxA(lcol, s1, n1, s2, n2); 1113 buf1 = __ConvertToCP(atoi(lcol->cp), __GetDefaultCP(lcol->lc.id), s1, n1, &size1); 1087 _Locale_strcmp_auxA(_Locale_collate_t* lcol, const char* s1, size_t n1, const char* s2, size_t n2) argument 1103 _Locale_strcmp(_Locale_collate_t* lcol, const char* s1, size_t n1, const char* s2, size_t n2) argument
|
/ndk/sources/host-tools/nawk-20071023/ |
H A D | lib.c | 71 void makefields(int n1, int n2) /* create $n1..$n2 inclusive */ argument 76 for (i = n1; i <= n2; i++) { 357 void cleanfld(int n1, int n2) /* clean out fields n1 .. n2 inclusive */ argument 362 for (i = n1; i <= n2; i++) {
|
H A D | run.c | 1147 int n1, n2; local 1154 n1 = strlen(x->sval); 1156 s = (char *) malloc(n1 + n2 + 1); 1161 strcpy(s+n1, y->sval);
|
/ndk/sources/host-tools/sed-4.2.1/lib/ |
H A D | quotearg.c | 681 /* FIXME: technically, the type of n1 should be `unsigned int', 686 size_t n1 = n0 + 1; local 689 if (xalloc_oversized (n1, sizeof *sv)) 692 slotvec = sv = xrealloc (preallocated ? NULL : sv, n1 * sizeof *sv); 695 memset (sv + nslots, 0, (n1 - nslots) * sizeof *sv); 696 nslots = n1;
|
/ndk/sources/cxx-stl/stlport/src/c_locale_glibc/ |
H A D | c_locale_glibc2.c | 363 const char *s1, size_t n1, 367 while (n1 > 0 || n2 > 0) { 368 size_t bufsize1 = n1 < 63 ? n1 : 63; 375 s1 += bufsize1; n1 -= bufsize1; 383 const wchar_t *s1, size_t n1, 387 while (n1 > 0 || n2 > 0) { 388 size_t bufsize1 = n1 < 63 ? n1 : 63; 395 s1 += bufsize1; n1 362 _Locale_strcmp(struct _Locale_collate * __loc, const char *s1, size_t n1, const char *s2, size_t n2) argument 382 _WLocale_strcmp(struct _Locale_collate *__loc, const wchar_t *s1, size_t n1, const wchar_t *s2, size_t n2) argument [all...] |
/ndk/sources/cxx-stl/stlport/src/c_locale_dummy/ |
H A D | c_locale_dummy.c | 272 const char* s1, size_t n1, const char* s2, size_t n2) { 275 while (n1 > 0 || n2 > 0) { 276 size_t bufsize1 = n1 < 63 ? n1 : 63; 283 s1 += bufsize1; n1 -= bufsize1; 292 const wchar_t* s1, size_t n1, const wchar_t* s2, size_t n2) { 295 while (n1 > 0 || n2 > 0) { 296 size_t bufsize1 = n1 < 63 ? n1 : 63; 303 s1 += bufsize1; n1 271 _Locale_strcmp(struct _Locale_collate* lcol, const char* s1, size_t n1, const char* s2, size_t n2) argument 291 _WLocale_strcmp(struct _Locale_collate* lcol, const wchar_t* s1, size_t n1, const wchar_t* s2, size_t n2) argument [all...] |