Home
last modified time | relevance | path

Searched refs:out (Results 1 – 25 of 240) sorted by relevance

12345678910

/ndk/sources/cxx-stl/llvm-libc++/libcxx/test/strings/basic.string/string.nonmembers/string.io/
Dstream_insert.pass.cpp26 std::ostringstream out; in main() local
28 out << s; in main()
29 assert(out.good()); in main()
30 assert(s == out.str()); in main()
33 std::ostringstream out; in main() local
35 out.width(12); in main()
36 out << s; in main()
37 assert(out.good()); in main()
38 assert(" " + s == out.str()); in main()
41 std::wostringstream out; in main() local
[all …]
/ndk/sources/cxx-stl/llvm-libc++/libcxx/test/re/re.results/re.results.form/
Dform2.pass.cpp36 char out[100] = {0}; in main() local
38 char* r = m.format(output_iterator<char*>(out), fmt).base(); in main()
39 assert(r == out + 58); in main()
40 assert(std::string(out) == "prefix: ab, match: cdefghi, suffix: jk, m[1]: efg, m[2]: e"); in main()
47 char out[100] = {0}; in main() local
49 char* r = m.format(output_iterator<char*>(out), in main()
51 assert(r == out + 59); in main()
52 assert(std::string(out) == "prefix: $`, match: $cdefghi, suffix: $', m[1]: $1, m[2]: $2"); in main()
59 char out[100] = {0}; in main() local
61 char* r = m.format(output_iterator<char*>(out), in main()
[all …]
Dform1.pass.cpp31 char out[100] = {0}; in main() local
33 char* r = m.format(output_iterator<char*>(out), in main()
35 assert(r == out + 58); in main()
36 assert(std::string(out) == "prefix: ab, match: cdefghi, suffix: jk, m[1]: efg, m[2]: e"); in main()
43 char out[100] = {0}; in main() local
45 char* r = m.format(output_iterator<char*>(out), in main()
48 assert(r == out + 59); in main()
49 assert(std::string(out) == "prefix: $`, match: $cdefghi, suffix: $', m[1]: $1, m[2]: $2"); in main()
56 char out[100] = {0}; in main() local
58 char* r = m.format(output_iterator<char*>(out), in main()
[all …]
Dform4.pass.cpp31 std::string out = m.format(fmt); in main() local
32 assert(out == "prefix: ab, match: cdefghi, suffix: jk, m[1]: efg, m[2]: e"); in main()
40 std::string out = m.format(fmt, std::regex_constants::format_sed); in main() local
41 assert(out == "prefix: $`, match: $cdefghi, suffix: $', m[1]: $1, m[2]: $2"); in main()
49 std::string out = m.format(fmt, std::regex_constants::format_sed); in main() local
50 assert(out == "match: cdefghi, m[1]: efg, m[2]: e"); in main()
59 std::wstring out = m.format(fmt); in main() local
60 assert(out == L"prefix: ab, match: cdefghi, suffix: jk, m[1]: efg, m[2]: e"); in main()
68 std::wstring out = m.format(fmt, std::regex_constants::format_sed); in main() local
69 assert(out == L"prefix: $`, match: $cdefghi, suffix: $', m[1]: $1, m[2]: $2"); in main()
[all …]
Dform3.pass.cpp36 nstr out = m.format(fmt); in main() local
37 assert(out == "prefix: ab, match: cdefghi, suffix: jk, m[1]: efg, m[2]: e"); in main()
45 nstr out = m.format(fmt, std::regex_constants::format_sed); in main() local
46 assert(out == "prefix: $`, match: $cdefghi, suffix: $', m[1]: $1, m[2]: $2"); in main()
54 nstr out = m.format(fmt, std::regex_constants::format_sed); in main() local
55 assert(out == "match: cdefghi, m[1]: efg, m[2]: e"); in main()
64 wstr out = m.format(fmt); in main() local
65 assert(out == L"prefix: ab, match: cdefghi, suffix: jk, m[1]: efg, m[2]: e"); in main()
73 wstr out = m.format(fmt, std::regex_constants::format_sed); in main() local
74 assert(out == L"prefix: $`, match: $cdefghi, suffix: $', m[1]: $1, m[2]: $2"); in main()
[all …]
/ndk/sources/cxx-stl/llvm-libc++/libcxx/test/depr/depr.str.strstreams/depr.strstream/depr.strstream.oper/
Dfreeze.pass.cpp22 std::strstream out; in main() local
23 out.freeze(); in main()
24 assert(!out.fail()); in main()
25 out << 'a'; in main()
26 assert(out.fail()); in main()
27 out.clear(); in main()
28 out.freeze(false); in main()
29 out << 'a'; in main()
30 out << char(0); in main()
31 assert(out.str() == std::string("a")); in main()
Dpcount.pass.cpp22 std::strstream out; in main() local
23 assert(out.pcount() == 0); in main()
24 out << 123 << ' ' << 4.5 << ' ' << "dog"; in main()
25 assert(out.pcount() == 11); in main()
Dstr.pass.cpp22 std::strstream out; in main() local
23 out << 123 << ' ' << 4.5 << ' ' << "dog" << std::ends; in main()
24 assert(out.str() == std::string("123 4.5 dog")); in main()
/ndk/sources/cxx-stl/llvm-libc++/libcxx/test/depr/depr.str.strstreams/depr.ostrstream/depr.ostrstream.members/
Dfreeze.pass.cpp22 std::ostrstream out; in main() local
23 out.freeze(); in main()
24 assert(!out.fail()); in main()
25 out << 'a'; in main()
26 assert(out.fail()); in main()
27 out.clear(); in main()
28 out.freeze(false); in main()
29 out << 'a'; in main()
30 out << char(0); in main()
31 assert(out.str() == std::string("a")); in main()
Dpcount.pass.cpp22 std::ostrstream out; in main() local
23 assert(out.pcount() == 0); in main()
24 out << 123 << ' ' << 4.5 << ' ' << "dog"; in main()
25 assert(out.pcount() == 11); in main()
Dstr.pass.cpp22 std::ostrstream out; in main() local
23 out << 123 << ' ' << 4.5 << ' ' << "dog" << std::ends; in main()
24 assert(out.str() == std::string("123 4.5 dog")); in main()
/ndk/sources/cxx-stl/llvm-libc++/libcxx/test/depr/depr.str.strstreams/depr.ostrstream/depr.ostrstream.cons/
Dcp_size_mode.pass.cpp23 std::ostrstream out(buf, 0); in main() local
24 assert(out.str() == std::string("123 4.5 dog")); in main()
28 out << i << ' ' << d << ' ' << s << std::ends; in main()
29 assert(out.str() == std::string("321 5.5 cat")); in main()
33 std::ostrstream out(buf, 11, std::ios::app); in main() local
34 assert(out.str() == std::string("123 4.5 dog")); in main()
38 out << i << ' ' << d << ' ' << s << std::ends; in main()
39 assert(out.str() == std::string("123 4.5 dog321 5.5 cat")); in main()
/ndk/sources/cxx-stl/llvm-libc++/libcxx/test/input.output/string.streams/stringbuf/stringbuf.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()
39 std::stringbuf sb("0123456789", std::ios_base::out); in main()
43 assert(sb.pubseekoff(3, std::ios_base::beg, std::ios_base::out | std::ios_base::in) == -1); in main()
44 assert(sb.pubseekoff(3, std::ios_base::cur, std::ios_base::out | std::ios_base::in) == -1); in main()
45 assert(sb.pubseekoff(-3, std::ios_base::end, std::ios_base::out | std::ios_base::in) == -1); in main()
[all …]
Dseekpos.pass.cpp25 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()
31 std::stringbuf sb("0123456789", std::ios_base::out); 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()
42 assert(sb.pubseekpos(3, std::ios_base::out | std::ios_base::in) == 3); in main()
46 assert(sb.pubseekpos(3, std::ios_base::out) == 3); in main()
52 assert(sb.pubseekpos(3, std::ios_base::out) == -1); in main()
53 assert(sb.pubseekpos(3, std::ios_base::in | std::ios_base::out) == -1); in main()
58 std::wstringbuf sb(L"0123456789", std::ios_base::out); in main()
[all …]
/ndk/sources/cxx-stl/llvm-libc++/libcxx/test/input.output/stream.buffers/streambuf/streambuf.members/streambuf.pub.put/
Dsputc.pass.cpp53 char out[3] = {0}; in main() local
54 t.setp(out, out+sizeof(out)); in main()
57 assert(out[0] == 'A'); in main()
60 assert(out[0] == 'A'); in main()
61 assert(out[1] == 'B'); in main()
/ndk/sources/host-tools/make-3.81/
Dansi2knr.c234 FILE *out = stdout; local
280 out = fopen(output_name, "w");
281 if ( out == NULL ) {
301 fprintf(out, "#line 1 \"%s\"\n", filename);
315 convert1(buf, out, 1, convert_varargs);
328 convert1(buf, out, 0, convert_varargs);
329 fputs(more, out);
339 fputs(buf, out);
350 wl: fputs(buf, out);
356 fputs(buf, out);
[all …]
/ndk/sources/cxx-stl/llvm-libc++/libcxx/test/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()
44 assert(sb.pubseekoff(3, std::ios_base::beg, std::ios_base::out | std::ios_base::in) == 3); in main()
45 assert(sb.pubseekoff(3, std::ios_base::cur, std::ios_base::out | std::ios_base::in) == -1); in main()
46 assert(sb.pubseekoff(-3, std::ios_base::end, std::ios_base::out | std::ios_base::in) == 7); in main()
47 assert(sb.pubseekoff(3, std::ios_base::beg, std::ios_base::out) == 3); in main()
[all …]
/ndk/sources/cxx-stl/llvm-libc++/libcxx/test/input.output/stream.buffers/streambuf/streambuf.virtuals/streambuf.virt.put/
Dxsputn.pass.cpp39 char out[sizeof(in)] = {0}; in main() local
40 t.setp(out, out+sizeof(out)); in main()
42 assert(strcmp(in, out) == 0); in main()
/ndk/sources/cxx-stl/llvm-libc++/libcxx/test/localization/locale.stdcvt/
Dcodecvt_utf8_utf16_out.pass.cpp38 std::codecvt_base::result r = c.out(m, w, w+2, wp, n, n+4, np); in main()
48 r = c.out(m, w, w+1, wp, n, n+4, np); in main()
57 r = c.out(m, w, w+1, wp, n, n+4, np); in main()
65 r = c.out(m, w, w+1, wp, n, n+4, np); in main()
79 std::codecvt_base::result r = c.out(m, w, w+2, wp, n, n+4, np); in main()
85 r = c.out(m, w, w+1, wp, n, n+4, np); in main()
91 r = c.out(m, w, w+1, wp, n, n+4, np); in main()
99 r = c.out(m, w, w+1, wp, n, n+4, np); in main()
113 std::codecvt_base::result r = c.out(m, w, w+2, wp, n, n+7, np); in main()
126 r = c.out(m, w, w+1, wp, n, n+7, np); in main()
[all …]
Dcodecvt_utf8_out.pass.cpp38 std::codecvt_base::result r = c.out(m, &w, &w+1, wp, n, n+4, np); in main()
48 r = c.out(m, &w, &w+1, wp, n, n+4, np); in main()
58 r = c.out(m, &w, &w+1, wp, n, n+4, np); in main()
68 r = c.out(m, &w, &w+1, wp, n, n+4, np); in main()
85 std::codecvt_base::result r = c.out(m, &w, &w+1, wp, n, n+4, np); in main()
95 r = c.out(m, &w, &w+1, wp, n, n+4, np); in main()
105 r = c.out(m, &w, &w+1, wp, n, n+4, np); in main()
115 r = c.out(m, &w, &w+1, wp, n, n+4, np); in main()
132 std::codecvt_base::result r = c.out(m, &w, &w+1, wp, n, n+7, np); in main()
145 r = c.out(m, &w, &w+1, wp, n, n+7, np); in main()
[all …]
Dcodecvt_utf16_out.pass.cpp38 std::codecvt_base::result r = c.out(m, &w, &w+1, wp, n, n+4, np); in main()
48 r = c.out(m, &w, &w+1, wp, n, n+4, np); in main()
58 r = c.out(m, &w, &w+1, wp, n, n+4, np); in main()
68 r = c.out(m, &w, &w+1, wp, n, n+4, np); in main()
85 std::codecvt_base::result r = c.out(m, &w, &w+1, wp, n, n+4, np); in main()
95 r = c.out(m, &w, &w+1, wp, n, n+4, np); in main()
105 r = c.out(m, &w, &w+1, wp, n, n+4, np); in main()
115 r = c.out(m, &w, &w+1, wp, n, n+4, np); in main()
132 std::codecvt_base::result r = c.out(m, &w, &w+1, wp, n, n+6, np); in main()
144 r = c.out(m, &w, &w+1, wp, n, n+6, np); in main()
[all …]
/ndk/tests/device/test-gnustl-full/unit/
Dfstream_test.cpp175 …basic_fstream<char,char_traits<char> > f( "test_file.txt", ios_base::in | ios_base::out | ios_base… in io()
210 …basic_fstream<char,char_traits<char> > f( "test_file.txt", ios_base::in | ios_base::out | ios_base… in err()
232 ofstream of("test_file.txt", ios_base::out | ios_base::binary | ios_base::trunc); in tellg()
299 …CPPUNIT_CHECK( o.rdbuf()->pubseekoff( 0, ios_base::cur, ios_base::out ) == ofstream::pos_type(6) ); in tellp()
307 …CPPUNIT_CHECK( o.rdbuf()->pubseekoff( 0, ios_base::cur, ios_base::out ) == ofstream::pos_type(9) ); in tellp()
338 ofstream o( "test_file.txt", ios_base::app | ios_base::out ); in tellp()
339 …CPPUNIT_CHECK( o.rdbuf()->pubseekoff( 0, ios_base::cur, ios_base::out ) == ofstream::pos_type(expe… in tellp()
356 ofstream o( "test_file.txt", ios_base::app | ios_base::out ); in tellp()
358 …CPPUNIT_CHECK( o.rdbuf()->pubseekoff( 0, ios_base::cur, ios_base::out ) == ofstream::pos_type(10) … in tellp()
365 fstream ss( "test_file.txt", ios_base::in | ios_base::out | ios_base::binary | ios_base::trunc ); in buf()
[all …]
/ndk/tests/device/test-stlport/unit/
Dfstream_test.cpp175 …basic_fstream<char,char_traits<char> > f( "test_file.txt", ios_base::in | ios_base::out | ios_base… in io()
210 …basic_fstream<char,char_traits<char> > f( "test_file.txt", ios_base::in | ios_base::out | ios_base… in err()
232 ofstream of("test_file.txt", ios_base::out | ios_base::binary | ios_base::trunc); in tellg()
299 …CPPUNIT_CHECK( o.rdbuf()->pubseekoff( 0, ios_base::cur, ios_base::out ) == ofstream::pos_type(6) ); in tellp()
307 …CPPUNIT_CHECK( o.rdbuf()->pubseekoff( 0, ios_base::cur, ios_base::out ) == ofstream::pos_type(9) ); in tellp()
338 ofstream o( "test_file.txt", ios_base::app | ios_base::out ); in tellp()
339 …CPPUNIT_CHECK( o.rdbuf()->pubseekoff( 0, ios_base::cur, ios_base::out ) == ofstream::pos_type(expe… in tellp()
356 ofstream o( "test_file.txt", ios_base::app | ios_base::out ); in tellp()
358 …CPPUNIT_CHECK( o.rdbuf()->pubseekoff( 0, ios_base::cur, ios_base::out ) == ofstream::pos_type(10) … in tellp()
365 fstream ss( "test_file.txt", ios_base::in | ios_base::out | ios_base::binary | ios_base::trunc ); in buf()
[all …]
/ndk/sources/cxx-stl/llvm-libc++/libcxx/test/diagnostics/syserr/syserr.errcode/syserr.errcode.nonmembers/
Dstream_inserter.pass.cpp24 std::ostringstream out; in main() local
25 out << std::error_code(std::io_errc::stream); in main()
26 assert(out.str() == "iostream:1"); in main()
/ndk/sources/cxx-stl/stlport/src/details/
Dfstream_stdio.cpp184 case ios_base::out: in _M_open()
185 case ios_base::out | ios_base::trunc: in _M_open()
189 case ios_base::out | ios_base::binary: in _M_open()
190 case ios_base::out | ios_base::trunc | ios_base::binary: in _M_open()
194 case ios_base::out | ios_base::app: in _M_open()
198 case ios_base::out | ios_base::app | ios_base::binary: in _M_open()
210 case ios_base::in | ios_base::out: in _M_open()
214 case ios_base::in | ios_base::out | ios_base::binary: in _M_open()
218 case ios_base::in | ios_base::out | ios_base::trunc: in _M_open()
222 case ios_base::in | ios_base::out | ios_base::trunc | ios_base::binary: in _M_open()
[all …]

12345678910