Home
last modified time | relevance | path

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

123

/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 …]
Dstrstream.cpp41 char* buf = _M_alloc(n); in strstreambuf() local
42 if (buf) { in strstreambuf()
43 setp(buf, buf + n); in strstreambuf()
44 setg(buf, buf, buf); in strstreambuf()
53 char* buf = _M_alloc(n); in strstreambuf() local
54 if (buf) { in strstreambuf()
55 setp(buf, buf + n); in strstreambuf()
56 setg(buf, buf, buf); in strstreambuf()
125 char* buf = _M_alloc(new_size); in overflow() local
126 if (buf) { in overflow()
[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…
Dlocale_catalog.cpp140 __acquire_category(const char* &name, char *buf, _Locale_name_hint* hint, in __acquire_category() argument
159 name = default_name(buf); in __acquire_category()
164 const char* cname = extract_name(name, buf, hint, __err_code); in __acquire_category()
211 char buf[_Locale_MAX_SIMPLE_NAME + 1]; in __release_category() local
212 char const* name = get_name(cat, buf); in __release_category()
236 _Locale_ctype* _STLP_CALL __acquire_ctype(const char* &name, char *buf, _Locale_name_hint* hint, in… in __acquire_ctype() argument
237 return __REINTERPRET_CAST(_Locale_ctype*, __acquire_category(name, buf, hint, in __acquire_ctype()
241 _Locale_codecvt* _STLP_CALL __acquire_codecvt(const char* &name, char *buf, _Locale_name_hint* hint… in __acquire_codecvt() argument
242 return __REINTERPRET_CAST(_Locale_codecvt*, __acquire_category(name, buf, hint, in __acquire_codecvt()
246 _Locale_numeric* _STLP_CALL __acquire_numeric(const char* &name, char *buf, _Locale_name_hint* hint… in __acquire_numeric() argument
[all …]
Dfacets_byname.cpp47 char buf[_Locale_MAX_SIMPLE_NAME]; in ctype_byname() local
48 _M_ctype = _STLP_PRIV __acquire_ctype(name, buf, 0, &__err_code); in ctype_byname()
118 char buf[_Locale_MAX_SIMPLE_NAME]; in ctype_byname() local
119 _M_ctype = _STLP_PRIV __acquire_ctype(name, buf, 0, &__err_code); in ctype_byname()
190 char buf[_Locale_MAX_SIMPLE_NAME]; in collate_byname() local
191 _M_collate = _STLP_PRIV __acquire_collate(name, buf, 0, &__err_code); in collate_byname()
218 string_type buf(n, 0); in do_transform() local
219 _Locale_strxfrm(_M_collate, &(*buf.begin()), n + 1, low, high - low); in do_transform()
220 return buf; in do_transform()
237 char buf[_Locale_MAX_SIMPLE_NAME]; in collate_byname() local
[all …]
Dlocale_impl.cpp150 _Locale_name_hint* _Locale_impl::insert_ctype_facets(const char* &name, char *buf, _Locale_name_hin… in insert_ctype_facets() argument
152 name = _Locale_ctype_default(buf); in insert_ctype_facets()
170 _Locale_ctype *__lct = _STLP_PRIV __acquire_ctype(name, buf, hint, &__err_code); in insert_ctype_facets()
190 _Locale_ctype *__lwct = _STLP_PRIV __acquire_ctype(name, buf, hint, &__err_code); in insert_ctype_facets()
201 _Locale_codecvt *__lwcvt = _STLP_PRIV __acquire_codecvt(name, buf, hint, &__err_code); in insert_ctype_facets()
222 _Locale_name_hint* _Locale_impl::insert_numeric_facets(const char* &name, char *buf, _Locale_name_h… in insert_numeric_facets() argument
224 name = _Locale_numeric_default(buf); in insert_numeric_facets()
253 _Locale_numeric *__lpunct = _STLP_PRIV __acquire_numeric(name, buf, hint, &__err_code); in insert_numeric_facets()
266 _Locale_numeric *__lwpunct = _STLP_PRIV __acquire_numeric(name, buf, hint, &__err_code); in insert_numeric_facets()
288 _Locale_name_hint* _Locale_impl::insert_time_facets(const char* &name, char *buf, _Locale_name_hint… in insert_time_facets() argument
[all …]
/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 …]
Dc_locale_win32.c238 static char const* __GetLocaleName(LCID lcid, const char* cp, char* buf);
239 static char const* __Extract_locale_name(const char* loc, const char* category, char* buf);
240 static char const* __TranslateToSystem(const char* lname, char* buf, _Locale_lcid_t* hint, int *__e…
241 static void __GetLocaleInfoUsingACP(LCID lcid, const char* cp, LCTYPE lctype, char* buf, int buf_si…
246 static void my_ltoa(long __x, char* buf);
248 void my_ltoa(long __x, char* buf) { in my_ltoa() argument
258 while(ptr > rbuf) *buf++ = *--ptr; in my_ltoa()
260 *buf = '\0'; in my_ltoa()
887 static const char* _Locale_common_default(char* buf) { in _Locale_common_default() argument
891 return __GetLocaleName(LOCALE_USER_DEFAULT, cp, buf); in _Locale_common_default()
[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/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()
Dsstream_test.cpp31 CPPUNIT_TEST(buf);
51 void buf();
133 char buf[16] = { 0, '1', '2', '3' }; in input_char() local
135 s >> buf; in input_char()
137 CPPUNIT_ASSERT( buf[0] == '0' ); in input_char()
138 CPPUNIT_ASSERT( buf[1] == 0 ); in input_char()
139 CPPUNIT_ASSERT( buf[2] == '2' ); in input_char()
287 void SstreamTest::buf() in buf() function in SstreamTest
292 char buf[10]; in buf() local
293 buf[7] = 'x'; in buf()
[all …]
/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()
Dsstream_test.cpp31 CPPUNIT_TEST(buf);
51 void buf();
133 char buf[16] = { 0, '1', '2', '3' }; in input_char() local
135 s >> buf; in input_char()
137 CPPUNIT_ASSERT( buf[0] == '0' ); in input_char()
138 CPPUNIT_ASSERT( buf[1] == 0 ); in input_char()
139 CPPUNIT_ASSERT( buf[2] == '2' ); in input_char()
287 void SstreamTest::buf() in buf() function in SstreamTest
292 char buf[10]; in buf() local
293 buf[7] = 'x'; in buf()
[all …]
Dfstream_test.cpp46 CPPUNIT_TEST(buf);
76 void buf();
164 char buf[16] = { 0, '1', '2', '3' }; in input_char() local
166 s >> buf; in input_char()
168 CPPUNIT_ASSERT( buf[0] == '1' ); in input_char()
169 CPPUNIT_ASSERT( buf[1] == 0 ); in input_char()
170 CPPUNIT_ASSERT( buf[2] == '2' ); in input_char()
246 char buf[64]; in tellg() local
251 is.read(buf, 0); in tellg()
254 is.read( buf, 8 ); in tellg()
[all …]
/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/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 …]
Dgetopt.c524 char *buf; in _getopt_internal_r() local
526 if (__asprintf (&buf, _("%s: option `%s' is ambiguous\n"), in _getopt_internal_r()
534 __fxprintf (NULL, "%s", buf); in _getopt_internal_r()
539 free (buf); in _getopt_internal_r()
567 char *buf; in _getopt_internal_r() local
575 n = __asprintf (&buf, _("\ in _getopt_internal_r()
588 n = __asprintf (&buf, _("\ in _getopt_internal_r()
609 __fxprintf (NULL, "%s", buf); in _getopt_internal_r()
614 free (buf); in _getopt_internal_r()
634 char *buf; in _getopt_internal_r() local
[all …]
Dwctob.c29 char buf[64]; in wctob() local
31 if (!(MB_CUR_MAX <= sizeof (buf))) in wctob()
33 if (wctomb (buf, wc) == 1) in wctob()
34 return (unsigned char) buf[0]; in wctob()
/ndk/sources/cxx-stl/stlport/src/details/
Dfstream_stdio.cpp129 struct STAT buf; in __is_regular_file() local
130 return FSTAT(fd, &buf) == 0 && (buf.st_mode & S_IFREG) != 0 ; in __is_regular_file()
137 struct STAT buf; in __file_size() local
138 if (FSTAT(fd, &buf) == 0 && (buf.st_mode & S_IFREG) != 0) in __file_size()
139 ret = buf.st_size > 0 ? buf.st_size : 0; in __file_size()
278 struct STAT buf; in _M_open() local
279 if (FSTAT(file_no, &buf) != 0) in _M_open()
281 int mode = buf.st_mode; in _M_open()
317 ptrdiff_t _Filebuf_base::_M_read(char* buf, ptrdiff_t n) { in _M_read() argument
318 return fread(buf, 1, n, _M_file); in _M_read()
[all …]
Dfstream_unistd.cpp105 struct STAT buf; in __is_regular_file() local
106 return FSTAT(fd, &buf) == 0 && S_ISREG(buf.st_mode); in __is_regular_file()
113 struct STAT buf; in __file_size() local
114 if (FSTAT(fd, &buf) == 0 && S_ISREG(buf.st_mode)) in __file_size()
115 ret = buf.st_size > 0 ? buf.st_size : 0; in __file_size()
260 ptrdiff_t _Filebuf_base::_M_read(char* buf, ptrdiff_t n) in _M_read() argument
262 return read(_M_file_id, buf, n); in _M_read()
267 bool _Filebuf_base::_M_write(char* buf, ptrdiff_t n) in _M_write() argument
270 ptrdiff_t written = write(_M_file_id, buf, n); in _M_write()
278 buf += written; in _M_write()
/ndk/sources/host-tools/sed-4.2.1/testsuite/
Dbug-regex15.c41 char buf[100]; in main() local
42 regerror (reerr, &re, buf, sizeof buf); in main()
43 printf ("regerror %s\n", buf); in main()
Dbug-regex9.c50 char buf[500]; in main() local
51 regerror (n, &re, buf, sizeof (buf)); in main()
52 printf ("regcomp failed: %s\n", buf); in main()
Dbug-regex12.c63 char buf[500]; in main() local
64 regerror (n, &re, buf, sizeof (buf)); in main()
65 printf ("regcomp %lu failed: %s\n", i, buf); in main()
/ndk/sources/host-tools/sed-4.2.1/sed/
Dutils.c352 const char *buf = fname, *c; in follow_symlink() local
362 while ((rc = lstat (buf, &statbuf)) == 0 in follow_symlink()
365 if (buf == buf2) in follow_symlink()
368 buf = buf1; in follow_symlink()
371 while ((rc = readlink (buf, buf2, buf_size)) == buf_size) in follow_symlink()
378 panic (_("couldn't follow symlink %s: %s"), buf, strerror(errno)); in follow_symlink()
382 if (buf2[0] != '/' && (c = strrchr (buf, '/')) != NULL) in follow_symlink()
386 int len = c - buf + 1; in follow_symlink()
395 if (buf != buf1) in follow_symlink()
396 memcpy (buf1, buf, len); in follow_symlink()
[all …]

123