Home
last modified time | relevance | path

Searched refs:buf (Results 1 – 25 of 172) sorted by relevance

1234567

/ndk/sources/cxx-stl/llvm-libc++/libcxx/test/input.output/string.streams/stringbuf/stringbuf.assign/
Dmove.pass.cpp24 std::stringbuf buf; in main() local
25 buf = move(buf1); in main()
26 assert(buf.str() == "testing"); in main()
30 std::stringbuf buf; in main() local
31 buf = move(buf1); in main()
32 assert(buf.str() == "testing"); in main()
36 std::stringbuf buf; in main() local
37 buf = move(buf1); in main()
38 assert(buf.str() == "testing"); in main()
42 std::wstringbuf buf; in main() local
[all …]
Dmember_swap.pass.cpp24 std::stringbuf buf; in main() local
25 buf.swap(buf1); in main()
26 assert(buf.str() == "testing"); in main()
31 std::stringbuf buf; in main() local
32 buf.swap(buf1); in main()
33 assert(buf.str() == "testing"); in main()
38 std::stringbuf buf; in main() local
39 buf.swap(buf1); in main()
40 assert(buf.str() == "testing"); in main()
45 std::wstringbuf buf; in main() local
[all …]
Dnonmember_swap.pass.cpp26 std::stringbuf buf; in main() local
27 swap(buf, buf1); in main()
28 assert(buf.str() == "testing"); in main()
33 std::stringbuf buf; in main() local
34 swap(buf, buf1); in main()
35 assert(buf.str() == "testing"); in main()
40 std::stringbuf buf; in main() local
41 swap(buf, buf1); in main()
42 assert(buf.str() == "testing"); in main()
47 std::wstringbuf buf; in main() local
[all …]
/ndk/sources/cxx-stl/stlport/src/
Dnum_put_float.cpp216 static inline char* _Stl_ecvtR(double x, int n, int* pt, int* sign, char* buf) in _Stl_ecvtR() argument
217 { return ecvtbuf(x, n, pt, sign, buf); } in _Stl_ecvtR()
218 static inline char* _Stl_fcvtR(double x, int n, int* pt, int* sign, char* buf) in _Stl_fcvtR() argument
219 { return fcvtbuf(x, n, pt, sign, buf); } in _Stl_fcvtR()
224 static inline char* _Stl_ecvtR(long double x, int n, int* pt, int* sign, char* buf) in _Stl_ecvtR() argument
225 { return ecvtbuf(x, n, pt, sign, buf); } in _Stl_ecvtR()
226 static inline char* _Stl_fcvtR(long double x, int n, int* pt, int* sign, char* buf) in _Stl_fcvtR() argument
227 { return fcvtbuf(x, n, pt, sign, buf); } in _Stl_fcvtR()
231 static inline char* _Stl_ecvtR(double x, int n, int* pt, int* sign, char* buf, size_t bsize) in _Stl_ecvtR() argument
232 { return ecvt_r(x, n, pt, sign, buf, bsize) == 0 ? buf : 0; } in _Stl_ecvtR()
[all …]
Dtime_facets.cpp131 wchar_t buf[128]; in _Init_timeinfo() local
134 table._M_dayname[i] = _WLocale_abbrev_dayofweek(time, i, _STLP_ARRAY_AND_SIZE(buf)); in _Init_timeinfo()
136 table._M_dayname[i+7] = _WLocale_full_dayofweek(time, i, _STLP_ARRAY_AND_SIZE(buf)); in _Init_timeinfo()
138 table._M_monthname[i] = _WLocale_abbrev_monthname(time, i, _STLP_ARRAY_AND_SIZE(buf)); in _Init_timeinfo()
140 table._M_monthname[i+12] = _WLocale_full_monthname(time, i, _STLP_ARRAY_AND_SIZE(buf)); in _Init_timeinfo()
141 table._M_am_pm[0] = _WLocale_am_str(time, _STLP_ARRAY_AND_SIZE(buf)); in _Init_timeinfo()
142 table._M_am_pm[1] = _WLocale_pm_str(time, _STLP_ARRAY_AND_SIZE(buf)); in _Init_timeinfo()
148 void __subformat(_STLP_BASIC_IOSTRING(_Ch) &buf, const ctype<_Ch>& ct, in __subformat() argument
159 __write_formatted_timeT(buf, ct, *cp++, mod, table, t); in __subformat()
161 buf.append(1, *cp++); in __subformat()
[all …]
Dacquire_release.h27 _Locale_ctype* _STLP_CALL __acquire_ctype(const char* &name, char *buf, _Locale_name_hint* hint, in…
28 _Locale_codecvt* _STLP_CALL __acquire_codecvt(const char* &name, char *buf, _Locale_name_hint* hint…
29 _Locale_numeric* _STLP_CALL __acquire_numeric(const char* &name, char *buf, _Locale_name_hint* hint…
30 _Locale_collate* _STLP_CALL __acquire_collate(const char* &name, char *buf, _Locale_name_hint* hint…
31 _Locale_monetary* _STLP_CALL __acquire_monetary(const char* &name, char *buf, _Locale_name_hint* hi…
32 _Locale_time* _STLP_CALL __acquire_time(const char* &name, char *buf, _Locale_name_hint*, int *__er…
33 _Locale_messages* _STLP_CALL __acquire_messages(const char* &name, char *buf, _Locale_name_hint* hi…
/ndk/sources/cxx-stl/llvm-libc++/libcxx/test/re/re.alg/re.alg.replace/
Dtest2.pass.cpp34 char buf[100] = {0}; in main() local
35 Out r = std::regex_replace(Out(buf), Bi(std::begin(phone_book)), in main()
38 assert(r.base() == buf+40); in main()
39 assert(buf == std::string("123-555-1234, 123-555-2345, 123-555-3456")); in main()
46 char buf[100] = {0}; in main() local
47 Out r = std::regex_replace(Out(buf), Bi(std::begin(phone_book)), in main()
51 assert(r.base() == buf+43); in main()
52 assert(buf == std::string("123-$555-1234, 123-$555-2345, 123-$555-3456")); in main()
59 char buf[100] = {0}; in main() local
60 Out r = std::regex_replace(Out(buf), Bi(std::begin(phone_book)), in main()
[all …]
Dtest1.pass.cpp34 char buf[100] = {0}; in main() local
35 Out r = std::regex_replace(Out(buf), Bi(std::begin(phone_book)), in main()
38 assert(r.base() == buf+40); in main()
39 assert(buf == std::string("123-555-1234, 123-555-2345, 123-555-3456")); in main()
46 char buf[100] = {0}; in main() local
47 Out r = std::regex_replace(Out(buf), Bi(std::begin(phone_book)), in main()
51 assert(r.base() == buf+43); in main()
52 assert(buf == std::string("123-$555-1234, 123-$555-2345, 123-$555-3456")); in main()
59 char buf[100] = {0}; in main() local
60 Out r = std::regex_replace(Out(buf), Bi(std::begin(phone_book)), in main()
[all …]
/ndk/sources/cxx-stl/llvm-libc++/libcxx/test/input.output/string.streams/stringbuf/stringbuf.cons/
Dstring.pass.cpp24 std::stringbuf buf("testing"); in main() local
25 assert(buf.str() == "testing"); in main()
28 std::stringbuf buf("testing", std::ios_base::in); in main() local
29 assert(buf.str() == "testing"); in main()
32 std::stringbuf buf("testing", std::ios_base::out); in main() local
33 assert(buf.str() == "testing"); in main()
36 std::wstringbuf buf(L"testing"); in main() local
37 assert(buf.str() == L"testing"); in main()
40 std::wstringbuf buf(L"testing", std::ios_base::in); in main() local
41 assert(buf.str() == L"testing"); in main()
[all …]
Dmove.pass.cpp24 std::stringbuf buf(move(buf1)); in main() local
25 assert(buf.str() == "testing"); in main()
29 std::stringbuf buf(move(buf1)); in main() local
30 assert(buf.str() == "testing"); in main()
34 std::stringbuf buf(move(buf1)); in main() local
35 assert(buf.str() == "testing"); in main()
39 std::wstringbuf buf(move(buf1)); in main() local
40 assert(buf.str() == L"testing"); in main()
44 std::wstringbuf buf(move(buf1)); in main() local
45 assert(buf.str() == L"testing"); in main()
[all …]
/ndk/sources/cxx-stl/llvm-libc++/libcxx/test/utilities/memory/ptr.align/
Dalign.pass.cpp21 char buf[N]; in main() local
23 void* p = &buf[0]; in main()
26 assert(p == &buf[0]); in main()
30 p = &buf[1]; in main()
33 assert(p == &buf[4]); in main()
37 p = &buf[2]; in main()
40 assert(p == &buf[4]); in main()
44 p = &buf[3]; in main()
47 assert(p == &buf[4]); in main()
51 p = &buf[4]; in main()
[all …]
/ndk/sources/cxx-stl/llvm-libc++/libcxx/test/input.output/string.streams/stringbuf/stringbuf.members/
Dstr.pass.cpp23 std::stringbuf buf("testing"); in main() local
24 assert(buf.str() == "testing"); in main()
25 buf.str("another test"); in main()
26 assert(buf.str() == "another test"); in main()
29 std::wstringbuf buf(L"testing"); in main() local
30 assert(buf.str() == L"testing"); in main()
31 buf.str(L"another test"); in main()
32 assert(buf.str() == L"another test"); in main()
/ndk/sources/cxx-stl/stlport/src/c_locale_win32/
Dc_wlocale_win32.c37 wchar_t buf[2]; in _WLocale_ctype() local
39 buf[0] = c; buf[1] = 0; in _WLocale_ctype()
40 GetStringTypeW(CT_CTYPE1, buf, -1, out); in _WLocale_ctype()
92 char const* _Locale_codecvt_name(const _Locale_codecvt_t* lcodecvt, char* buf) { in _Locale_codecvt_name() argument
95 return __GetLocaleName(lcodecvt->lc.id, cp_buf, buf); in _Locale_codecvt_name()
186 char *buf, size_t n, char **next) { in _WLocale_unshift() argument
191 *next = buf; in _WLocale_unshift()
247 wchar_t buf[4]; in _WLocale_decimal_point() local
248 GetLocaleInfoW(lnum->lc.id, LOCALE_SDECIMAL, buf, 4); in _WLocale_decimal_point()
249 return buf[0]; in _WLocale_decimal_point()
[all …]
/ndk/sources/host-tools/nawk-20071023/
Dlex.c104 char *buf = *pbuf; in gettok() local
106 char *bp = buf; in gettok()
111 buf[0] = c; in gettok()
112 buf[1] = 0; in gettok()
119 if (bp-buf >= sz) in gettok()
120 if (!adjbuf(&buf, &sz, bp-buf+2, 100, &bp, "gettok")) in gettok()
121 FATAL( "out of space for name %.10s...", buf ); in gettok()
136 if (bp-buf >= sz) in gettok()
137 if (!adjbuf(&buf, &sz, bp-buf+2, 100, &bp, "gettok")) in gettok()
138 FATAL( "out of space for number %.10s...", buf ); in gettok()
[all …]
Drun.c396 char *buf; in getline() local
400 if ((buf = (char *) malloc(bufsize)) == NULL) in getline()
415 n = readrec(&buf, &bufsize, fp); in getline()
420 setsval(x, buf); in getline()
423 setsval(fldtab[0], buf); in getline()
433 n = getrec(&buf, &bufsize, 0); in getline()
435 setsval(x, buf); in getline()
440 free(buf); in getline()
456 char *buf; in array() local
460 if ((buf = (char *) malloc(bufsz)) == NULL) in array()
[all …]
/ndk/sources/cxx-stl/llvm-libc++/libcxx/test/depr/depr.str.strstreams/depr.strstreambuf/depr.strstreambuf.cons/
Dscp_size_scp.pass.cpp22 signed char buf[] = "abcd"; in main() local
23 std::strstreambuf sb(buf, sizeof(buf)); in main()
32 signed char buf[] = "abcd"; in main() local
33 std::strstreambuf sb(buf, 0); in main()
41 signed char buf[] = "abcd"; in main() local
42 std::strstreambuf sb(buf, sizeof(buf), buf); in main()
58 signed char buf[] = "abcd"; in main() local
59 std::strstreambuf sb(buf, 0, buf); in main()
73 signed char buf[10] = "abcd"; in main() local
74 int s = std::strlen((char*)buf); in main()
[all …]
Dcp_size_cp.pass.cpp22 char buf[] = "abcd"; in main() local
23 std::strstreambuf sb(buf, sizeof(buf)); in main()
32 char buf[] = "abcd"; in main() local
33 std::strstreambuf sb(buf, 0); in main()
41 char buf[] = "abcd"; in main() local
42 std::strstreambuf sb(buf, sizeof(buf), buf); in main()
58 char buf[] = "abcd"; in main() local
59 std::strstreambuf sb(buf, 0, buf); in main()
73 char buf[10] = "abcd"; in main() local
74 int s = std::strlen(buf); in main()
[all …]
Ducp_size_ucp.pass.cpp22 unsigned char buf[] = "abcd"; in main() local
23 std::strstreambuf sb(buf, sizeof(buf)); in main()
32 unsigned char buf[] = "abcd"; in main() local
33 std::strstreambuf sb(buf, 0); in main()
41 unsigned char buf[] = "abcd"; in main() local
42 std::strstreambuf sb(buf, sizeof(buf), buf); in main()
58 unsigned char buf[] = "abcd"; in main() local
59 std::strstreambuf sb(buf, 0, buf); in main()
73 unsigned char buf[10] = "abcd"; in main() local
74 int s = std::strlen((char*)buf); in main()
[all …]
/ndk/sources/cxx-stl/stlport/src/c_locale_glibc/
Dc_locale_glibc2.c12 static wchar_t* _ToWChar(const char* buf, wchar_t *wbuf, size_t wbufSize) { in _ToWChar() argument
15 for (; wcur != wend && *buf != 0; ++buf, ++wcur) in _ToWChar()
16 *wcur = *buf; in _ToWChar()
160 char const*_Locale_ctype_name( const struct _Locale_ctype *__loc, char *buf ) in _Locale_ctype_name() argument
165 char const*_Locale_codecvt_name( const struct _Locale_codecvt *__loc, char *buf ) in _Locale_codecvt_name() argument
170 char const*_Locale_numeric_name( const struct _Locale_numeric *__loc, char *buf ) in _Locale_numeric_name() argument
175 char const*_Locale_time_name( const struct _Locale_time *__loc, char *buf ) in _Locale_time_name() argument
180 char const*_Locale_collate_name( const struct _Locale_collate *__loc, char *buf ) in _Locale_collate_name() argument
185 char const*_Locale_monetary_name( const struct _Locale_monetary *__loc, char *buf ) in _Locale_monetary_name() argument
190 char const*_Locale_messages_name( const struct _Locale_messages *__loc, char *buf ) in _Locale_messages_name() argument
[all …]
/ndk/sources/host-tools/make-3.81/
Dansi2knr.c239 char *buf; local
302 buf = malloc(bufsize);
303 if ( buf == NULL )
308 line = buf;
309 while ( fgets(line, (unsigned)(buf + bufsize - line), in) != NULL )
312 switch ( test1(buf) )
315 convert1(buf, out, 1, convert_varargs);
320 f: if ( line >= buf + (bufsize - 1) ) /* overflow check */
322 if ( fgets(line, (unsigned)(buf + bufsize - line), in) == NULL )
328 convert1(buf, out, 0, convert_varargs);
[all …]
/ndk/tests/device/test-gnustl-full/unit/
Dcstring_test.cpp49 char buf[16]; buf[0] = 0; in import_checks() local
55 CPPUNIT_CHECK( std::strcat((char*)buf, foo) == (char*)buf ); // buf <- foo in import_checks()
58 CPPUNIT_CHECK( std::strcpy((char*)buf, foo) == (char*)buf ); // buf <- foo in import_checks()
61 CPPUNIT_CHECK( std::strncat((char*)buf, foo, 2) == (char*)buf ); // buf <- foofo in import_checks()
63 CPPUNIT_CHECK( std::strncpy((char*)buf, foo, 3) == (char*)buf ); // buf <- foo in import_checks()
72 CPPUNIT_CHECK( std::strxfrm((char*)buf, foo, 3) != 0 ); in import_checks()
/ndk/tests/device/test-stlport/unit/
Dcstring_test.cpp49 char buf[16]; buf[0] = 0; in import_checks() local
55 CPPUNIT_CHECK( std::strcat((char*)buf, foo) == (char*)buf ); // buf <- foo in import_checks()
58 CPPUNIT_CHECK( std::strcpy((char*)buf, foo) == (char*)buf ); // buf <- foo in import_checks()
61 CPPUNIT_CHECK( std::strncat((char*)buf, foo, 2) == (char*)buf ); // buf <- foofo in import_checks()
63 CPPUNIT_CHECK( std::strncpy((char*)buf, foo, 3) == (char*)buf ); // buf <- foo in import_checks()
72 CPPUNIT_CHECK( std::strxfrm((char*)buf, foo, 3) != 0 ); in import_checks()
/ndk/sources/cxx-stl/stlport/src/c_locale_dummy/
Dc_locale_dummy.c116 const char *_Locale_ctype_default(char* buf) { return _C_name; } in _Locale_ctype_default() argument
117 const char *_Locale_numeric_default(char * buf) { return _C_name; } in _Locale_numeric_default() argument
118 const char *_Locale_time_default(char* buf) { return _C_name; } in _Locale_time_default() argument
119 const char *_Locale_collate_default(char* buf) { return _C_name; } in _Locale_collate_default() argument
120 const char *_Locale_monetary_default(char* buf) { return _C_name; } in _Locale_monetary_default() argument
121 const char *_Locale_messages_default(char* buf) { return _C_name; } in _Locale_messages_default() argument
123 char const* _Locale_ctype_name(const struct _Locale_ctype *lctype, char* buf) in _Locale_ctype_name() argument
126 char const* _Locale_codecvt_name(const struct _Locale_codecvt *lcodecvt, char* buf) in _Locale_codecvt_name() argument
129 char const* _Locale_numeric_name(const struct _Locale_numeric *lnum, char* buf) in _Locale_numeric_name() argument
132 char const* _Locale_time_name(const struct _Locale_time *ltime, char* buf) in _Locale_time_name() argument
[all …]
/ndk/sources/cxx-stl/llvm-libc++/libcxx/test/input.output/file.streams/fstreams/filebuf.virtuals/
Dseekoff.pass.cpp25 char buf[10]; in main() local
28 f.pubsetbuf(buf, sizeof(buf)); in main()
33 assert(buf[0] == 'v'); in main()
46 wchar_t buf[10]; in main() local
49 f.pubsetbuf(buf, sizeof(buf)/sizeof(buf[0])); in main()
54 assert(buf[0] == L'v'); in main()
/ndk/sources/host-tools/sed-4.2.1/lib/
Dlocalcharset.c347 static char buf[2 + 10 + 1]; in locale_charset() local
371 if (modifier - dot < sizeof (buf)) in locale_charset()
373 memcpy (buf, dot, modifier - dot); in locale_charset()
374 buf [modifier - dot] = '\0'; in locale_charset()
375 return buf; in locale_charset()
381 sprintf (buf, "CP%u", GetACP ()); in locale_charset()
382 codeset = buf; in locale_charset()
418 static char buf[2 + 10 + 1]; in locale_charset() local
421 sprintf (buf, "CP%u", GetACP ()); in locale_charset()
422 codeset = buf; in locale_charset()
[all …]

1234567