Home
last modified time | relevance | path

Searched refs:setstate (Results 1 – 25 of 121) sorted by relevance

12345

/external/libcxx/test/std/input.output/iostreams.base/ios/iostate.flags/
Dsetstate.pass.cpp28 ios.setstate(std::ios::goodbit); in main()
41 ios.setstate(std::ios::goodbit); in main()
50 ios.setstate(std::ios::eofbit); in main()
62 ios.setstate(std::ios::goodbit); in main()
64 ios.setstate(std::ios::eofbit); in main()
66 ios.setstate(std::ios::failbit); in main()
Dfail.pass.cpp27 ios.setstate(std::ios::eofbit); in main()
34 ios.setstate(std::ios::eofbit); in main()
36 ios.setstate(std::ios::badbit); in main()
38 ios.setstate(std::ios::failbit); in main()
Dbad.pass.cpp27 ios.setstate(std::ios::eofbit); in main()
34 ios.setstate(std::ios::eofbit); in main()
36 ios.setstate(std::ios::failbit); in main()
38 ios.setstate(std::ios::badbit); in main()
Deof.pass.cpp27 ios.setstate(std::ios::eofbit); in main()
34 ios.setstate(std::ios::eofbit); in main()
/external/llvm-project/libcxx/test/std/input.output/iostreams.base/ios/iostate.flags/
Dsetstate.pass.cpp27 ios.setstate(std::ios::goodbit); in main()
40 ios.setstate(std::ios::goodbit); in main()
49 ios.setstate(std::ios::eofbit); in main()
61 ios.setstate(std::ios::goodbit); in main()
63 ios.setstate(std::ios::eofbit); in main()
65 ios.setstate(std::ios::failbit); in main()
Dfail.pass.cpp28 ios.setstate(std::ios::eofbit); in main()
35 ios.setstate(std::ios::eofbit); in main()
37 ios.setstate(std::ios::badbit); in main()
39 ios.setstate(std::ios::failbit); in main()
Dbad.pass.cpp28 ios.setstate(std::ios::eofbit); in main()
35 ios.setstate(std::ios::eofbit); in main()
37 ios.setstate(std::ios::failbit); in main()
39 ios.setstate(std::ios::badbit); in main()
Deof.pass.cpp28 ios.setstate(std::ios::eofbit); in main()
35 ios.setstate(std::ios::eofbit); in main()
/external/python/cpython3/Lib/test/
Dtest_multibytecodec.py126 encoder.setstate(initial_state)
132 encoder.setstate(partial_state)
146 encoder.setstate(jp_state)
149 encoder.setstate(en_state)
191 self.assertRaises(UnicodeError, encoder.setstate, pending_size_nine)
200 self.assertRaises(UnicodeDecodeError, encoder.setstate, invalid_utf8)
269 decoder.setstate((pending2, flags2))
275 decoder.setstate((b'abc', 123456789))
280 self.assertRaises(TypeError, decoder.setstate, 123)
281 self.assertRaises(TypeError, decoder.setstate, ("invalid", 0))
[all …]
/external/libcxx/include/
Dostream282 __os_.setstate(ios_base::badbit);
345 this->setstate(ios_base::failbit);
355 this->setstate(ios_base::badbit);
381 this->setstate(ios_base::badbit | ios_base::failbit);
411 this->setstate(ios_base::badbit | ios_base::failbit);
437 this->setstate(ios_base::badbit | ios_base::failbit);
467 this->setstate(ios_base::badbit | ios_base::failbit);
493 this->setstate(ios_base::badbit | ios_base::failbit);
519 this->setstate(ios_base::badbit | ios_base::failbit);
545 this->setstate(ios_base::badbit | ios_base::failbit);
[all …]
Distream329 __is.setstate(ios_base::failbit | ios_base::eofbit);
334 __is.setstate(ios_base::failbit);
377 __is.setstate(__err);
494 __is.setstate(__err);
553 __is.setstate(__err);
638 __is.setstate(ios_base::eofbit | ios_base::failbit);
704 this->setstate(__err);
715 this->setstate(ios_base::failbit);
742 this->setstate(ios_base::failbit | ios_base::eofbit);
788 this->setstate(__err);
[all …]
Dfstream1212 this->setstate(ios_base::failbit);
1222 this->setstate(ios_base::failbit);
1232 this->setstate(ios_base::failbit);
1300 this->setstate(ios_base::failbit);
1311 this->setstate(ios_base::failbit);
1322 this->setstate(ios_base::failbit);
1331 this->setstate(ios_base::failbit);
1341 this->setstate(ios_base::failbit);
1425 this->setstate(ios_base::failbit);
1435 this->setstate(ios_base::failbit);
[all …]
/external/rust/crates/libz-sys/src/zlib/contrib/iostream3/
Dzfstream.cc402 this->setstate(std::ios_base::failbit); in open()
413 this->setstate(std::ios_base::failbit); in attach()
423 this->setstate(std::ios_base::failbit); in close()
457 this->setstate(std::ios_base::failbit); in open()
468 this->setstate(std::ios_base::failbit); in attach()
478 this->setstate(std::ios_base::failbit); in close()
/external/llvm-project/libcxx/include/
Dostream285 __os_.setstate(ios_base::badbit);
348 this->setstate(ios_base::failbit);
358 this->setstate(ios_base::badbit);
384 this->setstate(ios_base::badbit | ios_base::failbit);
414 this->setstate(ios_base::badbit | ios_base::failbit);
440 this->setstate(ios_base::badbit | ios_base::failbit);
470 this->setstate(ios_base::badbit | ios_base::failbit);
496 this->setstate(ios_base::badbit | ios_base::failbit);
522 this->setstate(ios_base::badbit | ios_base::failbit);
548 this->setstate(ios_base::badbit | ios_base::failbit);
[all …]
Distream328 __is.setstate(ios_base::failbit | ios_base::eofbit);
333 __is.setstate(ios_base::failbit);
388 __is.setstate(__state);
512 __is.setstate(__state);
576 __is.setstate(__state);
670 __is.setstate(__state);
743 this->setstate(__state);
778 this->setstate(__state);
837 this->setstate(__state);
884 this->setstate(__state);
[all …]
Dfstream1212 this->setstate(ios_base::failbit);
1222 this->setstate(ios_base::failbit);
1232 this->setstate(ios_base::failbit);
1300 this->setstate(ios_base::failbit);
1311 this->setstate(ios_base::failbit);
1322 this->setstate(ios_base::failbit);
1331 this->setstate(ios_base::failbit);
1341 this->setstate(ios_base::failbit);
1425 this->setstate(ios_base::failbit);
1435 this->setstate(ios_base::failbit);
[all …]
/external/python/cpython2/Lib/test/
Dtest_random.py32 self.gen.setstate(state) # should regenerate the same sequence
167 self.assertRaises(ValueError, self.gen.setstate, (2, None, None))
176 self.gen.setstate(s)
214 self.assertRaises(NotImplementedError, self.gen.setstate, None)
327 self.assertRaises(ValueError, self.gen.setstate, (1, None, None))
332 self.assertRaises(TypeError, self.gen.setstate, (2, None, None))
334 self.assertRaises(ValueError, self.gen.setstate, (2, (1,2,3), None))
336 self.assertRaises(TypeError, self.gen.setstate, (2, ('a',)*625, None))
338 self.assertRaises(TypeError, self.gen.setstate, (2, (0,)*624+('a',), None))
341 self.gen.setstate((2, (1,)*624+(625,), None))
[all …]
/external/libcxx/test/std/input.output/iostreams.base/ios/basic.ios.members/
Dset_rdbuf.pass.cpp42 ios.setstate(std::ios::badbit); in main()
55 ios.setstate(std::ios::badbit); in main()
/external/llvm-project/libcxx/test/std/input.output/iostreams.base/ios/basic.ios.members/
Dset_rdbuf.pass.cpp41 ios.setstate(std::ios::badbit); in main()
54 ios.setstate(std::ios::badbit); in main()
/external/python/cpython3/Lib/encodings/
Dutf_8_sig.py46 def setstate(self, state): member in IncrementalEncoder
80 def setstate(self, state): member in IncrementalDecoder
82 codecs.BufferedIncrementalDecoder.setstate(self, state)
Dutf_16.py44 def setstate(self, state): member in IncrementalEncoder
89 def setstate(self, state): member in IncrementalDecoder
91 codecs.BufferedIncrementalDecoder.setstate(self, state)
Dutf_32.py39 def setstate(self, state): member in IncrementalEncoder
84 def setstate(self, state): member in IncrementalDecoder
86 codecs.BufferedIncrementalDecoder.setstate(self, state)
/external/python/cpython2/Lib/
Drandom.py127 def setstate(self, state): member in Random
132 super(Random, self).setstate(internalstate)
143 super(Random, self).setstate(internalstate)
170 self.setstate(state)
727 def setstate(self, state): member in WichmannHill
837 getstate = setstate = _notimplemented
907 setstate = _inst.setstate variable
/external/python/cpython2/Lib/encodings/
Dutf_32.py39 def setstate(self, state): member in IncrementalEncoder
84 def setstate(self, state): member in IncrementalDecoder
86 codecs.BufferedIncrementalDecoder.setstate(self, state)
/external/python/cpython3/Lib/
Drandom.py172 def setstate(self, state): member in Random
177 super().setstate(internalstate)
188 super().setstate(internalstate)
209 self.setstate(state)
804 getstate = setstate = _notimplemented
835 setstate = _inst.setstate variable

12345