Lines Matching defs:f
27 std::filebuf f;
28 assert(f.open(temp.c_str(), std::ios_base::out) != 0);
29 assert(f.is_open());
30 assert(f.sputn("123", 3) == 3);
33 std::filebuf f;
34 assert(f.open(temp.c_str(), std::ios_base::in) != 0);
35 assert(f.is_open());
36 assert(f.sbumpc() == '1');
37 assert(f.sbumpc() == '2');
38 assert(f.sbumpc() == '3');
44 std::wfilebuf f;
45 assert(f.open(temp.c_str(), std::ios_base::out) != 0);
46 assert(f.is_open());
47 assert(f.sputn(L"123", 3) == 3);
50 std::wfilebuf f;
51 assert(f.open(temp.c_str(), std::ios_base::in) != 0);
52 assert(f.is_open());
53 assert(f.sbumpc() == L'1');
54 assert(f.sbumpc() == L'2');
55 assert(f.sbumpc() == L'3');
76 std::filebuf f;
77 f.open(tmp.c_str(), mode);
78 assert(!f.is_open()); // since it already exists
84 std::filebuf f;
85 f.open(tmp.c_str(), mode);
86 assert(f.is_open()); // since it doesn't exist
95 std::wfilebuf f;
96 f.open(tmp.c_str(), mode);
97 assert(!f.is_open()); // since it already exists
103 std::wfilebuf f;
104 f.open(tmp.c_str(), mode);
105 assert(f.is_open()); // since it doesn't exist