Home
last modified time | relevance | path

Searched refs:out (Results 1 – 25 of 244) 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.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()
/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/libcxx/
Dcompiler.py41 def _basicCmd(self, source_files, out, is_link=False, input_is_cxx=False): argument
46 if out is not None:
47 cmd += ['-o', out]
58 def preprocessCmd(self, source_files, out=None, flags=[]): argument
59 cmd = self._basicCmd(source_files, out, input_is_cxx=True) + ['-E']
63 def compileCmd(self, source_files, out=None, flags=[]): argument
64 cmd = self._basicCmd(source_files, out, input_is_cxx=True) + ['-c']
68 def linkCmd(self, source_files, out=None, flags=[]): argument
69 cmd = self._basicCmd(source_files, out, is_link=True)
73 def compileLinkCmd(self, source_files, out=None, flags=[]): argument
[all …]
/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/tests/
Dadb.py35 out, _ = p.communicate()
39 out, _, encoded_result = out.rpartition('x')
41 out = out.rstrip()
42 out = re.split(r'[\r\n]+', out)
43 return result, out
/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/cxx-stl/llvm-libc++/libcxx/test/libcxx/android/
Dadb.py5 def __init__(self, cmd, out, err, exit_code): argument
8 self.out = out
15 out, err, exit_code = lit.util.executeCommand(cmd)
17 raise AdbError(cmd, out, err, exit_code)
22 out, err, exit_code = lit.util.executeCommand(cmd)
24 raise AdbError(cmd, out, err, exit_code)
Dcompiler.py41 def compile(self, source_files, out=None, flags=None, env=None, cwd=None): argument
43 return super(AndroidCXXCompiler, self).compile(source_files, out, flags,
46 def link(self, source_files, out=None, flags=None, env=None, cwd=None): argument
48 return super(AndroidCXXCompiler, self).link(source_files, out, flags,
51 def compileCmd(self, source_files, out=None, flags=None): argument
52 if out is None:
57 cxx_args = self.cxx_template.replace('%OUT%', out)
61 def linkCmd(self, source_files, out=None, flags=None): argument
62 if out is None:
67 link_args = self.link_template.replace('%OUT%', out)
[all …]
Dexecutors.py51 out, err, exit_code = self.local_run(adb_cmd)
52 if 'Text file busy' in out:
55 out, delim, rc_str = out.rpartition(delimiter)
59 out = out.strip()
65 return adb_cmd, out, err, exit_code
/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 …]
/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 …]

12345678910