/third_party/skia/docs/examples/ |
H A D | Matrix_mapHomogeneousPoints.cpp | 9 int lines[] = { 0, 1, 1, 2, 2, 3, 3, 0, 4, 5, 5, 6, 6, 7, 7, 4, 0, 4, 1, 5, 2, 6, 3, 7 }; in REG_FIDDLE() local 12 for (size_t i = 0; i < SK_ARRAY_COUNT(lines); i += 2) { in REG_FIDDLE() 13 const SkPoint3& s = src[lines[i]]; in REG_FIDDLE() 14 const SkPoint3& e = src[lines[i + 1]]; in REG_FIDDLE()
|
/third_party/skia/third_party/externals/spirv-tools/utils/vscode/src/parser/ |
H A D | parser.go | 74 func (t Token) Text(lines []string) string { return t.Range.Text(lines) } 84 // Text returns the text for the given Range in the provided lines. 85 func (r Range) Text(lines []string) string { 87 if sl < 0 || sc < 0 || sl > len(lines) || sc > len(lines[sl]) { 91 if el < 0 || ec < 0 || el > len(lines) || ec > len(lines[sl]) { 97 sb.WriteString(lines[sl][sc:]) 99 sb.WriteString(lines[ [all...] |
/third_party/skia/third_party/externals/swiftshader/third_party/SPIRV-Tools/utils/vscode/src/parser/ |
H A D | parser.go | 74 func (t Token) Text(lines []string) string { return t.Range.Text(lines) } 84 // Text returns the text for the given Range in the provided lines. 85 func (r Range) Text(lines []string) string { 87 if sl < 0 || sc < 0 || sl > len(lines) || sc > len(lines[sl]) { 91 if el < 0 || ec < 0 || el > len(lines) || ec > len(lines[sl]) { 97 sb.WriteString(lines[sl][sc:]) 99 sb.WriteString(lines[ [all...] |
/third_party/skia/modules/canvaskit/npm_build/ |
H A D | textapi_utils.js | 107 function lines_pos_to_index(lines, x, y) { 108 if (y < lines[0].top) { 111 for (const l of lines) { 116 return lines[lines.length - 1].textRange.last; 138 function lines_index_to_line_index(lines, index) { 140 for (const l of lines) { 146 return lines.length-1; 149 function lines_index_to_line(lines, index) { 150 return lines[lines_index_to_line_inde [all...] |
/third_party/spirv-tools/utils/vscode/src/parser/ |
H A D | parser.go | 74 func (t Token) Text(lines []string) string { return t.Range.Text(lines) } 84 // Text returns the text for the given Range in the provided lines. 85 func (r Range) Text(lines []string) string { 87 if sl < 0 || sc < 0 || sl > len(lines) || sc > len(lines[sl]) { 91 if el < 0 || ec < 0 || el > len(lines) || ec > len(lines[sl]) { 97 sb.WriteString(lines[sl][sc:]) 99 sb.WriteString(lines[ [all...] |
/third_party/python/Lib/ |
H A D | dis.py | 195 lines = [] 196 lines.append("Name: %s" % co.co_name) 197 lines.append("Filename: %s" % co.co_filename) 198 lines.append("Argument count: %s" % co.co_argcount) 199 lines.append("Positional-only arguments: %s" % co.co_posonlyargcount) 200 lines.append("Kw-only arguments: %s" % co.co_kwonlyargcount) 201 lines.append("Number of locals: %s" % co.co_nlocals) 202 lines.append("Stack size: %s" % co.co_stacksize) 203 lines.append("Flags: %s" % pretty_flags(co.co_flags)) 205 lines [all...] |
/third_party/python/Tools/scripts/ |
H A D | nm2def.py | 46 lines = pipe.readlines() 47 lines = [s.strip() for s in lines] 49 for line in lines:
|
/third_party/node/deps/npm/node_modules/@isaacs/cliui/build/lib/ |
H A D | index.js | 50 // second column lines up along the left-hand. 84 const lines = []; 86 this.rowToString(row, lines); 88 // don't display any lines with the 90 return lines 95 rowToString(row, lines) { 129 if (r === 0 && lines.length > 0) { 130 str = this.renderInline(str, lines[lines.length - 1]); 134 lines [all...] |
/third_party/protobuf/src/google/protobuf/compiler/java/ |
H A D | java_doc_comment.cc | 119 std::vector<std::string> lines = Split(comments, "\n"); in WriteDocCommentBodyForLocation() local 120 while (!lines.empty() && lines.back().empty()) { in WriteDocCommentBodyForLocation() 121 lines.pop_back(); in WriteDocCommentBodyForLocation() 125 for (int i = 0; i < lines.size(); i++) { in WriteDocCommentBodyForLocation() 126 // Most lines should start with a space. Watch out for lines that start in WriteDocCommentBodyForLocation() 129 if (!lines[i].empty() && lines[i][0] == '/') { in WriteDocCommentBodyForLocation() 130 printer->Print(" * $line$\n", "line", lines[ in WriteDocCommentBodyForLocation() [all...] |
/third_party/skia/third_party/externals/angle2/ |
H A D | PRESUBMIT.py | 36 def _PopBlankLines(lines, reverse=False): 38 while len(lines) > 0 and _IsLineBlank(lines[-1]): 39 lines.pop() 41 while len(lines) > 0 and _IsLineBlank(lines[0]): 42 lines.pop(0) 60 def _CheckTabInCommit(lines): 61 return all([line.find("\t") == -1 for line in lines]) 120 # pop all the remaining blank lines betwee [all...] |
/third_party/cJSON/tests/unity/auto/ |
H A D | unity_test_summary.py | 31 lines = list(map(lambda line: line.rstrip(), open(result_file, "r").read().split('\n'))) 32 if len(lines) == 0: 35 details = self.get_details(result_file, lines) 40 tests,failures,ignored = self.parse_test_summary('\n'.join(lines)) 85 def get_details(self, result_file, lines): 87 for line in lines:
|
H A D | stylize_as_junit.rb | 85 lines = File.readlines(result_file).map(&:chomp) 87 raise "Empty test result file: #{result_file}" if lines.empty? 89 result_output = get_details(result_file, lines) 90 tests, failures, ignored = parse_test_summary(lines) 97 test_file_str = lines[0].tr('\\', '/') 139 def get_details(_result_file, lines) 141 lines.each do |line|
|
/third_party/node/deps/openssl/openssl/crypto/ts/ |
H A D | ts_rsp_print.c | 73 int i, lines = 0; in TS_STATUS_INFO_print_bio() local 94 lines = ts_status_map_print(bio, failure_map, a->failure_info); in TS_STATUS_INFO_print_bio() 95 if (lines == 0) in TS_STATUS_INFO_print_bio() 105 int lines = 0; in ts_status_map_print() local 109 if (++lines > 1) in ts_status_map_print() 115 return lines; in ts_status_map_print()
|
/third_party/python/Tools/c-analyzer/c_parser/preprocessor/ |
H A D | __main__.py | 98 def show_file(filename, lines): 99 for line in lines: 103 def show_file(filename, lines): 104 for line in lines: 116 lines = _iter_preprocessed(filename, **kwargs) 117 show_file(filename, lines)
|
/third_party/python/Tools/i18n/ |
H A D | makelocalealias.py | 21 lines = list(f) 24 lines = [line for line in lines if '\xef\xbf\xbd' not in line] 26 for line in lines: 59 lines = list(f) 61 for line in lines:
|
/third_party/openssl/crypto/ts/ |
H A D | ts_rsp_print.c | 73 int i, lines = 0; in TS_STATUS_INFO_print_bio() local 94 lines = ts_status_map_print(bio, failure_map, a->failure_info); in TS_STATUS_INFO_print_bio() 95 if (lines == 0) in TS_STATUS_INFO_print_bio() 105 int lines = 0; in ts_status_map_print() local 109 if (++lines > 1) in ts_status_map_print() 115 return lines; in ts_status_map_print()
|
/third_party/unity/auto/ |
H A D | unity_test_summary.py | 31 lines = list(map(lambda line: line.rstrip(), open(result_file, "r").read().split('\n'))) 32 if len(lines) == 0: 35 details = self.get_details(result_file, lines) 40 tests,failures,ignored = self.parse_test_summary('\n'.join(lines)) 85 def get_details(self, result_file, lines): 87 for line in lines:
|
H A D | stylize_as_junit.rb | 85 lines = File.readlines(result_file).map(&:chomp) 87 raise "Empty test result file: #{result_file}" if lines.empty? 89 result_output = get_details(result_file, lines) 90 tests, failures, ignored = parse_test_summary(lines) 97 test_file_str = lines[0].tr('\\', '/') 139 def get_details(_result_file, lines) 141 lines.each do |line|
|
/third_party/vk-gl-cts/scripts/opengl/ |
H A D | src_util.py | 212 lines = map(renderCommand, iface.commands) 213 lines = filter(lambda l: l != None, lines) 215 lines = indentLines(lines) 216 writeInlFile(os.path.join(directory, filename), lines)
|
/third_party/littlefs/scripts/ |
H A D | tracebd.py | 57 self.lines = co.deque(maxlen=maxlen) 66 lines = s.split('\n') 68 if len(lines) > 1 and self.tail.getvalue(): 69 self.tail.write(lines[0]) 70 lines[0] = self.tail.getvalue() 73 self.lines.extend(lines[:-1]) 75 if lines[-1]: 76 self.tail.write(lines[-1]) 82 if maxlen != self.lines [all...] |
/third_party/ninja/src/ |
H A D | browse.py | 69 lines = iter(text.split('\n')) 77 target = next(lines)[:-1] # strip trailing colon 79 line = next(lines) 82 (match, line) = match_strip(next(lines), ' ') 92 (match, line) = match_strip(next(lines), ' ') 96 (match, line) = match_strip(next(lines), ' ') 99 (match, line) = match_strip(next(lines), ' ')
|
/third_party/libphonenumber/metadata/src/main/java/com/google/i18n/phonenumbers/metadata/table/ |
H A D | CsvParser.java | 35 * An efficient, fluent CSV parser which operates on a {@link Stream} of lines. It handles quoting 146 public void parse(Stream<String> lines, Consumer<Stream<String>> rowCallback) { in parse() argument 150 Iterator<String> it = lines.iterator(); in parse() 157 private boolean parseRow(Iterator<String> lines, List<String> row, StringBuilder buffer) { in parseRow() argument 158 if (!lines.hasNext()) { in parseRow() 162 String line = lines.next(); in parseRow() 170 // Quoted value, maybe parse and unescape multiple lines here. in parseRow() 175 checkArgument(allowMultiline && lines.hasNext(), in parseRow() 178 line = lines.next(); in parseRow()
|
/third_party/python/Lib/email/ |
H A D | charset.py | 340 lines = [] 351 if not lines and not current_line: 352 lines.append(None) 354 separator = (' ' if lines else '') 357 lines.append(encoder(header_bytes)) 362 lines.append(encoder(header_bytes)) 363 return lines
|
/third_party/vk-gl-cts/external/vulkan-docs/src/scripts/spec_tools/ |
H A D | console_printer.py | 47 lines = [] 56 lines.append(''.join(fields)) 57 return '\n'.join(lines) 224 lines = msg.message[:] 226 lines.append('See also:') 227 lines.extend((' {}'.format(self.formatBrief(see)) 231 lines.append('Note: Auto-fix available')
|
/third_party/node/lib/internal/assert/ |
H A D | assertion_error.js | 141 // Remove all ending lines that match (this optimizes the output for 142 // readability by reducing the number of total changed lines). 163 // We have to get the result again. The lines were all removed before. 166 // Only remove lines in case it makes sense to collapse those. 179 // There were at least five identical lines at the end. Mark a couple of 196 let lines = actualLines; 200 lines = expectedLines; 207 // If more than two former lines are identical, print them. Collapse them 208 // in case more than five lines were identical. 213 res += `\n ${lines[ [all...] |