/ndk/sources/cxx-stl/llvm-libc++/test/localization/locale.categories/category.numeric/locale.nm.put/facet.num.put.members/ |
D | put_double.pass.cpp | 54 std::ios ios(0); in test1() local 57 ios.precision(0); in test1() 59 nouppercase(ios); in test1() 61 noshowpos(ios); in test1() 63 noshowpoint(ios); in test1() 65 ios.imbue(lc); in test1() 67 ios.width(0); in test1() 69 iter = f.put(output_iterator<char*>(str), ios, '*', v); in test1() 72 assert(ios.width() == 0); in test1() 74 ios.width(25); in test1() [all …]
|
D | put_long_double.pass.cpp | 54 std::ios ios(0); in test1() local 57 ios.precision(0); in test1() 59 nouppercase(ios); in test1() 61 noshowpos(ios); in test1() 63 noshowpoint(ios); in test1() 65 ios.imbue(lc); in test1() 67 ios.width(0); in test1() 69 iter = f.put(output_iterator<char*>(str), ios, '*', v); in test1() 72 assert(ios.width() == 0); in test1() 74 ios.width(25); in test1() [all …]
|
D | put_long.pass.cpp | 47 std::ios ios(0); in main() local 50 std::ios_base::iostate err = ios.goodbit; in main() 51 output_iterator<char*> iter = f.put(output_iterator<char*>(str), ios, '*', v); in main() 56 std::ios ios(0); in main() local 59 std::ios_base::iostate err = ios.goodbit; in main() 60 output_iterator<char*> iter = f.put(output_iterator<char*>(str), ios, '*', v); in main() 65 std::ios ios(0); in main() local 68 std::ios_base::iostate err = ios.goodbit; in main() 69 output_iterator<char*> iter = f.put(output_iterator<char*>(str), ios, '*', v); in main() 74 std::ios ios(0); in main() local [all …]
|
D | put_unsigned_long.pass.cpp | 47 std::ios ios(0); in main() local 50 std::ios_base::iostate err = ios.goodbit; in main() 51 output_iterator<char*> iter = f.put(output_iterator<char*>(str), ios, '*', v); in main() 56 std::ios ios(0); in main() local 59 std::ios_base::iostate err = ios.goodbit; in main() 60 output_iterator<char*> iter = f.put(output_iterator<char*>(str), ios, '*', v); in main() 65 std::ios ios(0); in main() local 68 std::ios_base::iostate err = ios.goodbit; in main() 69 output_iterator<char*> iter = f.put(output_iterator<char*>(str), ios, '*', v); in main() 74 std::ios ios(0); in main() local [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_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 …]
|
/ndk/sources/cxx-stl/llvm-libc++/test/input.output/iostreams.base/ios/iostate.flags/ |
D | setstate.pass.cpp | 25 std::ios ios(0); in main() local 26 ios.setstate(std::ios::goodbit); in main() 27 assert(ios.rdstate() == std::ios::badbit); in main() 30 ios.exceptions(std::ios::badbit); in main() 37 ios.setstate(std::ios::goodbit); in main() 40 catch (std::ios::failure&) in main() 42 assert(ios.rdstate() == std::ios::badbit); in main() 46 ios.setstate(std::ios::eofbit); in main() 49 catch (std::ios::failure&) in main() 51 assert(ios.rdstate() == (std::ios::eofbit | std::ios::badbit)); in main() [all …]
|
D | clear.pass.cpp | 25 std::ios ios(0); in main() local 26 ios.clear(); in main() 27 assert(ios.rdstate() == std::ios::badbit); in main() 30 ios.exceptions(std::ios::badbit); in main() 37 ios.clear(); in main() 40 catch (std::ios::failure&) in main() 42 assert(ios.rdstate() == std::ios::badbit); in main() 46 ios.clear(std::ios::eofbit); in main() 49 catch (std::ios::failure&) in main() 51 assert(ios.rdstate() == (std::ios::eofbit | std::ios::badbit)); in main() [all …]
|
D | exceptions_iostate.pass.cpp | 25 std::ios ios(0); in main() local 26 assert(ios.exceptions() == std::ios::goodbit); in main() 27 ios.exceptions(std::ios::eofbit); in main() 28 assert(ios.exceptions() == std::ios::eofbit); in main() 31 ios.exceptions(std::ios::badbit); in main() 34 catch (std::ios::failure&) in main() 37 assert(ios.exceptions() == std::ios::badbit); in main() 41 std::ios ios(&sb); in main() local 42 assert(ios.exceptions() == std::ios::goodbit); in main() 43 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 …]
|
D | eof.pass.cpp | 25 std::ios ios(0); in main() local 26 assert(!ios.eof()); in main() 27 ios.setstate(std::ios::eofbit); in main() 28 assert(ios.eof()); in main() 32 std::ios ios(&sb); in main() local 33 assert(!ios.eof()); in main() 34 ios.setstate(std::ios::eofbit); in main() 35 assert(ios.eof()); in main()
|
D | rdstate.pass.cpp | 21 std::ios ios(0); in main() local 22 assert(ios.rdstate() == std::ios::badbit); in main() 23 ios.setstate(std::ios::failbit); in main() 24 assert(ios.rdstate() == (std::ios::failbit | std::ios::badbit)); in main()
|
/ndk/sources/cxx-stl/llvm-libc++/test/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 …]
|
/ndk/sources/cxx-stl/llvm-libc++/test/localization/locale.categories/category.monetary/locale.money.put/locale.money.put.members/ |
D | put_long_double_en_US.pass.cpp | 47 std::ios ios(0); in main() local 49 ios.imbue(std::locale(ios.getloc(), in main() 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() 64 false, ios, '*', v); in main() 72 false, ios, '*', v); in main() 80 false, ios, '*', v); in main() 88 false, ios, '*', v); in main() 94 showbase(ios); in main() [all …]
|
D | put_long_double_zh_CN.pass.cpp | 47 std::ios ios(0); in main() local 49 ios.imbue(std::locale(ios.getloc(), in main() 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() 64 false, ios, '*', v); in main() 72 false, ios, '*', v); in main() 80 false, ios, '*', v); in main() 88 false, ios, '*', v); in main() 94 showbase(ios); in main() [all …]
|
D | put_long_double_ru_RU.pass.cpp | 47 std::ios ios(0); in main() local 49 ios.imbue(std::locale(ios.getloc(), in main() 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() 64 false, ios, '*', v); in main() 72 false, ios, '*', v); in main() 80 false, ios, '*', v); in main() 88 false, ios, '*', v); in main() 94 showbase(ios); in main() [all …]
|
D | put_long_double_fr_FR.pass.cpp | 47 std::ios ios(0); in main() local 49 ios.imbue(std::locale(ios.getloc(), in main() 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() 64 false, ios, '*', v); in main() 72 false, ios, '*', v); in main() 80 false, ios, '*', v); in main() 88 false, ios, '*', v); in main() 94 showbase(ios); in main() [all …]
|
D | put_string_en_US.pass.cpp | 47 std::ios ios(0); in main() local 49 ios.imbue(std::locale(ios.getloc(), in main() 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() 64 false, ios, '*', v); in main() 72 false, ios, '*', v); in main() 80 false, ios, '*', v); in main() 88 false, ios, '*', v); in main() 94 showbase(ios); in main() [all …]
|
/ndk/sources/cxx-stl/llvm-libc++/test/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 | 50 std::ios ios(0); in main() local 54 assert((ios.flags() & ios.basefield) == ios.dec); in main() 55 assert(ios.getloc().name() == "C"); 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() 71 ios, err, v); in main() 73 assert(err == ios.goodbit); in main() 78 std::ios_base::iostate err = ios.goodbit; in main() [all …]
|
D | get_long_double.pass.cpp | 38 std::ios ios(0); in main() local 42 assert((ios.flags() & ios.basefield) == ios.dec); in main() 43 assert(ios.getloc().name() == "C"); in main() 44 std::ios_base::iostate err = ios.goodbit; in main() 48 ios, err, v); in main() 50 assert(err == ios.goodbit); in main() 55 std::ios_base::iostate err = ios.goodbit; in main() 59 ios, err, v); in main() 61 assert(err == ios.goodbit); in main() 66 std::ios_base::iostate err = ios.goodbit; in main() [all …]
|
D | get_float.pass.cpp | 38 std::ios ios(0); in main() local 42 assert((ios.flags() & ios.basefield) == ios.dec); in main() 43 assert(ios.getloc().name() == "C"); in main() 44 std::ios_base::iostate err = ios.goodbit; in main() 48 ios, err, v); in main() 50 assert(err == ios.goodbit); in main() 55 std::ios_base::iostate err = ios.goodbit; in main() 59 ios, err, v); in main() 61 assert(err == ios.goodbit); in main() 66 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 …]
|
/ndk/sources/cxx-stl/llvm-libc++/test/input.output/iostreams.base/ios/basic.ios.members/ |
D | set_rdbuf.pass.cpp | 26 : public std::ios 28 testios(std::streambuf* p) : std::ios(p) {} in testios() 29 void set_rdbuf(std::streambuf* x) {std::ios::set_rdbuf(x);} in set_rdbuf() 36 testios ios(&sb1); in main() local 39 ios.setstate(std::ios::badbit); in main() 40 ios.exceptions(std::ios::badbit); in main() 45 ios.set_rdbuf(&sb2); in main() 46 assert(ios.rdbuf() == &sb2); in main() 49 ios.setstate(std::ios::badbit); in main() 50 ios.exceptions(std::ios::badbit); in main() [all …]
|