/third_party/toybox/toys/posix/ |
H A D | sort.c | 1 /* sort.c - put input lines into order 18 Sort all lines of text from input files (or stdin) to stdout. 21 -u Unique lines only 31 -z Zero (null) terminated lines 65 char **lines, *name; 292 if (TT.lines && compare_keys((void *)&TT.lines, &line)>j) in sort_lines() 294 free(TT.lines); in sort_lines() 295 TT.lines = (void *)line; in sort_lines() 298 TT.lines in sort_lines() [all...] |
/third_party/node/deps/v8/tools/testrunner/outproc/ |
H A D | base.py | 161 lines = output.stdout.splitlines() 163 for _, line in enumerate(lines): 167 """Iterates over blocks of actual output lines.""" 168 lines = output.stdout.splitlines() 171 for index, line in enumerate(lines): 174 # Iterate over all lines before a separator except the first. 178 yield self._actual_iterator(lines[start_index:index]) 179 # The next block of output lines starts after the separator. 183 yield self._actual_iterator(lines) 185 def _actual_iterator(self, lines) [all...] |
/third_party/skia/third_party/externals/harfbuzz/util/ |
H A D | view-cairo.hh | 50 lines = g_array_new (false, false, sizeof (helper_cairo_line_t)); in init() 68 g_array_append_val (lines, l); in consume_glyphs() 74 for (unsigned int i = 0; i < lines->len; i++) { in finish() 75 helper_cairo_line_t &line = g_array_index (lines, helper_cairo_line_t, i); in finish() 79 g_array_unref (lines); in finish() 81 g_array_free (lines, TRUE); in finish() 90 GArray *lines = nullptr; member 123 (vertical ? w : h) = (int) lines->len * leading - (font_extents.line_gap + line_space); in render() 125 for (unsigned int i = 0; i < lines->len; i++) { in render() 126 helper_cairo_line_t &line = g_array_index (lines, helper_cairo_line_ in render() [all...] |
/third_party/node/test/parallel/ |
H A D | test-repl-context.js | 52 assert.strictEqual(server.lines.length, 0); 57 assert.strictEqual(server.lines.length, 1); 58 assert.strictEqual(server.lines[0], '_ = 500;'); 67 assert.strictEqual(server.lines.length, 1); 68 assert.strictEqual(server.lines[0], '_ = 500;'); 74 assert.strictEqual(server.lines.length, 0); 82 assert.strictEqual(server.lines.length, 0);
|
/third_party/libphonenumber/metadata/src/test/java/com/google/i18n/phonenumbers/metadata/regex/ |
H A D | RegexFormatterTest.java | 43 assertThat(RegexFormatter.format("ab(cd|ef)gh", PRESERVE_CAPTURING_GROUPS)).isEqualTo(lines( in testNested() 49 assertThat(RegexFormatter.format("ab(?:cd|ef)gh", PRESERVE_CAPTURING_GROUPS)).isEqualTo(lines( in testNested() 59 .isEqualTo(lines( in testDoubleNested() 69 .isEqualTo(lines( in testDoubleNested() 82 .isEqualTo(lines( in testForceNonCapturingGroups() 94 assertThat(RegexFormatter.format("ab(?:cd(ef|gh)|ij)", FORCE_CAPTURING_GROUPS)).isEqualTo(lines( in testForceCapturingGroups() 104 private static String lines(String... s) { in lines() method in RegexFormatterTest
|
/third_party/gn/misc/vim/ |
H A D | gn-format.py | 52 lines = stdout.split('\n') 55 if lines[-1] == '': 56 lines = lines[:-1] 57 sequence = difflib.SequenceMatcher(None, vim.current.buffer, lines) 60 vim.current.buffer[op[1]:op[2]] = lines[op[3]:op[4]]
|
/third_party/node/deps/undici/src/node_modules/@fastify/busboy/deps/dicer/lib/ |
H A D | HeaderParser.js | 69 const lines = this.buffer.split(RE_CRLF) 70 const len = lines.length 74 if (lines[i].length === 0) { continue } 75 if (lines[i][0] === '\t' || lines[i][0] === ' ') { 80 this.header[h][this.header[h].length - 1] += lines[i] 85 const posColon = lines[i].indexOf(':') 92 m = RE_HDR.exec(lines[i])
|
/third_party/skia/buildtools/checkdeps/ |
H A D | results.py | 78 lines = [] 79 lines.append('\nERROR in %s' % dependee_status.dependee_path) 81 lines.append(self.FormatViolation(violation, self.verbose)) 82 self.results.append('\n'.join(lines)) 86 lines = [] 88 lines.append(' For %s' % violation.rules) 89 lines.append( 92 return '\n'.join(lines)
|
/foundation/CastEngine/castengine_wifi_display/services/protocol/rtsp/src/ |
H A D | rtsp_common.cpp | 46 void RtspCommon::SplitParameter(std::list<std::string> &lines, std::list<std::pair<std::string, std::string>> ¶ms) in SplitParameter() argument 48 for (auto &line : lines) { in SplitParameter() 87 std::vector<std::string> lines = RtspCommon::Split(headers, RTSP_CRLF); in ParseMessage() local 88 if (lines.size() < 2) { // 2:fixed size in ParseMessage() 92 firstLine = RtspCommon::Split(lines[0], RTSP_SP); in ParseMessage() 95 for (int32_t i = 1; i < (int32_t)lines.size(); ++i) { in ParseMessage() 96 if (lines[i].size() > 3) { // 3:fixed size in ParseMessage() 97 auto index = lines[i].find_first_of(':'); in ParseMessage() 98 if (index != 0 && index != std::string::npos && index + 1 != lines[i].length()) { in ParseMessage() 99 auto token = RtspCommon::Trim(lines[ in ParseMessage() [all...] |
/third_party/icu/icu4c/source/test/cintltst/ |
H A D | sorttest.c | 112 printLines(const Line *lines) { in printLines() argument 113 (void)lines; // suppress compiler warnings about unused variable in printLines() 117 const Line *line=lines+i; in printLines() 139 Line *lines, *p; in StableSortTest() local 149 lines=p=(Line *)uprv_malloc(NUM_LINES*sizeof(Line)); in StableSortTest() 150 uprv_memset(lines, 0, NUM_LINES*sizeof(Line)); /* avoid uninitialized memory */ in StableSortTest() 165 puts("\n* lines before sorting"); in StableSortTest() 166 printLines(lines); in StableSortTest() 168 uprv_sortArray(lines, NUM_LINES, (int32_t)sizeof(Line), in StableSortTest() 174 puts("* lines afte in StableSortTest() [all...] |
/third_party/python/Lib/email/ |
H A D | contentmanager.py | 145 lines = string.encode(charset).splitlines() 147 def embedded_body(lines): return linesep.join(lines) + linesep 148 def normal_body(lines): return b'\n'.join(lines) + b'\n' 151 if max((len(x) for x in lines), default=0) <= policy.max_line_length: 153 return '7bit', normal_body(lines).decode('ascii') 157 return '8bit', normal_body(lines).decode('ascii', 'surrogateescape') 158 sniff = embedded_body(lines[:10]) 167 if len(lines) < [all...] |
/third_party/mesa3d/.gitlab-ci/tests/utils/ |
H A D | test_lava_log.py | 66 lines = [ 97 for line in lines: 112 lines = [ 125 lf.feed(lines) 128 lf.feed(lines) 260 lines = [ 269 lf.feed(lines) 273 lines = [create_lava_yaml_msg()] 275 lf.feed(lines)
|
/third_party/elfutils/libdw/ |
H A D | dwarf_decl_file.c | 60 if (cu->lines == NULL) in dwarf_decl_file() 62 Dwarf_Lines *lines; in dwarf_decl_file() local 67 (void) INTUSE(dwarf_getsrclines) (&CUDIE (cu), &lines, &nlines); in dwarf_decl_file() local 68 assert (cu->lines != NULL); in dwarf_decl_file() 71 if (cu->lines == (void *) -1l) in dwarf_decl_file()
|
H A D | dwarf_linecontext.c | 37 dwarf_linecontext (Dwarf_Lines* lines, Dwarf_Line *line) in dwarf_linecontext() argument 39 if (lines == NULL || line == NULL) in dwarf_linecontext() 41 if (line->context == 0 || line->context >= lines->nlines) in dwarf_linecontext() 44 return lines->info + (line->context - 1); in dwarf_linecontext()
|
H A D | dwarf_onesrcline.c | 1 /* Return one of the sources lines of a CU. 38 dwarf_onesrcline (Dwarf_Lines *lines, size_t idx) in dwarf_onesrcline() argument 40 if (lines == NULL) in dwarf_onesrcline() 43 if (idx >= lines->nlines) in dwarf_onesrcline() 49 return &lines->info[idx]; in dwarf_onesrcline()
|
H A D | dwarf_next_lines.c | 46 Elf_Data *lines = dbg->sectiondata[IDX_debug_line]; in dwarf_next_lines() 47 if (lines == NULL) in dwarf_next_lines() 54 || lines->d_size < 4 in dwarf_next_lines() 55 || off >= lines->d_size) in dwarf_next_lines() 63 const unsigned char *linep = lines->d_buf + off; in dwarf_next_lines() 64 const unsigned char *lineendp = lines->d_buf + lines->d_size; in dwarf_next_lines() 122 at offset zero (containing just the files, no lines). */ in dwarf_next_lines()
|
/base/security/selinux_adapter/scripts/selinux_check/ |
H A D | check_common.py | 40 lines = [] 43 lines.append(line.strip()) 44 return lines 56 lines = fp.readlines() 57 if len(lines) == 0: 59 last_line = lines[-1]
|
/test/testfwk/xdevice/src/xdevice/_core/driver/ |
H A D | parser_lite.py | 53 lines = content.split(end_mark) 56 return lines[:-1] 58 self.unfinished_line = lines[-1] 61 return lines 69 lines = self._process_output(output) 70 for line in lines:
|
/third_party/python/Lib/ |
H A D | nntplib.py | 58 # arbitrary iterables yielding lines. 92 # reading arbitrary length lines. RFC 3977 limits NNTP line length to 151 "subject", "from", "date", "message-id", "references", ":bytes", ":lines"] 156 'lines': ':lines', 166 ['number', 'message_id', 'lines']) 181 def _parse_overview_fmt(lines): 187 for line in lines: 206 def _parse_overview(lines, fmt, data_process_func=None): 211 for line in lines [all...] |
/third_party/lz4/contrib/gen_manual/ |
H A D | gen_manual.cpp | 65 /* get lines until a given terminator */ 109 vector<string> input, lines, comments, chapters; in main() local 144 lines = get_lines(input, linenum, "}"); in main() 146 for (l=0; l<lines.size(); l++) { in main() 147 print_line(sout, lines[l]); in main() 195 lines = get_lines(input, linenum, ""); in main() 198 for (l=0; l<lines.size(); l++) { in main() 199 print_line(sout, lines[l]); in main() 213 lines = get_lines(input, ++linenum, ""); in main() 214 for (l=0; l<lines in main() [all...] |
/third_party/python/Tools/scripts/ |
H A D | highlight.py | 19 def combine_range(lines, start, end): 20 'Join content from a range of lines between start and end' 23 return lines[srow-1][scol:ecol], end 24 rows = [lines[srow-1][scol:]] + lines[srow: erow-1] + [lines[erow-1][:ecol]] 31 lines = source.splitlines(True) 32 lines.append('') 33 readline = functools.partial(next, iter(lines), '') 59 text, written = combine_range(lines, writte [all...] |
/third_party/python/Lib/idlelib/ |
H A D | codecontext.py | 6 the lines which contain the block opening keywords, e.g. 'if', for the 7 enclosing block. The number of hint lines is determined by the maxlines 34 The indentation of empty lines (or comment lines) is INFINITY. 153 The list represents header lines from new_topvisible back to 159 lines = [] 173 lines.append((linenum, indent, text, opener)) 176 lines.reverse() 177 return lines, lastindent 180 """Update context information and lines visibl [all...] |
/test/testfwk/xdevice/plugins/ohos/src/ohos/parser/ |
H A D | opensource_parser_lite.py | 39 self.lines = [] 48 def __process__(self, lines): 51 self.lines.extend(lines) 55 self.state_machine.trace_logs.extend(self.lines) 68 for line in self.lines: 82 test_result.stacktrace = "\\n".join(self.lines)
|
/test/xts/hats/kernel/prctl/ |
H A D | PrctlApiTest.cpp | 132 std::vector<std::string> lines = str_split(file_data, "\n"); in SetVmaAnonName() local 133 for (size_t i = 0; i < lines.size(); i++) { in SetVmaAnonName() 134 if (lines[i].empty()) in SetVmaAnonName() 138 if (sscanf_s(lines[i].c_str(), "%" SCNxPTR "-%" SCNxPTR " ", &start, &end) != 2) in SetVmaAnonName() 139 std::cout << "FAILED to parse line :" << lines[i]; in SetVmaAnonName() local 144 << lines[i - 1] << '\n' in SetVmaAnonName() 145 << lines[i] << '\n'; in SetVmaAnonName() local
|
/third_party/PyYAML/lib/yaml/ |
H A D | error.py | 59 lines = [] 61 lines.append(self.context) 67 lines.append(str(self.context_mark)) 69 lines.append(self.problem) 71 lines.append(str(self.problem_mark)) 73 lines.append(self.note) 74 return '\n'.join(lines)
|