Home
last modified time | relevance | path

Searched refs:getline (Results 1 – 25 of 363) sorted by relevance

12345678910>>...15

/external/one-true-awk/testdir/
DT.getline1 echo T.getline: test getline function
8 while (getline)
13 cmp -s foo1 foo || echo 'BAD: T.getline (bare getline)'
18 while (getline xxx)
23 cmp -s foo1 foo || echo 'BAD: T.getline (getline xxx)'
27 while (getline <"/etc/passwd")
32 cmp -s /etc/passwd foo || echo 'BAD: T.getline (getline <file)'
36 while (getline <"-") # stdin
41 cmp -s /etc/passwd foo || echo 'BAD: T.getline (getline <"-")'
45 while (getline <ARGV[1])
[all …]
DT.errmsg9 while (getline x > 0 && x != "")
178 null file name in print or getline
202 $awk -safe 'BEGIN{"date" | getline}' >foo 2>foo2
203 grep 'cmd | getline is unsafe' foo2 >/dev/null || echo 'BAD: T.errmsg cmd|getline unsafe'
/external/libcxx/test/std/strings/basic.string/string.nonmembers/string.io/
Dget_line_delim.pass.cpp28 getline(in, s, '*'); in main()
31 getline(in, s, '*'); in main()
34 getline(in, s, '*'); in main()
37 getline(in, s, '*'); in main()
44 getline(in, s, L'*'); in main()
47 getline(in, s, L'*'); in main()
50 getline(in, s, L'*'); in main()
53 getline(in, s, L'*'); in main()
62 getline(in, s, '*'); in main()
65 getline(in, s, '*'); in main()
[all …]
Dget_line.pass.cpp28 getline(in, s); in main()
31 getline(in, s); in main()
34 getline(in, s); in main()
41 getline(in, s); in main()
44 getline(in, s); in main()
47 getline(in, s); in main()
56 getline(in, s); in main()
59 getline(in, s); in main()
62 getline(in, s); in main()
70 getline(in, s); in main()
[all …]
Dget_line_rv.pass.cpp29 getline(std::istringstream(" abc\n def\n ghij"), s); in main()
34 getline(std::wistringstream(L" abc\n def\n ghij"), s); in main()
40 getline(std::istringstream(" abc\n def\n ghij"), s); in main()
46 getline(std::wistringstream(L" abc\n def\n ghij"), s); in main()
Dget_line_delim_rv.pass.cpp29 getline(std::istringstream(" abc* def* ghij"), s, '*'); in main()
34 getline(std::wistringstream(L" abc* def* ghij"), s, L'*'); in main()
40 getline(std::istringstream(" abc* def* ghij"), s, '*'); in main()
46 getline(std::wistringstream(L" abc* def* ghij"), s, L'*'); in main()
/external/python/cpython2/Lib/test/
Dtest_linecache.py42 getline = linecache.getline
45 self.assertEqual(getline(FILENAME, 2**15), EMPTY)
46 self.assertEqual(getline(FILENAME, -1), EMPTY)
49 self.assertRaises(TypeError, getline, FILENAME, 1.1)
52 self.assertEqual(getline(EMPTY, 1), EMPTY)
53 self.assertEqual(getline(INVALID_NAME, 1), EMPTY)
59 self.assertEqual(line, getline(filename, index + 1))
65 self.assertEqual(line, getline(filename, index + 1))
83 linecache.getline(filename, 1)
95 getline = linecache.getline
[all …]
/external/python/cpython3/Lib/test/
Dtest_linecache.py63 cached_line = linecache.getline(self.file_name, index + 1)
76 linecache.getline, self.file_name, 1)
102 getline = linecache.getline
105 self.assertEqual(getline(FILENAME, 2**15), EMPTY)
106 self.assertEqual(getline(FILENAME, -1), EMPTY)
109 self.assertRaises(TypeError, getline, FILENAME, 1.1)
112 self.assertEqual(getline(EMPTY, 1), EMPTY)
113 self.assertEqual(getline(INVALID_NAME, 1), EMPTY)
120 self.assertEqual(line, getline(filename, index + 1))
138 linecache.getline(filename, 1)
[all …]
/external/libcxx/test/std/input.output/iostream.format/input.streams/istream.unformatted/
Dgetline_pointer_size_chart.pass.cpp58 is.getline(s, 5, '*'); in main()
63 is.getline(s, 5, '*'); in main()
68 is.getline(s, 5, '*'); in main()
74 is.getline(s, 5, '*'); in main()
88 is.getline(s, 5, '*'); in main()
104 is.getline(s, 5, L'*'); in main()
109 is.getline(s, 5, L'*'); in main()
114 is.getline(s, 5, L'*'); in main()
120 is.getline(s, 5, L'*'); in main()
134 is.getline(s, 5, L'*'); in main()
Dgetline_pointer_size.pass.cpp58 is.getline(s, 5); in main()
63 is.getline(s, 5); in main()
68 is.getline(s, 5); in main()
74 is.getline(s, 5); in main()
88 is.getline(s, 5); in main()
104 is.getline(s, 5); in main()
109 is.getline(s, 5); in main()
114 is.getline(s, 5); in main()
120 is.getline(s, 5); in main()
134 is.getline(s, 5); in main()
/external/angle/src/tests/perf_tests/
Dglmark2Benchmark.cpp197 std::getline(glmark2Output, line); in parseOutput()
201 std::getline(glmark2Output, line); in parseOutput()
204 std::getline(glmark2Output, line); in parseOutput()
208 std::getline(glmark2Output, line); in parseOutput()
209 std::getline(glmark2Output, line); in parseOutput()
210 std::getline(glmark2Output, line); in parseOutput()
211 std::getline(glmark2Output, line); in parseOutput()
218 std::getline(glmark2Output, line); in parseOutput()
222 while (std::getline(glmark2Output, line) && line[0] != '=') in parseOutput()
/external/v8/src/builtins/
Dprofile-data-reader.cc54 for (std::string line; std::getline(file, line);) { in EnsureInitProfileData()
57 if (!std::getline(line_stream, token, ',')) continue; in EnsureInitProfileData()
63 CHECK(std::getline(line_stream, builtin_name, ',')); in EnsureInitProfileData()
64 CHECK(std::getline(line_stream, token, ',')); in EnsureInitProfileData()
68 std::getline(line_stream, token, ','); in EnsureInitProfileData()
82 CHECK(std::getline(line_stream, builtin_name, ',')); in EnsureInitProfileData()
83 std::getline(line_stream, token, ','); in EnsureInitProfileData()
/external/protobuf/examples/
Dadd_person.cc24 getline(cin, *person->mutable_name()); in PromptForAddress()
28 getline(cin, email); in PromptForAddress()
36 getline(cin, number); in PromptForAddress()
46 getline(cin, type); in PromptForAddress()
/external/clang/test/Analysis/
Dtaint-tester.cpp8 ssize_t getline(char ** __restrict, size_t * __restrict, FILE * __restrict);
14 ssize_t getline(char ** __restrict, size_t * __restrict, FILE * __restrict);
24 while ((read = T.getline(&line, &len, stdin)) != -1) { in getlineTest()
/external/selinux/libselinux/src/
Dinit.c69 num = getline(&buf, &len, fp); in selinuxfs_exists()
75 num = getline(&buf, &len, fp); in selinuxfs_exists()
109 while ((num = getline(&buf, &len, fp)) != -1) { in hidden_def()
/external/u-boot/examples/standalone/
Datmel_df_pow2.c76 static char *getline(void) in getline() function
135 line = getline(); in atmel_df_pow2()
190 line = getline(); in atmel_df_pow2()
/external/compiler-rt/test/msan/
Dgetline.cc28 int n = getline(&line, &len, fp); in main()
32 n = getline(&line, &len, fp); in main()
/external/tensorflow/tensorflow/lite/testing/kernel_test/
Ddiff_analyzer_test.cc39 std::getline(file, content); in TEST()
40 std::getline(file, content); in TEST()
/external/python/cpython3/Doc/library/
Dlinecache.rst25 .. function:: getline(filename, lineno, module_globals=None)
45 previously read using :func:`getline`.
57 lines later via :func:`getline` even if *module_globals* is ``None`` in the later
66 >>> linecache.getline(linecache.__file__, 8)
/external/libpng/scripts/
Ddfn.awk127 if (getline nextline) {
153 if (getline nextline) {
/external/python/cpython2/Doc/library/
Dlinecache.rst21 .. function:: getline(filename, lineno[, module_globals])
41 previously read using :func:`getline`.
53 >>> linecache.getline('/etc/passwd', 4)
/external/python/cpython2/Demo/threads/
Dsquasher.py45 def getline(text): function
96 cogetline = co.create(getline, test)
/external/igt-gpu-tools/tests/i915/
Di915_hangman.c147 igt_assert(getline(&line, &line_size, file) != -1); in check_error_state()
150 while (getline(&line, &line_size, file) > 0) { in check_error_state()
179 igt_assert(getline(&line, &line_size, file) > 0); in check_error_state()
/external/grpc-grpc/test/cpp/qps/
Dusage_timer.cc62 std::getline(proc_stat, first_line); in get_cpu_usage()
65 std::getline(first_line_s, cpu_time_str, ' '); in get_cpu_usage()
/external/toybox/toys/posix/
Duudecode.c38 if ((n = getline(&line, &allocated_length, ifp)) == -1)
56 if (m == 2 || (n = getline(&line, &allocated_length, ifp)) == -1) break;

12345678910>>...15