Home
last modified time | relevance | path

Searched refs:ios_base (Results 1 – 25 of 251) sorted by relevance

1234567891011

/external/libcxx/test/input.output/string.streams/stringbuf/stringbuf.virtuals/
Dseekoff.pass.cpp24 std::stringbuf sb("0123456789", std::ios_base::in); in main()
25 assert(sb.pubseekoff(3, std::ios_base::beg, std::ios_base::out) == -1); in main()
26 assert(sb.pubseekoff(3, std::ios_base::cur, std::ios_base::out) == -1); in main()
27 assert(sb.pubseekoff(-3, std::ios_base::end, std::ios_base::out) == -1); in main()
28 assert(sb.pubseekoff(3, std::ios_base::beg, std::ios_base::in | std::ios_base::out) == -1); in main()
29 assert(sb.pubseekoff(3, std::ios_base::cur, std::ios_base::in | std::ios_base::out) == -1); in main()
30 assert(sb.pubseekoff(-3, std::ios_base::end, std::ios_base::in | std::ios_base::out) == -1); in main()
31 assert(sb.pubseekoff(3, std::ios_base::beg, std::ios_base::in) == 3); in main()
33 assert(sb.pubseekoff(3, std::ios_base::cur, std::ios_base::in) == 6); in main()
35 assert(sb.pubseekoff(-3, std::ios_base::end, std::ios_base::in) == 7); in main()
[all …]
Dseekpos.pass.cpp24 std::stringbuf sb("0123456789", std::ios_base::in); in main()
25 assert(sb.pubseekpos(3, std::ios_base::out) == -1); in main()
26 assert(sb.pubseekpos(3, std::ios_base::in | std::ios_base::out) == -1); in main()
27 assert(sb.pubseekpos(3, std::ios_base::in) == 3); in main()
31 std::stringbuf sb("0123456789", std::ios_base::out); in main()
32 assert(sb.pubseekpos(3, std::ios_base::in) == -1); in main()
33 assert(sb.pubseekpos(3, std::ios_base::out | std::ios_base::in) == -1); in main()
34 assert(sb.pubseekpos(3, std::ios_base::out) == 3); in main()
40 assert(sb.pubseekpos(3, std::ios_base::in) == 3); in main()
42 assert(sb.pubseekpos(3, std::ios_base::out | std::ios_base::in) == 3); in main()
[all …]
/external/libcxx/test/input.output/iostreams.base/ios.base/ios.types/ios_fmtflags/
Dfmtflags.pass.cpp38 assert(std::ios_base::boolalpha); in main()
39 assert(std::ios_base::dec); in main()
40 assert(std::ios_base::fixed); in main()
41 assert(std::ios_base::hex); in main()
42 assert(std::ios_base::internal); in main()
43 assert(std::ios_base::left); in main()
44 assert(std::ios_base::oct); in main()
45 assert(std::ios_base::right); in main()
46 assert(std::ios_base::scientific); in main()
47 assert(std::ios_base::showbase); in main()
[all …]
/external/stlport/src/
Dios.cpp36 ios_base::failure::failure(const string& s) in failure()
40 ios_base::failure::~failure() _STLP_NOTHROW_INHERENTLY {} in ~failure()
44 const ios_base::fmtflags ios_base::left;
45 const ios_base::fmtflags ios_base::right;
46 const ios_base::fmtflags ios_base::internal;
47 const ios_base::fmtflags ios_base::dec;
48 const ios_base::fmtflags ios_base::hex;
49 const ios_base::fmtflags ios_base::oct;
50 const ios_base::fmtflags ios_base::fixed;
51 const ios_base::fmtflags ios_base::scientific;
[all …]
/external/stlport/stlport/stl/
D_ios_base.h48 class _STLP_CLASS_DECLSPEC ios_base {
151 virtual ~ios_base();
155 typedef void (*event_callback)(event, ios_base&, int __index);
167 operator void*() const { return !fail() ? (void*) __CONST_CAST(ios_base*,this) : (void*) 0; }
183 void _M_copy_state(const ios_base& __x);
197 ios_base(); // Default constructor.
206 ios_base(const ios_base&);
207 void operator=(const ios_base&);
246 friend class ios_base; variable
267 inline ios_base& _STLP_CALL boolalpha(ios_base& __s) in boolalpha()
[all …]
D_num_get.h64 _InputIter get(_InputIter __ii, _InputIter __end, ios_base& __str, in get()
65 ios_base::iostate& __err, bool& __val) const in get()
70 _InputIter get(_InputIter __ii, _InputIter __end, ios_base& __str, in get()
71 ios_base::iostate& __err, short& __val) const in get()
74 _InputIter get(_InputIter __ii, _InputIter __end, ios_base& __str, in get()
75 ios_base::iostate& __err, int& __val) const in get()
79 _InputIter get(_InputIter __ii, _InputIter __end, ios_base& __str, in get()
80 ios_base::iostate& __err, long& __val) const in get()
83 _InputIter get(_InputIter __ii, _InputIter __end, ios_base& __str, in get()
84 ios_base::iostate& __err, unsigned short& __val) const in get()
[all …]
D_fstream.h59 bool _M_open(const char*, ios_base::openmode, long __protection);
60 bool _M_open(const char*, ios_base::openmode);
61 bool _M_open(int __id, ios_base::openmode = ios_base::__default_mode);
63 bool _M_open(_STLP_fd __id, ios_base::openmode = ios_base::__default_mode);
69 streamoff _M_seek(streamoff __offset, ios_base::seekdir __dir);
89 return ( (_M_openmode & ios_base::binary) != 0 ) in _M_get_offset()
101 return (_M_openmode & ios_base::binary) != 0; in _M_in_binary_mode()
118 ios_base::openmode _M_openmode ;
168 _Self* open(const char* __s, ios_base::openmode __m) { in open()
174 _Self* open(const char* __s, ios_base::openmode __m, in open()
[all …]
D_num_put.c44 ios_base::fmtflags __flags, in __copy_float_and_fill()
51 ios_base::fmtflags __dir = __flags & ios_base::adjustfield; in __copy_float_and_fill()
53 if (__dir == ios_base::left) { in __copy_float_and_fill()
57 else if (__dir == ios_base::internal && __first != __last && in __copy_float_and_fill()
75 ios_base& __f, wchar_t __fill, in __put_float()
97 ios_base& __f, char __fill, in __put_float()
115 __do_put_float(_OutputIter __s, ios_base& __f, in __do_put_float()
127 inline void __get_money_digits_aux (__iostring &__buf, ios_base &, _STLP_LONGEST_FLOAT_TYPE __x) in __get_money_digits_aux() argument
131 inline void __get_money_digits_aux (__iowstring &__wbuf, ios_base &__f, _STLP_LONGEST_FLOAT_TYPE __… in __get_money_digits_aux()
141 void _STLP_CALL __get_money_digits(_STLP_BASIC_IOSTRING(_CharT) &__buf, ios_base& __f, _STLP_LONGES… in __get_money_digits()
[all …]
/external/libcxx/test/depr/depr.str.strstreams/depr.strstreambuf/depr.strstreambuf.virtuals/
Dseekoff.pass.cpp25 assert(sb.pubseekoff(3, std::ios_base::beg, std::ios_base::out) == -1); in main()
26 assert(sb.pubseekoff(3, std::ios_base::cur, std::ios_base::out) == -1); in main()
27 assert(sb.pubseekoff(-3, std::ios_base::end, std::ios_base::out) == -1); in main()
28 assert(sb.pubseekoff(3, std::ios_base::beg, std::ios_base::in | std::ios_base::out) == -1); in main()
29 assert(sb.pubseekoff(3, std::ios_base::cur, std::ios_base::in | std::ios_base::out) == -1); in main()
30 assert(sb.pubseekoff(-3, std::ios_base::end, std::ios_base::in | std::ios_base::out) == -1); in main()
31 assert(sb.pubseekoff(3, std::ios_base::beg, std::ios_base::in) == 3); in main()
33 assert(sb.pubseekoff(3, std::ios_base::cur, std::ios_base::in) == 6); in main()
35 assert(sb.pubseekoff(-3, std::ios_base::end, std::ios_base::in) == 7); in main()
41 assert(sb.pubseekoff(3, std::ios_base::beg, std::ios_base::in) == 3); in main()
[all …]
/external/libcxx/include/
Dios26 class ios_base
94 virtual ~ios_base();
98 typedef void (*event_callback)(event, ios_base&, int index);
101 ios_base(const ios_base&) = delete;
102 ios_base& operator=(const ios_base&) = delete;
107 ios_base();
112 : public ios_base
168 ios_base& boolalpha (ios_base& str);
169 ios_base& noboolalpha(ios_base& str);
170 ios_base& showbase (ios_base& str);
[all …]
/external/libcxx/src/
Dios.cpp76 ios_base::failure::failure(const string& msg, const error_code& ec) in failure()
81 ios_base::failure::failure(const char* msg, const error_code& ec) in failure()
86 ios_base::failure::~failure() throw() in ~failure()
92 const ios_base::fmtflags ios_base::boolalpha;
93 const ios_base::fmtflags ios_base::dec;
94 const ios_base::fmtflags ios_base::fixed;
95 const ios_base::fmtflags ios_base::hex;
96 const ios_base::fmtflags ios_base::internal;
97 const ios_base::fmtflags ios_base::left;
98 const ios_base::fmtflags ios_base::oct;
[all …]
/external/stlport/src/details/
Dfstream_stdio.cpp172 bool _Filebuf_base::_M_open(const char* name, ios_base::openmode openmode, in _M_open()
183 switch (openmode & (~ios_base::ate)) { in _M_open()
184 case ios_base::out: in _M_open()
185 case ios_base::out | ios_base::trunc: in _M_open()
189 case ios_base::out | ios_base::binary: in _M_open()
190 case ios_base::out | ios_base::trunc | ios_base::binary: in _M_open()
194 case ios_base::out | ios_base::app: in _M_open()
198 case ios_base::out | ios_base::app | ios_base::binary: in _M_open()
202 case ios_base::in: in _M_open()
206 case ios_base::in | ios_base::binary: in _M_open()
[all …]
Dfstream_unistd.cpp78 static ios_base::openmode flag_to_openmode(int mode) in flag_to_openmode()
80 ios_base::openmode ret = ios_base::__default_mode; in flag_to_openmode()
84 ret = ios_base::in; in flag_to_openmode()
87 ret = ios_base::out; in flag_to_openmode()
90 ret = ios_base::in | ios_base::out; in flag_to_openmode()
95 ret |= ios_base::app; in flag_to_openmode()
155 bool _Filebuf_base::_M_open(const char* name, ios_base::openmode openmode, in _M_open()
166 switch ( openmode & (~ios_base::ate & ~ios_base::binary) ) { in _M_open()
167 case ios_base::out: in _M_open()
168 case ios_base::out | ios_base::trunc: in _M_open()
[all …]
/external/libcxx/test/input.output/iostream.format/std.manip/
Dsetbase.pass.cpp30 assert((is.flags() & std::ios_base::basefield) == std::ios_base::oct); in main()
32 assert((is.flags() & std::ios_base::basefield) == std::ios_base::dec); in main()
34 assert((is.flags() & std::ios_base::basefield) == std::ios_base::hex); in main()
36 assert((is.flags() & std::ios_base::basefield) == 0); in main()
42 assert((os.flags() & std::ios_base::basefield) == std::ios_base::oct); in main()
44 assert((os.flags() & std::ios_base::basefield) == std::ios_base::dec); in main()
46 assert((os.flags() & std::ios_base::basefield) == std::ios_base::hex); in main()
48 assert((os.flags() & std::ios_base::basefield) == 0); in main()
54 assert((is.flags() & std::ios_base::basefield) == std::ios_base::oct); in main()
56 assert((is.flags() & std::ios_base::basefield) == std::ios_base::dec); in main()
[all …]
/external/libcxx/test/localization/locale.categories/category.monetary/locale.money.get/locale.money.get.members/
Dget_long_double_en_US.pass.cpp64 std::ios_base::iostate err = std::ios_base::goodbit; in main()
68 assert(err == std::ios_base::eofbit); in main()
75 std::ios_base::iostate err = std::ios_base::goodbit; in main()
79 assert(err == std::ios_base::eofbit); in main()
86 std::ios_base::iostate err = std::ios_base::goodbit; in main()
90 assert(err == std::ios_base::eofbit); in main()
97 std::ios_base::iostate err = std::ios_base::goodbit; in main()
101 assert(err == std::ios_base::eofbit); in main()
108 std::ios_base::iostate err = std::ios_base::goodbit; in main()
112 assert(err == std::ios_base::eofbit); in main()
[all …]
Dget_long_double_fr_FR.pass.cpp66 std::ios_base::iostate err = std::ios_base::goodbit; in main()
70 assert(err == std::ios_base::eofbit); in main()
77 std::ios_base::iostate err = std::ios_base::goodbit; in main()
81 assert(err == std::ios_base::eofbit); in main()
88 std::ios_base::iostate err = std::ios_base::goodbit; in main()
92 assert(err == std::ios_base::eofbit); in main()
99 std::ios_base::iostate err = std::ios_base::goodbit; in main()
103 assert(err == std::ios_base::eofbit); in main()
110 std::ios_base::iostate err = std::ios_base::goodbit; in main()
114 assert(err == std::ios_base::eofbit); in main()
[all …]
Dget_long_double_zh_CN.pass.cpp64 std::ios_base::iostate err = std::ios_base::goodbit; in main()
68 assert(err == std::ios_base::eofbit); in main()
75 std::ios_base::iostate err = std::ios_base::goodbit; in main()
79 assert(err == std::ios_base::eofbit); in main()
86 std::ios_base::iostate err = std::ios_base::goodbit; in main()
90 assert(err == std::ios_base::eofbit); in main()
97 std::ios_base::iostate err = std::ios_base::goodbit; in main()
101 assert(err == std::ios_base::eofbit); in main()
108 std::ios_base::iostate err = std::ios_base::goodbit; in main()
112 assert(err == std::ios_base::eofbit); in main()
[all …]
Dget_long_double_ru_RU.pass.cpp66 std::ios_base::iostate err = std::ios_base::goodbit; in main()
70 assert(err == std::ios_base::eofbit); in main()
77 std::ios_base::iostate err = std::ios_base::goodbit; in main()
81 assert(err == std::ios_base::eofbit); in main()
88 std::ios_base::iostate err = std::ios_base::goodbit; in main()
92 assert(err == std::ios_base::eofbit); in main()
99 std::ios_base::iostate err = std::ios_base::goodbit; in main()
103 assert(err == std::ios_base::eofbit); in main()
110 std::ios_base::iostate err = std::ios_base::goodbit; in main()
114 assert(err == std::ios_base::eofbit); in main()
[all …]
Dget_string_en_US.pass.cpp64 std::ios_base::iostate err = std::ios_base::goodbit; in main()
68 assert(err == std::ios_base::eofbit); in main()
75 std::ios_base::iostate err = std::ios_base::goodbit; in main()
79 assert(err == std::ios_base::eofbit); in main()
86 std::ios_base::iostate err = std::ios_base::goodbit; in main()
90 assert(err == std::ios_base::eofbit); in main()
97 std::ios_base::iostate err = std::ios_base::goodbit; in main()
101 assert(err == std::ios_base::eofbit); in main()
108 std::ios_base::iostate err = std::ios_base::goodbit; in main()
112 assert(err == std::ios_base::eofbit); in main()
[all …]
/external/stlport/test/unit/
Dfstream_test.cpp157 …sic_fstream<char,char_traits<char> > f( "test_file.txt", ios_base::in | ios_base::out | ios_base::… in io()
164 f.seekg( 0, ios_base::beg ); in io()
192 …sic_fstream<char,char_traits<char> > f( "test_file.txt", ios_base::in | ios_base::out | ios_base::… in err()
200 f.seekg( 0, ios_base::beg ); in err()
214 ofstream of("test_file.txt", ios_base::out | ios_base::binary | ios_base::trunc); in tellg()
218 of << "line " << setiosflags(ios_base::right) << setfill('0') << setw(2) << i << "\n"; in tellg()
226 ifstream is("test_file.txt", ios_base::in | ios_base::binary); in tellg()
245 ifstream is("test_file.txt", ios_base::in | ios_base::binary); in tellg()
254 is.seekg( p, ios_base::beg ); in tellg()
261 ifstream is("test_file.txt", ios_base::in | ios_base::binary); in tellg()
[all …]
/external/libcxx/test/localization/locale.categories/category.time/locale.time.get/locale.time.get.members/
Dget_monthname.pass.cpp38 std::ios_base::iostate err; in main()
42 err = std::ios_base::goodbit; in main()
47 assert(err == std::ios_base::eofbit); in main()
51 err = std::ios_base::goodbit; in main()
56 assert(err == std::ios_base::eofbit); in main()
60 err = std::ios_base::goodbit; in main()
65 assert(err == std::ios_base::eofbit); in main()
69 err = std::ios_base::goodbit; in main()
74 assert(err == std::ios_base::eofbit); in main()
78 err = std::ios_base::goodbit; in main()
[all …]
Dget_weekday_wide.pass.cpp38 std::ios_base::iostate err; in main()
42 err = std::ios_base::goodbit; in main()
47 assert(err == std::ios_base::eofbit); in main()
51 err = std::ios_base::goodbit; in main()
56 assert(err == std::ios_base::goodbit); in main()
60 err = std::ios_base::goodbit; in main()
65 assert(err == (std::ios_base::failbit | std::ios_base::eofbit)); in main()
69 err = std::ios_base::goodbit; in main()
74 assert(err == std::ios_base::eofbit); in main()
78 err = std::ios_base::goodbit; in main()
[all …]
Dget_weekday.pass.cpp38 std::ios_base::iostate err; in main()
42 err = std::ios_base::goodbit; in main()
47 assert(err == std::ios_base::eofbit); in main()
51 err = std::ios_base::goodbit; in main()
56 assert(err == std::ios_base::goodbit); in main()
60 err = std::ios_base::goodbit; in main()
65 assert(err == (std::ios_base::failbit | std::ios_base::eofbit)); in main()
69 err = std::ios_base::goodbit; in main()
74 assert(err == std::ios_base::eofbit); in main()
78 err = std::ios_base::goodbit; in main()
[all …]
Dget_monthname_wide.pass.cpp38 std::ios_base::iostate err; in main()
42 err = std::ios_base::goodbit; in main()
47 assert(err == std::ios_base::eofbit); in main()
51 err = std::ios_base::goodbit; in main()
56 assert(err == std::ios_base::eofbit); in main()
60 err = std::ios_base::goodbit; in main()
65 assert(err == std::ios_base::eofbit); in main()
69 err = std::ios_base::goodbit; in main()
74 assert(err == std::ios_base::eofbit); in main()
78 err = std::ios_base::goodbit; in main()
[all …]
/external/libcxx/test/input.output/iostreams.base/ios.base/ios.types/ios_openmode/
Dopenmode.pass.cpp26 assert(std::ios_base::app); in main()
27 assert(std::ios_base::ate); in main()
28 assert(std::ios_base::binary); in main()
29 assert(std::ios_base::in); in main()
30 assert(std::ios_base::out); in main()
31 assert(std::ios_base::trunc); in main()
35 ( std::ios_base::app in main()
36 & std::ios_base::ate in main()
37 & std::ios_base::binary in main()
38 & std::ios_base::in in main()
[all …]

1234567891011