Home
last modified time | relevance | path

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

12345678910>>...22

/external/libcxx/test/std/input.output/string.streams/stringbuf/stringbuf.virtuals/
Dseekoff.pass.cpp24 std::stringbuf sb(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(0, std::ios_base::beg, std::ios_base::in) == 0); in main()
32 assert(sb.pubseekoff(0, std::ios_base::cur, std::ios_base::in) == 0); in main()
33 assert(sb.pubseekoff(0, std::ios_base::end, std::ios_base::in) == 0); 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/llvm-project/libcxx/test/std/input.output/string.streams/stringbuf/stringbuf.virtuals/
Dseekoff.pass.cpp25 std::stringbuf sb(std::ios_base::in); in main()
26 assert(sb.pubseekoff(3, std::ios_base::beg, std::ios_base::out) == -1); in main()
27 assert(sb.pubseekoff(3, std::ios_base::cur, std::ios_base::out) == -1); in main()
28 assert(sb.pubseekoff(-3, std::ios_base::end, std::ios_base::out) == -1); in main()
29 assert(sb.pubseekoff(3, std::ios_base::beg, std::ios_base::in | std::ios_base::out) == -1); in main()
30 assert(sb.pubseekoff(3, std::ios_base::cur, std::ios_base::in | std::ios_base::out) == -1); in main()
31 assert(sb.pubseekoff(-3, std::ios_base::end, std::ios_base::in | std::ios_base::out) == -1); in main()
32 assert(sb.pubseekoff(0, std::ios_base::beg, std::ios_base::in) == 0); in main()
33 assert(sb.pubseekoff(0, std::ios_base::cur, std::ios_base::in) == 0); in main()
34 assert(sb.pubseekoff(0, std::ios_base::end, std::ios_base::in) == 0); in main()
[all …]
Dseekpos.pass.cpp25 std::stringbuf sb("0123456789", std::ios_base::in); in main()
26 assert(sb.pubseekpos(3, std::ios_base::out) == -1); in main()
27 assert(sb.pubseekpos(3, std::ios_base::in | std::ios_base::out) == -1); in main()
28 assert(sb.pubseekpos(3, std::ios_base::in) == 3); in main()
32 std::stringbuf sb("0123456789", std::ios_base::out); in main()
33 assert(sb.pubseekpos(3, std::ios_base::in) == -1); in main()
34 assert(sb.pubseekpos(3, std::ios_base::out | std::ios_base::in) == -1); in main()
35 assert(sb.pubseekpos(3, std::ios_base::out) == 3); in main()
41 assert(sb.pubseekpos(3, std::ios_base::in) == 3); in main()
43 assert(sb.pubseekpos(3, std::ios_base::out | std::ios_base::in) == 3); in main()
[all …]
/external/libcxx/test/std/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/llvm-project/libcxx/test/std/input.output/iostreams.base/ios.base/ios.types/ios_fmtflags/
Dfmtflags.pass.cpp39 assert(std::ios_base::boolalpha); in main()
40 assert(std::ios_base::dec); in main()
41 assert(std::ios_base::fixed); in main()
42 assert(std::ios_base::hex); in main()
43 assert(std::ios_base::internal); in main()
44 assert(std::ios_base::left); in main()
45 assert(std::ios_base::oct); in main()
46 assert(std::ios_base::right); in main()
47 assert(std::ios_base::scientific); in main()
48 assert(std::ios_base::showbase); in main()
[all …]
/external/llvm-project/libcxx/test/std/depr/depr.str.strstreams/depr.strstreambuf/depr.strstreambuf.virtuals/
Dseekoff.pass.cpp26 assert(sb.pubseekoff(3, std::ios_base::beg, std::ios_base::out) == -1); in main()
27 assert(sb.pubseekoff(3, std::ios_base::cur, std::ios_base::out) == -1); in main()
28 assert(sb.pubseekoff(-3, std::ios_base::end, std::ios_base::out) == -1); in main()
29 assert(sb.pubseekoff(3, std::ios_base::beg, std::ios_base::in | std::ios_base::out) == -1); in main()
30 assert(sb.pubseekoff(3, std::ios_base::cur, std::ios_base::in | std::ios_base::out) == -1); in main()
31 assert(sb.pubseekoff(-3, std::ios_base::end, std::ios_base::in | std::ios_base::out) == -1); in main()
32 assert(sb.pubseekoff(3, std::ios_base::beg, std::ios_base::in) == 3); in main()
34 assert(sb.pubseekoff(3, std::ios_base::cur, std::ios_base::in) == 6); in main()
36 assert(sb.pubseekoff(-3, std::ios_base::end, std::ios_base::in) == 7); in main()
42 assert(sb.pubseekoff(3, std::ios_base::beg, std::ios_base::in) == 3); in main()
[all …]
/external/libcxx/test/std/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/llvm-project/clang-tools-extra/test/clang-tidy/checkers/
Dhicpp-signed-bitwise-standard-types.cpp41 std::ios_base::fmtflags F = std::ios_base::fmtflags::floatfield; in pure_bitmask_types()
43 SResult = std::ios_base::fmtflags::dec | std::ios_base::fmtflags::oct; in pure_bitmask_types()
44 SResult = std::ios_base::fmtflags::hex & std::ios_base::fmtflags::basefield; in pure_bitmask_types()
45 SResult = std::ios_base::fmtflags::left ^ std::ios_base::fmtflags::right; in pure_bitmask_types()
46 SResult|= std::ios_base::fmtflags::internal | std::ios_base::fmtflags::adjustfield; in pure_bitmask_types()
47 SResult&= std::ios_base::fmtflags::scientific & std::ios_base::fmtflags::fixed; in pure_bitmask_types()
48 SResult^= std::ios_base::fmtflags::floatfield ^ std::ios_base::fmtflags::boolalpha; in pure_bitmask_types()
49 SResult = std::ios_base::fmtflags::showbase | std::ios_base::fmtflags::showpoint; in pure_bitmask_types()
50 SResult = std::ios_base::fmtflags::showpos & std::ios_base::fmtflags::skipws; in pure_bitmask_types()
51 SResult = std::ios_base::fmtflags::unitbuf ^ std::ios_base::fmtflags::uppercase; in pure_bitmask_types()
[all …]
Dmodernize-deprecated-ios-base-aliases.cpp4 class ios_base { class
15 class basic_ios : public ios_base {
20 std::ios_base::io_state f_5();
25 void f_6(std::ios_base::open_mode);
28 void f_7(const std::ios_base::seek_dir &);
34 std::ios_base::io_state field;
38 typedef std::ios_base::io_state int_ptr_type;
43 struct B : public std::ios_base {
56 std::ios_base::io_state a; in f_1()
61 std :: ios_base :: io_state b; in f_1()
[all …]
/external/llvm-project/libcxx/src/
Dios.cpp61 ios_base::failure::failure(const string& msg, const error_code& ec) in failure()
66 ios_base::failure::failure(const char* msg, const error_code& ec) in failure()
71 ios_base::failure::~failure() throw() in ~failure()
77 const ios_base::fmtflags ios_base::boolalpha;
78 const ios_base::fmtflags ios_base::dec;
79 const ios_base::fmtflags ios_base::fixed;
80 const ios_base::fmtflags ios_base::hex;
81 const ios_base::fmtflags ios_base::internal;
82 const ios_base::fmtflags ios_base::left;
83 const ios_base::fmtflags ios_base::oct;
[all …]
/external/libcxx/src/
Dios.cpp78 ios_base::failure::failure(const string& msg, const error_code& ec) in failure()
83 ios_base::failure::failure(const char* msg, const error_code& ec) in failure()
88 ios_base::failure::~failure() throw() in ~failure()
94 const ios_base::fmtflags ios_base::boolalpha;
95 const ios_base::fmtflags ios_base::dec;
96 const ios_base::fmtflags ios_base::fixed;
97 const ios_base::fmtflags ios_base::hex;
98 const ios_base::fmtflags ios_base::internal;
99 const ios_base::fmtflags ios_base::left;
100 const ios_base::fmtflags ios_base::oct;
[all …]
/external/llvm-project/libcxx/include/
Dios25 class ios_base
93 virtual ~ios_base();
97 typedef void (*event_callback)(event, ios_base&, int index);
100 ios_base(const ios_base&) = delete;
101 ios_base& operator=(const ios_base&) = delete;
106 ios_base();
111 : public ios_base
167 ios_base& boolalpha (ios_base& str);
168 ios_base& noboolalpha(ios_base& str);
169 ios_base& showbase (ios_base& str);
[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 …]
Dfstream39 basic_filebuf* open(const char* s, ios_base::openmode mode);
40 basic_filebuf* open(const string& s, ios_base::openmode mode);
41 basic_filebuf* open(const filesystem::path& p, ios_base::openmode mode); // C++17
52 virtual pos_type seekoff(off_type off, ios_base::seekdir way,
53 ios_base::openmode which = ios_base::in | ios_base::out);
55 ios_base::openmode which = ios_base::in | ios_base::out);
79 explicit basic_ifstream(const char* s, ios_base::openmode mode = ios_base::in);
80 explicit basic_ifstream(const string& s, ios_base::openmode mode = ios_base::in);
82 ios_base::openmode mode = ios_base::in); // C++17
90 void open(const char* s, ios_base::openmode mode = ios_base::in);
[all …]
/external/llvm-project/libcxx/test/std/input.output/iostream.format/std.manip/
Dsetbase.pass.cpp33 assert((is.flags() & std::ios_base::basefield) == std::ios_base::oct); in main()
35 assert((is.flags() & std::ios_base::basefield) == std::ios_base::dec); in main()
37 assert((is.flags() & std::ios_base::basefield) == std::ios_base::hex); in main()
39 assert((is.flags() & std::ios_base::basefield) == 0); in main()
45 assert((os.flags() & std::ios_base::basefield) == std::ios_base::oct); in main()
47 assert((os.flags() & std::ios_base::basefield) == std::ios_base::dec); in main()
49 assert((os.flags() & std::ios_base::basefield) == std::ios_base::hex); in main()
51 assert((os.flags() & std::ios_base::basefield) == 0); in main()
57 assert((is.flags() & std::ios_base::basefield) == std::ios_base::oct); in main()
59 assert((is.flags() & std::ios_base::basefield) == std::ios_base::dec); in main()
[all …]
/external/libcxx/test/std/input.output/iostream.format/std.manip/
Dsetbase.pass.cpp32 assert((is.flags() & std::ios_base::basefield) == std::ios_base::oct); in main()
34 assert((is.flags() & std::ios_base::basefield) == std::ios_base::dec); in main()
36 assert((is.flags() & std::ios_base::basefield) == std::ios_base::hex); in main()
38 assert((is.flags() & std::ios_base::basefield) == 0); in main()
44 assert((os.flags() & std::ios_base::basefield) == std::ios_base::oct); in main()
46 assert((os.flags() & std::ios_base::basefield) == std::ios_base::dec); in main()
48 assert((os.flags() & std::ios_base::basefield) == std::ios_base::hex); in main()
50 assert((os.flags() & std::ios_base::basefield) == 0); in main()
56 assert((is.flags() & std::ios_base::basefield) == std::ios_base::oct); in main()
58 assert((is.flags() & std::ios_base::basefield) == std::ios_base::dec); in main()
[all …]
/external/libcxx/test/std/localization/locale.categories/category.monetary/locale.money.get/locale.money.get.members/
Dget_long_double_ru_RU.pass.cpp78 std::ios_base::iostate err = std::ios_base::goodbit; in main()
82 assert(err == std::ios_base::eofbit); in main()
89 std::ios_base::iostate err = std::ios_base::goodbit; in main()
93 assert(err == std::ios_base::eofbit); in main()
100 std::ios_base::iostate err = std::ios_base::goodbit; in main()
104 assert(err == std::ios_base::eofbit); in main()
111 std::ios_base::iostate err = std::ios_base::goodbit; in main()
115 assert(err == std::ios_base::eofbit); in main()
122 std::ios_base::iostate err = std::ios_base::goodbit; in main()
126 assert(err == std::ios_base::eofbit); in main()
[all …]
Dget_long_double_fr_FR.pass.cpp99 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()
121 std::ios_base::iostate err = std::ios_base::goodbit; in main()
125 assert(err == std::ios_base::eofbit); in main()
132 std::ios_base::iostate err = std::ios_base::goodbit; in main()
136 assert(err == std::ios_base::eofbit); in main()
143 std::ios_base::iostate err = std::ios_base::goodbit; in main()
147 assert(err == std::ios_base::eofbit); in main()
[all …]
Dget_long_double_zh_CN.pass.cpp72 std::ios_base::iostate err = std::ios_base::goodbit; in main()
76 assert(err == std::ios_base::eofbit); in main()
83 std::ios_base::iostate err = std::ios_base::goodbit; in main()
87 assert(err == std::ios_base::eofbit); in main()
94 std::ios_base::iostate err = std::ios_base::goodbit; in main()
98 assert(err == std::ios_base::eofbit); in main()
105 std::ios_base::iostate err = std::ios_base::goodbit; in main()
109 assert(err == std::ios_base::eofbit); in main()
116 std::ios_base::iostate err = std::ios_base::goodbit; in main()
120 assert(err == std::ios_base::eofbit); in main()
[all …]
Dget_long_double_en_US.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 …]
/external/llvm-project/libcxx/test/std/localization/locale.categories/category.monetary/locale.money.get/locale.money.get.members/
Dget_long_double_zh_CN.pass.cpp72 std::ios_base::iostate err = std::ios_base::goodbit; in main()
76 assert(err == std::ios_base::eofbit); in main()
83 std::ios_base::iostate err = std::ios_base::goodbit; in main()
87 assert(err == std::ios_base::eofbit); in main()
94 std::ios_base::iostate err = std::ios_base::goodbit; in main()
98 assert(err == std::ios_base::eofbit); in main()
105 std::ios_base::iostate err = std::ios_base::goodbit; in main()
109 assert(err == std::ios_base::eofbit); in main()
116 std::ios_base::iostate err = std::ios_base::goodbit; in main()
120 assert(err == std::ios_base::eofbit); in main()
[all …]
Dget_long_double_en_US.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_fr_FR.pass.cpp98 std::ios_base::iostate err = std::ios_base::goodbit; in main()
102 assert(err == std::ios_base::eofbit); in main()
109 std::ios_base::iostate err = std::ios_base::goodbit; in main()
113 assert(err == std::ios_base::eofbit); in main()
120 std::ios_base::iostate err = std::ios_base::goodbit; in main()
124 assert(err == std::ios_base::eofbit); in main()
131 std::ios_base::iostate err = std::ios_base::goodbit; in main()
135 assert(err == std::ios_base::eofbit); in main()
142 std::ios_base::iostate err = std::ios_base::goodbit; in main()
146 assert(err == std::ios_base::eofbit); in main()
[all …]
Dget_long_double_ru_RU.pass.cpp88 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()
121 std::ios_base::iostate err = std::ios_base::goodbit; in main()
125 assert(err == std::ios_base::eofbit); in main()
132 std::ios_base::iostate err = std::ios_base::goodbit; in main()
136 assert(err == std::ios_base::eofbit); in main()
[all …]

12345678910>>...22