/external/libcxx/test/std/localization/locale.categories/category.numeric/locale.nm.put/facet.num.put.members/ |
D | put_double.pass.cpp | 57 std::ios ios(0); in test1() local 60 ios.precision(0); in test1() 62 nouppercase(ios); in test1() 64 noshowpos(ios); in test1() 66 noshowpoint(ios); in test1() 68 ios.imbue(lc); in test1() 70 ios.width(0); in test1() 72 iter = f.put(output_iterator<char*>(str), ios, '*', v); in test1() 75 assert(ios.width() == 0); in test1() 77 ios.width(25); in test1() [all …]
|
D | put_long_double.pass.cpp | 62 std::ios ios(0); in test1() local 65 ios.precision(0); in test1() 67 nouppercase(ios); in test1() 69 noshowpos(ios); in test1() 71 noshowpoint(ios); in test1() 73 ios.imbue(lc); in test1() 75 ios.width(0); in test1() 77 iter = f.put(output_iterator<char*>(str), ios, '*', v); in test1() 80 assert(ios.width() == 0); in test1() 82 ios.width(25); in test1() [all …]
|
D | put_long.pass.cpp | 47 std::ios ios(0); in main() local 50 output_iterator<char*> iter = f.put(output_iterator<char*>(str), ios, '*', v); in main() 55 std::ios ios(0); in main() local 58 output_iterator<char*> iter = f.put(output_iterator<char*>(str), ios, '*', v); in main() 63 std::ios ios(0); in main() local 66 output_iterator<char*> iter = f.put(output_iterator<char*>(str), ios, '*', v); in main() 71 std::ios ios(0); in main() local 74 output_iterator<char*> iter = f.put(output_iterator<char*>(str), ios, '*', v); in main() 79 std::ios ios(0); in main() local 82 output_iterator<char*> iter = f.put(output_iterator<char*>(str), ios, '*', v); in main() [all …]
|
D | put_unsigned_long_long.pass.cpp | 47 std::ios ios(0); in main() local 50 output_iterator<char*> iter = f.put(output_iterator<char*>(str), ios, '*', v); in main() 55 std::ios ios(0); in main() local 58 output_iterator<char*> iter = f.put(output_iterator<char*>(str), ios, '*', v); in main() 63 std::ios ios(0); in main() local 66 output_iterator<char*> iter = f.put(output_iterator<char*>(str), ios, '*', v); in main() 71 std::ios ios(0); in main() local 74 output_iterator<char*> iter = f.put(output_iterator<char*>(str), ios, '*', v); in main() 79 std::ios ios(0); in main() local 82 output_iterator<char*> iter = f.put(output_iterator<char*>(str), ios, '*', v); in main() [all …]
|
D | put_unsigned_long.pass.cpp | 47 std::ios ios(0); in main() local 50 output_iterator<char*> iter = f.put(output_iterator<char*>(str), ios, '*', v); in main() 55 std::ios ios(0); in main() local 58 output_iterator<char*> iter = f.put(output_iterator<char*>(str), ios, '*', v); in main() 63 std::ios ios(0); in main() local 66 output_iterator<char*> iter = f.put(output_iterator<char*>(str), ios, '*', v); in main() 71 std::ios ios(0); in main() local 74 output_iterator<char*> iter = f.put(output_iterator<char*>(str), ios, '*', v); in main() 79 std::ios ios(0); in main() local 82 output_iterator<char*> iter = f.put(output_iterator<char*>(str), ios, '*', v); in main() [all …]
|
D | put_long_long.pass.cpp | 47 std::ios ios(0); in main() local 50 output_iterator<char*> iter = f.put(output_iterator<char*>(str), ios, '*', v); in main() 55 std::ios ios(0); in main() local 58 output_iterator<char*> iter = f.put(output_iterator<char*>(str), ios, '*', v); in main() 63 std::ios ios(0); in main() local 66 output_iterator<char*> iter = f.put(output_iterator<char*>(str), ios, '*', v); in main() 71 std::ios ios(0); in main() local 74 output_iterator<char*> iter = f.put(output_iterator<char*>(str), ios, '*', v); in main() 79 std::ios ios(0); in main() local 82 output_iterator<char*> iter = f.put(output_iterator<char*>(str), ios, '*', v); in main() [all …]
|
/external/libcxx/test/std/input.output/iostreams.base/ios/iostate.flags/ |
D | setstate.pass.cpp | 27 std::ios ios(0); in main() local 28 ios.setstate(std::ios::goodbit); in main() 29 assert(ios.rdstate() == std::ios::badbit); in main() 33 ios.exceptions(std::ios::badbit); in main() 41 ios.setstate(std::ios::goodbit); in main() 44 catch (std::ios::failure&) in main() 46 assert(ios.rdstate() == std::ios::badbit); in main() 50 ios.setstate(std::ios::eofbit); in main() 53 catch (std::ios::failure&) in main() 55 assert(ios.rdstate() == (std::ios::eofbit | std::ios::badbit)); in main() [all …]
|
D | clear.pass.cpp | 27 std::ios ios(0); in main() local 28 ios.clear(); in main() 29 assert(ios.rdstate() == std::ios::badbit); in main() 33 ios.exceptions(std::ios::badbit); in main() 41 ios.clear(); in main() 44 catch (std::ios::failure&) in main() 46 assert(ios.rdstate() == std::ios::badbit); in main() 50 ios.clear(std::ios::eofbit); in main() 53 catch (std::ios::failure&) in main() 55 assert(ios.rdstate() == (std::ios::eofbit | std::ios::badbit)); in main() [all …]
|
D | exceptions_iostate.pass.cpp | 27 std::ios ios(0); in main() local 28 assert(ios.exceptions() == std::ios::goodbit); in main() 29 ios.exceptions(std::ios::eofbit); in main() 30 assert(ios.exceptions() == std::ios::eofbit); in main() 34 ios.exceptions(std::ios::badbit); in main() 37 catch (std::ios::failure&) in main() 40 assert(ios.exceptions() == std::ios::badbit); in main() 45 std::ios ios(&sb); in main() local 46 assert(ios.exceptions() == std::ios::goodbit); in main() 47 ios.exceptions(std::ios::eofbit); in main() [all …]
|
D | fail.pass.cpp | 25 std::ios ios(0); in main() local 26 assert(ios.fail()); in main() 27 ios.setstate(std::ios::eofbit); in main() 28 assert(ios.fail()); in main() 32 std::ios ios(&sb); in main() local 33 assert(!ios.fail()); in main() 34 ios.setstate(std::ios::eofbit); in main() 35 assert(!ios.fail()); in main() 36 ios.setstate(std::ios::badbit); in main() 37 assert(ios.fail()); in main() [all …]
|
D | bad.pass.cpp | 25 std::ios ios(0); in main() local 26 assert(ios.bad()); in main() 27 ios.setstate(std::ios::eofbit); in main() 28 assert(ios.bad()); in main() 32 std::ios ios(&sb); in main() local 33 assert(!ios.bad()); in main() 34 ios.setstate(std::ios::eofbit); in main() 35 assert(!ios.bad()); in main() 36 ios.setstate(std::ios::failbit); in main() 37 assert(!ios.bad()); in main() [all …]
|
/external/libcxx/test/std/localization/locale.categories/category.monetary/locale.money.put/locale.money.put.members/ |
D | put_long_double_ru_RU.pass.cpp | 57 std::ios ios(0); in main() local 59 ios.imbue(std::locale(ios.getloc(), in main() 61 ios.imbue(std::locale(ios.getloc(), in main() 63 ios.imbue(std::locale(ios.getloc(), in main() 65 ios.imbue(std::locale(ios.getloc(), in main() 74 false, ios, '*', v); in main() 82 false, ios, '*', v); in main() 90 false, ios, '*', v); in main() 98 false, ios, '*', v); in main() 104 showbase(ios); in main() [all …]
|
D | put_long_double_fr_FR.pass.cpp | 51 std::ios ios(0); in main() local 53 ios.imbue(std::locale(ios.getloc(), in main() 55 ios.imbue(std::locale(ios.getloc(), in main() 57 ios.imbue(std::locale(ios.getloc(), in main() 59 ios.imbue(std::locale(ios.getloc(), in main() 68 false, ios, '*', v); in main() 76 false, ios, '*', v); in main() 84 false, ios, '*', v); in main() 92 false, ios, '*', v); in main() 98 showbase(ios); in main() [all …]
|
D | put_long_double_zh_CN.pass.cpp | 52 std::ios ios(0); in main() local 54 ios.imbue(std::locale(ios.getloc(), in main() 56 ios.imbue(std::locale(ios.getloc(), in main() 58 ios.imbue(std::locale(ios.getloc(), in main() 60 ios.imbue(std::locale(ios.getloc(), in main() 69 false, ios, '*', v); in main() 77 false, ios, '*', v); in main() 85 false, ios, '*', v); in main() 93 false, ios, '*', v); in main() 99 showbase(ios); in main() [all …]
|
D | put_long_double_en_US.pass.cpp | 49 std::ios ios(0); in main() local 51 ios.imbue(std::locale(ios.getloc(), in main() 53 ios.imbue(std::locale(ios.getloc(), in main() 55 ios.imbue(std::locale(ios.getloc(), in main() 57 ios.imbue(std::locale(ios.getloc(), in main() 66 false, ios, '*', v); in main() 74 false, ios, '*', v); in main() 82 false, ios, '*', v); in main() 90 false, ios, '*', v); in main() 96 showbase(ios); in main() [all …]
|
D | put_string_en_US.pass.cpp | 49 std::ios ios(0); in main() local 51 ios.imbue(std::locale(ios.getloc(), in main() 53 ios.imbue(std::locale(ios.getloc(), in main() 55 ios.imbue(std::locale(ios.getloc(), in main() 57 ios.imbue(std::locale(ios.getloc(), in main() 66 false, ios, '*', v); in main() 74 false, ios, '*', v); in main() 82 false, ios, '*', v); in main() 90 false, ios, '*', v); in main() 96 showbase(ios); in main() [all …]
|
/external/libcxx/test/std/localization/locale.categories/category.numeric/locale.num.get/facet.num.get.members/ |
D | get_long.pass.cpp | 47 std::ios ios(0); in main() local 51 assert((ios.flags() & ios.basefield) == ios.dec); in main() 52 assert(ios.getloc().name() == "C"); in main() 53 std::ios_base::iostate err = ios.goodbit; in main() 57 ios, err, v); in main() 59 assert(err == ios.goodbit); in main() 64 assert((ios.flags() & ios.basefield) == ios.dec); in main() 65 assert(ios.getloc().name() == "C"); in main() 66 std::ios_base::iostate err = ios.goodbit; in main() 70 ios, err, v); in main() [all …]
|
D | get_double.pass.cpp | 53 std::ios ios(0); in main() local 57 assert((ios.flags() & ios.basefield) == ios.dec); in main() 58 assert(ios.getloc().name() == "C"); in main() 59 std::ios_base::iostate err = ios.goodbit; in main() 63 ios, err, v); in main() 65 assert(err == ios.goodbit); in main() 70 std::ios_base::iostate err = ios.goodbit; in main() 74 ios, err, v); in main() 76 assert(err == ios.goodbit); in main() 81 std::ios_base::iostate err = ios.goodbit; in main() [all …]
|
D | get_long_double.pass.cpp | 39 std::ios ios(0); in main() local 43 assert((ios.flags() & ios.basefield) == ios.dec); in main() 44 assert(ios.getloc().name() == "C"); in main() 45 std::ios_base::iostate err = ios.goodbit; in main() 49 ios, err, v); in main() 51 assert(err == ios.goodbit); in main() 56 std::ios_base::iostate err = ios.goodbit; in main() 60 ios, err, v); in main() 62 assert(err == ios.goodbit); in main() 67 std::ios_base::iostate err = ios.goodbit; in main() [all …]
|
D | get_float.pass.cpp | 39 std::ios ios(0); in main() local 43 assert((ios.flags() & ios.basefield) == ios.dec); in main() 44 assert(ios.getloc().name() == "C"); in main() 45 std::ios_base::iostate err = ios.goodbit; in main() 49 ios, err, v); in main() 51 assert(err == ios.goodbit); in main() 56 std::ios_base::iostate err = ios.goodbit; in main() 60 ios, err, v); in main() 62 assert(err == ios.goodbit); in main() 67 std::ios_base::iostate err = ios.goodbit; in main() [all …]
|
D | get_bool.pass.cpp | 58 std::ios ios(0); in main() local 61 std::ios_base::iostate err = ios.goodbit; in main() 66 ios, err, b); in main() 68 assert(err == ios.goodbit); in main() 73 std::ios_base::iostate err = ios.goodbit; in main() 78 ios, err, b); in main() 80 assert(err == ios.goodbit); in main() 85 std::ios_base::iostate err = ios.goodbit; in main() 90 ios, err, b); in main() 92 assert(err == ios.failbit); in main() [all …]
|
/external/libcxx/test/std/input.output/iostreams.base/ios/basic.ios.cons/ |
D | ctor_streambuf.pass.cpp | 24 std::basic_ios<char> ios(sb); in main() local 25 assert(ios.rdbuf() == sb); in main() 26 assert(ios.tie() == 0); in main() 27 assert(ios.rdstate() == std::ios::badbit); in main() 28 assert(ios.exceptions() == std::ios::goodbit); in main() 29 assert(ios.flags() == (std::ios::skipws | std::ios::dec)); in main() 30 assert(ios.width() == 0); in main() 31 assert(ios.precision() == 6); in main() 32 assert(ios.fill() == ' '); in main() 33 assert(ios.getloc() == std::locale()); in main() [all …]
|
/external/zlib/src/contrib/iostream/ |
D | zfstream.cpp | 27 if ( io_mode & ios::in ) { in open() 28 mode = ios::in; in open() 30 } else if ( io_mode & ios::app ) { in open() 31 mode = ios::app; in open() 34 mode = ios::out; in open() 38 if ( io_mode & ios::binary ) { in open() 39 mode |= ios::binary; in open() 44 if ( io_mode & (ios::out|ios::app )) { in open() 69 if ( io_mode & ios::in ) { in attach() 70 mode = ios::in; in attach() [all …]
|
/external/libcxx/test/std/localization/locale.categories/category.time/locale.time.put/locale.time.put.members/ |
D | put2.pass.cpp | 46 std::ios ios(0); in main() local 48 iter = f.put(output_iterator<char*>(str), ios, '*', &t, 'A'); in main() 53 iter = f.put(output_iterator<char*>(str), ios, '*', &t, 'a'); in main() 58 iter = f.put(output_iterator<char*>(str), ios, '*', &t, 'B'); in main() 63 iter = f.put(output_iterator<char*>(str), ios, '*', &t, 'b'); in main() 68 iter = f.put(output_iterator<char*>(str), ios, '*', &t, 'C'); in main() 73 iter = f.put(output_iterator<char*>(str), ios, '*', &t, 'c'); in main() 78 iter = f.put(output_iterator<char*>(str), ios, '*', &t, 'D'); in main() 83 iter = f.put(output_iterator<char*>(str), ios, '*', &t, 'd'); in main() 88 iter = f.put(output_iterator<char*>(str), ios, '*', &t, 'c', 'E'); in main() [all …]
|
/external/libcxx/test/std/input.output/iostreams.base/ios/basic.ios.members/ |
D | set_rdbuf.pass.cpp | 28 : public std::ios 30 testios(std::streambuf* p) : std::ios(p) {} in testios() 31 void set_rdbuf(std::streambuf* x) {std::ios::set_rdbuf(x);} in set_rdbuf() 38 testios ios(&sb1); in main() local 42 ios.setstate(std::ios::badbit); in main() 43 ios.exceptions(std::ios::badbit); in main() 50 ios.set_rdbuf(&sb2); in main() 51 assert(ios.rdbuf() == &sb2); in main() 55 ios.setstate(std::ios::badbit); in main() 56 ios.exceptions(std::ios::badbit); in main() [all …]
|