Home
last modified time | relevance | path

Searched refs:lines (Results 1 - 25 of 904) sorted by relevance

12345678910>>...37

/third_party/node/deps/v8/third_party/test262-harness/src/
H A D_monkeyYaml.py20 def myReadDict(lines, indent=""):
25 while lines:
26 if not lines[0].startswith(indent):
29 line = lines.pop(0)
40 (lines, value) = myReadValue(lines, value, indent)
49 return lines, dict
51 def myReadValue(lines, value, indent):
53 (lines, value) = myMultiline(lines, valu
[all...]
/third_party/python/Tools/msi/
H A Dcsv_to_wxs.py64 lines = [
69 lines.append(' <DirectoryRef Id="{}">'.format(dir_parent))
71 lines.append(' <Directory Id="{}_{}" Name="{}" />'.format(dir_parent, make_id(dir_name), dir_name))
72 lines.append(' </DirectoryRef>')
74 lines.append(' <DirectoryRef Id="{}">'.format(dir_parent))
75 lines.append(' <Directory Id="{}___pycache__" Name="__pycache__" />'.format(dir_parent))
76 lines.append(' </DirectoryRef>')
77 lines.append(' </Fragment>')
80 lines.extend([
85 lines
[all...]
/third_party/libphonenumber/tools/java/cpp-build/test/com/google/i18n/phonenumbers/
H A DCppMetadataGeneratorTest.java66 Iterator<String> lines = toLines(writer.toString()).iterator(); in outputHeaderFile()
67 // Sanity check that at least some of the expected lines are present. in outputHeaderFile()
68 assertTrue(consumeUntil(" * Copyright (C) 2011 The Libphonenumber Authors", lines)); in outputHeaderFile()
69 assertTrue(consumeUntil("#ifndef I18N_PHONENUMBERS_METADATA_H_", lines)); in outputHeaderFile()
70 assertTrue(consumeUntil("#define I18N_PHONENUMBERS_METADATA_H_", lines)); in outputHeaderFile()
71 assertTrue(consumeUntil("namespace i18n {", lines)); in outputHeaderFile()
72 assertTrue(consumeUntil("namespace phonenumbers {", lines)); in outputHeaderFile()
73 assertTrue(consumeUntil("int metadata_size();", lines)); in outputHeaderFile()
74 assertTrue(consumeUntil("const void* metadata_get();", lines)); in outputHeaderFile()
75 assertTrue(consumeUntil("#endif // I18N_PHONENUMBERS_METADATA_H_", lines)); in outputHeaderFile()
[all...]
/third_party/python/Tools/scripts/
H A Dfreeze_modules.py448 def find_marker(lines, marker, file):
449 for pos, line in enumerate(lines):
455 def replace_block(lines, start_marker, end_marker, replacements, file):
456 start_pos = find_marker(lines, start_marker, file)
457 end_pos = find_marker(lines, end_marker, file)
463 return lines[:start_pos + 1] + replacements + lines[end_pos:]
485 lines = bootstraplines
487 lines = testlines
489 lines
[all...]
/third_party/littlefs/scripts/
H A Dtailpipe.py3 # Efficiently displays the last n lines of a file/pipe.
35 self.lines = co.deque(maxlen=maxlen)
44 lines = s.split('\n')
46 if len(lines) > 1 and self.tail.getvalue():
47 self.tail.write(lines[0])
48 lines[0] = self.tail.getvalue()
51 self.lines.extend(lines[:-1])
53 if lines[-1]:
54 self.tail.write(lines[
[all...]
H A Dwatch.py71 self.lines = co.deque(maxlen=maxlen)
80 lines = s.split('\n')
82 if len(lines) > 1 and self.tail.getvalue():
83 self.tail.write(lines[0])
84 lines[0] = self.tail.getvalue()
87 self.lines.extend(lines[:-1])
89 if lines[-1]:
90 self.tail.write(lines[-1])
96 if maxlen != self.lines
[all...]
/third_party/python/Lib/idlelib/
H A Dformat.py45 If text is selected, format_paragraph_event will start breaking lines
49 cursor location to determine the paragraph (lines of text surrounded
50 by blank lines) and formats it.
122 lines = data.split("\n")
124 n = len(lines)
125 while i < n and is_all_white(lines[i]):
129 indent1 = get_indent(lines[i])
130 if i+1 < n and not is_all_white(lines[i+1]):
131 indent2 = get_indent(lines[i+1])
134 new = lines[
[all...]
/third_party/python/Tools/c-analyzer/
H A Dtable-file.py2 def iter_clean_lines(lines):
3 lines = iter(lines)
4 for line in lines:
11 def parse_table_lines(lines):
12 lines = iter_clean_lines(lines)
14 for line in lines:
18 line = next(lines).strip()
31 line = next(lines)
[all...]
/third_party/rust/crates/clap/clap_derive/src/utils/
H A Ddoc_comments.rs4 //! non-empty adjacent lines, delimited by sequences of blank (whitespace only) lines.
10 // we need to split so we could handle the lines correctly in extract_doc_comment()
12 // we also need to remove leading and trailing blank lines in extract_doc_comment()
13 let mut lines: Vec<_> = attrs in extract_doc_comment() variables
33 let lines = s in extract_doc_comment()
41 lines in extract_doc_comment()
45 while let Some(true) = lines.last().map(|s| is_blank(s)) { in extract_doc_comment()
46 lines.pop(); in extract_doc_comment()
49 lines in extract_doc_comment()
[all...]
/third_party/node/deps/npm/node_modules/diff/lib/patch/
H A Dapply.js57 var lines = source.split(/\r\n|[\n\v\f\r\x85]/),
80 for (var j = 0; j < hunk.lines.length; j++) {
81 var line = hunk.lines[j],
87 if (!compareLine(toPos + 1, lines[toPos], operation, content)) {
105 maxLine = lines.length - hunk.oldLines,
147 for (var j = 0; j < _hunk.lines.length; j++) {
148 var line = _hunk.lines[j],
156 lines.splice(_toPos, 1);
160 lines.splice(_toPos, 0, content);
164 var previousOperation = _hunk.lines[
[all...]
H A Dcreate.js61 lines: []
64 function contextLines(lines) {
65 return lines.map(function (entry) {
82 lines = current.lines || current.value.replace(/\n$/, '').split('\n');
83 current.lines = lines;
97 curRange = options.context > 0 ? contextLines(prev.lines.slice(-options.context)) : [];
119 lines.map(function (entry) {
125 newLine += lines
[all...]
H A Dmerge.js46 calcOldNewLineCount(hunk.lines),
127 lines: []
129 mergeLines(mergedHunk, mineCurrent.oldStart, mineCurrent.lines, theirsCurrent.oldStart, theirsCurrent.lines);
207 lines: hunk.lines
216 lines: mineLines,
221 lines: theirLines,
228 while (mine.index < mine.lines.length && their.index < their.lines
220 lines: theirLines, global() property
[all...]
/third_party/skia/third_party/externals/harfbuzz/test/shape/
H A Dhb_test_tools.py79 def colorize_lines (self, lines):
80 lines = (l if l else '' for l in lines)
81 ss = [self.diff_regex.sub (r'\1\n\2\n', l).splitlines (True) for l in lines]
109 lines = [None, None]
115 if lines[i]:
117 for line in self.colorize_lines (lines):
119 lines = [None, None]
120 lines[i] = l[1:]
121 if (all (lines))
[all...]
/third_party/node/test/parallel/
H A Dtest-repl-preview.js22 this.lines = [''];
32 this.lines[this.lines.length - 1] += chunkLines[0];
34 this.lines.push(...chunkLines.slice(1));
36 this.emit('line', this.lines[this.lines.length - 1]);
40 this.lines = [''];
43 return this.lines;
169 let lines = await runAndWait(toBeRun, repl);
175 lines
[all...]
H A Dtest-repl-top-level-await.js20 this.lines = [''];
27 this.lines[this.lines.length - 1] += chunkLines[0];
29 this.lines.push(...chunkLines.slice(1));
31 this.emit('line', this.lines[this.lines.length - 1]);
40 this.lines = [''];
43 return this.lines;
185 const lines = await runAndWait(toBeRun);
189 if (lines[
[all...]
/third_party/skia/infra/bots/buildstats/
H A Dbuildstats_flutter.py48 lines = subprocess.check_output([bloaty_path, stripped_file,
52 grand_total = print_skia_lines_file_symbol(lines)
55 lines = subprocess.check_output([bloaty_path, stripped_file,
59 print_skia_lines_file_symbol(lines)
63 lines = subprocess.check_output([bloaty_path, stripped_file,
67 print_skia_lines_symbol_file(lines)
71 lines = subprocess.check_output([bloaty_path, stripped_file,
75 print_skia_lines_symbol_file(lines)
101 def print_skia_lines_file_symbol(lines):
102 lines
[all...]
/third_party/node/deps/v8/third_party/test262-harness/test/
H A Dtest_monkeyYaml.py43 lines = [" foo"]
45 y = "\n".join([value] + lines)
46 (lines, value) = monkeyYaml.myMultiline(lines, value)
47 self.assertEqual(lines, [])
51 lines = [" foo", " bar"]
52 y = "\n".join([">"] + lines)
53 (lines, value) = monkeyYaml.myMultiline(lines)
54 self.assertEqual(lines, [])
[all...]
/third_party/elfutils/libdw/
H A Ddwarf_entry_breakpoints.c68 Dwarf_Lines *lines, size_t nlines, in search_range()
75 if (lines->info[idx].addr < low) in search_range()
77 else if (lines->info[idx].addr > low) in search_range()
79 else if (lines->info[idx].end_sequence) in search_range()
90 for (size_t i = l; i < u && lines->info[i].addr < high; ++i) in search_range()
91 if (lines->info[i].prologue_end in search_range()
92 && add_bkpt (lines->info[i].addr, bkpts, pnbkpts) < 0) in search_range()
95 while (++l < nlines && lines->info[l].addr < high) in search_range()
96 if (!lines->info[l].end_sequence) in search_range()
97 return add_bkpt (lines in search_range()
66 search_range(Dwarf_Addr low, Dwarf_Addr high, bool dwarf, bool adhoc, Dwarf_Lines *lines, size_t nlines, Dwarf_Addr **bkpts, int *pnbkpts) search_range() argument
112 Dwarf_Lines *lines; dwarf_entry_breakpoints() local
[all...]
/third_party/alsa-utils/alsamixer/
H A Dtextbox.c37 static void create_text_box(const char *const *lines, unsigned int count,
42 const char *lines[2]; in show_error() local
45 lines[0] = msg; in show_error()
48 lines[1] = strerror(err); in show_error()
51 create_text_box(lines, count, _("Error"), attrs.errormsg); in show_error()
56 const char *lines[2]; in show_alsa_error() local
59 lines[0] = msg; in show_alsa_error()
62 lines[1] = snd_strerror(err); in show_alsa_error()
65 create_text_box(lines, count, _("Error"), attrs.errormsg); in show_alsa_error()
74 const char **lines; in show_textfile() local
104 show_text(const char *const *lines, unsigned int count, const char *title) show_text() argument
318 create_text_box(const char *const *lines, unsigned int count, const char *title_, int attrs) create_text_box() argument
[all...]
/third_party/ltp/tools/sparse/sparse-src/Documentation/sphinx/
H A Dcdoc.py17 // and continues with lines beginning by ``//`` followed by either a space,
28 // // <tab>which needs multiple lines>
36 // the function it documents. This function can span multiple lines and
54 def __init__(self, lines):
57 self.lines = lines
72 self.last = next(self.lines).rstrip()
84 def readline_multi(lines, line):
88 (n, l) = next(lines)
93 lines
[all...]
/third_party/python/Doc/tools/
H A Drstlint.py158 def check_syntax(fn, lines):
160 code = ''.join(lines)
172 def check_suspicious_constructs(fn, lines):
175 for lno, line in enumerate(lines, start=1):
195 def check_whitespace(fn, lines):
197 for lno, line in enumerate(lines):
207 def check_line_length(fn, lines):
209 for lno, line in enumerate(lines):
221 def check_leaked_markup(fn, lines):
225 for lno, line in enumerate(lines)
378 lines = list(f) global() variable
[all...]
/third_party/googletest/googlemock/scripts/generator/cpp/
H A Dgmock_class.py147 lines = []
158 lines.extend(['namespace %s {' % n for n in class_node.namespace]) # }
159 lines.append('')
171 lines.append('template <' + ', '.join(template_decls) + '>')
175 lines.append('class Mock%s : public %s {' # }
177 lines.append('%spublic:' % (' ' * (_INDENT // 2)))
180 _GenerateMethods(lines, source, class_node)
183 if lines:
185 if len(lines) == 2:
186 del lines[
[all...]
/third_party/vk-gl-cts/external/vulkan-docs/src/scripts/spec_tools/
H A Dvalidity.py38 self.lines = []
72 if combined in self.lines:
74 self.lines.append(combined)
85 self.lines.append(msg)
87 def _extend(self, lines):
88 lines = list(lines)
89 dupes = set(lines).intersection(self.lines)
92 self.lines
[all...]
/third_party/vk-gl-cts/external/vulkan-docs/src/scripts/
H A Dantora-prep.py146 - lines - text of file as list of strings
167 self.lines = None
193 """Chapter title block must be within this many lines of start of file"""
194 maxLines = min(30, len(self.lines))
201 line = self.lines[lineno]
220 # If we do not find a match in the first maxLines lines, assume it
239 self.lines, _ = loadFile(self.srcpath)
240 if self.lines is None:
299 # Xref markup may be broken across lines, and may or may not include
304 for lineno in range(0, len(self.lines))
[all...]
H A Dcomment_convert.py27 "Temporary storage for contiguous comment lines."
30 "Temporary storage for empty lines following a comment."
33 "Fully-processed output lines."
39 "Whether we allow blank lines between a comment and the thing it's considered to document."
51 # flush any comment lines we had stored and output this line.
87 lines = [extract(line) for line in self.comment_lines]
90 while lines and not lines[0].strip():
91 lines.pop(0)
94 while lines an
[all...]

Completed in 9 milliseconds

12345678910>>...37