Home
last modified time | relevance | path

Searched refs:lines (Results 1 – 25 of 724) sorted by relevance

12345678910>>...29

/external/v8/tools/
Djs2c.py39 def ToCAsciiArray(lines): argument
41 for chr in lines:
48 def ToCArray(lines): argument
50 for chr in lines:
55 def RemoveCommentsAndTrailingWhitespace(lines): argument
56 lines = re.sub(r'//.*\n', '\n', lines) # end-of-line comments
57 lines = re.sub(re.compile(r'/\*.*?\*/', re.DOTALL), '', lines) # comments.
58 lines = re.sub(r'\s+\n+', '\n', lines) # trailing whitespace
59 return lines
65 lines = file.read()
[all …]
/external/webkit/Tools/Scripts/webkitpy/common/checkout/
Ddiff_parser_unittest.py95 self.assertEquals(7, len(diff.lines))
97 self.assertEquals((47, 47), diff.lines[0][0:2])
98 self.assertEquals('', diff.lines[0][2])
99 self.assertEquals((48, 48), diff.lines[1][0:2])
100 self.assertEquals(' unsigned align : 3; // EBoxAlignment', diff.lines[1][2])
102 self.assertEquals((50, 0), diff.lines[3][0:2])
103 self.assertEquals(' unsigned orient: 1; // EBoxOrient', diff.lines[3][2])
109 self.assertEquals(7 + 7 + 9, len(diff.lines))
111 self.assertEquals((60, 61), diff.lines[9][0:2])
112 self.assertEquals((0, 62), diff.lines[10][0:2])
[all …]
/external/chromium/net/ftp/
Dftp_directory_listing_parser_vms_unittest.cc54 std::vector<string16> lines(GetSingleLineTestCase(good_cases[i].input)); in TEST_F() local
57 lines.insert(lines.begin(), in TEST_F()
61 lines.insert(lines.end(), in TEST_F()
65 EXPECT_TRUE(ParseFtpDirectoryListingVms(lines, in TEST_F()
108 std::vector<string16> lines(GetSingleLineTestCase(bad_cases[i])); in TEST_F() local
111 lines.insert(lines.begin(), in TEST_F()
115 lines.insert(lines.end(), in TEST_F()
119 EXPECT_FALSE(ParseFtpDirectoryListingVms(lines, in TEST_F()
133 std::vector<string16> lines( in TEST_F() local
137 lines.insert(lines.begin(), in TEST_F()
[all …]
Dftp_ctrl_response_buffer_unittest.cc32 ASSERT_EQ(1U, response.lines.size()); in TEST_F()
33 EXPECT_EQ("Status Text", response.lines[0]); in TEST_F()
51 ASSERT_EQ(1U, response.lines.size()); in TEST_F()
52 EXPECT_EQ("Status Text", response.lines[0]); in TEST_F()
68 ASSERT_EQ(3U, response.lines.size()); in TEST_F()
69 EXPECT_EQ("FirstLine", response.lines[0]); in TEST_F()
70 EXPECT_EQ("SecondLine", response.lines[1]); in TEST_F()
71 EXPECT_EQ("LastLine", response.lines[2]); in TEST_F()
93 ASSERT_EQ(3U, response.lines.size()); in TEST_F()
94 EXPECT_EQ("FirstLineContinued", response.lines[0]); in TEST_F()
[all …]
Dftp_directory_listing_parser_unittest.cc99 std::vector<std::string> lines; in TEST() local
102 lines.push_back(tokenizer.token()); in TEST()
104 ASSERT_EQ(8 * entries.size(), lines.size()); in TEST()
106 for (size_t i = 0; i < lines.size() / 8; i++) { in TEST()
107 std::string type(lines[8 * i]); in TEST()
108 std::string name(lines[8 * i + 1]); in TEST()
110 base::StringToInt64(lines[8 * i + 2], &size); in TEST()
115 base::StringToInt(lines[8 * i + 3], &year); in TEST()
116 base::StringToInt(lines[8 * i + 4], &month); in TEST()
117 base::StringToInt(lines[8 * i + 5], &day_of_month); in TEST()
[all …]
Dftp_directory_listing_parser_netware_unittest.cc32 std::vector<string16> lines(GetSingleLineTestCase(good_cases[i].input)); in TEST_F() local
35 lines.insert(lines.begin(), ASCIIToUTF16("total 1")); in TEST_F()
38 EXPECT_TRUE(ParseFtpDirectoryListingNetware(lines, in TEST_F()
59 std::vector<string16> lines(GetSingleLineTestCase(bad_cases[i])); in TEST_F() local
62 lines.insert(lines.begin(), ASCIIToUTF16("total 1")); in TEST_F()
65 EXPECT_FALSE(ParseFtpDirectoryListingNetware(lines, in TEST_F()
/external/chromium/chrome/browser/importer/
Dnss_decryptor.cc118 std::vector<std::string> lines; in ParseSignons() local
119 base::SplitString(content, '\n', &lines); in ParseSignons()
122 if (lines.empty()) in ParseSignons()
125 if (lines[0] == "#2c") in ParseSignons()
127 else if (lines[0] == "#2d") in ParseSignons()
129 else if (lines[0] == "#2e") in ParseSignons()
142 for (i = 1; i < lines.size() && lines[i].compare(".") != 0; ++i) { in ParseSignons()
144 form.origin = GURL(lines[i]).ReplaceComponents(rep); in ParseSignons()
154 while (i < lines.size()) { in ParseSignons()
157 while (end < lines.size() && lines[end].compare(".") != 0) in ParseSignons()
[all …]
/external/webkit/Tools/Scripts/webkitpy/layout_tests/layout_package/
Dtest_results_uploader.py58 lines = []
61 lines.append('--' + BOUNDARY)
62 lines.append('Content-Disposition: form-data; name="%s"' % key)
63 lines.append('')
66 lines.append(value)
69 lines.append('--' + BOUNDARY)
70 lines.append('Content-Disposition: form-data; name="%s"; filename="%s"' % (key, filename))
71 lines.append('Content-Type: %s' % get_mime_type(filename))
72 lines.append('')
75 lines.append(value)
[all …]
/external/elfutils/libdw/
Ddwarf_getsrc_die.c62 Dwarf_Lines *lines; in dwarf_getsrc_die() local
65 if (INTUSE(dwarf_getsrclines) (cudie, &lines, &nlines) != 0) in dwarf_getsrc_die()
73 if (addr < lines->info[idx].addr) in dwarf_getsrc_die()
75 else if (addr > lines->info[idx].addr || lines->info[idx].end_sequence) in dwarf_getsrc_die()
78 return &lines->info[idx]; in dwarf_getsrc_die()
82 assert (lines->info[nlines - 1].end_sequence); in dwarf_getsrc_die()
89 if (u > 0 && u < nlines && addr > lines->info[u - 1].addr) in dwarf_getsrc_die()
91 while (lines->info[u - 1].end_sequence && u > 0) in dwarf_getsrc_die()
94 return &lines->info[u - 1]; in dwarf_getsrc_die()
Ddwarf_entry_breakpoints.c91 Dwarf_Lines *lines; local
93 if (INTUSE(dwarf_getsrclines) (&cudie, &lines, &nlines) < 0)
112 if (lines->info[idx].addr < low)
114 else if (lines->info[idx].addr > low)
116 else if (lines->info[idx].end_sequence)
127 for (size_t i = l; i < u && lines->info[i].addr < high; ++i)
128 if (lines->info[i].prologue_end
129 && add_bkpt (lines->info[i].addr) < 0)
132 while (++l < nlines && lines->info[l].addr < high)
133 if (!lines->info[l].end_sequence)
[all …]
/external/chromium/testing/gmock/scripts/generator/cpp/
Dgmock_class.py107 lines = []
117 lines.extend(['namespace %s {' % n for n in class_node.namespace]) # }
118 lines.append('')
121 lines.append('class Mock%s : public %s {' % (class_name, class_name)) # }
122 lines.append('%spublic:' % (' ' * (_INDENT // 2)))
125 _GenerateMethods(lines, source, class_node)
128 if lines:
130 if len(lines) == 2:
131 del lines[-1]
134 lines.append('};')
[all …]
/external/elfutils/libdwfl/
Ddwfl_module_getsrc.c70 size_t l = 0, u = cu->die.cu->lines->nlines; in dwfl_module_getsrc()
74 if (addr < cu->die.cu->lines->info[idx].addr) in dwfl_module_getsrc()
76 else if (addr > cu->die.cu->lines->info[idx].addr) in dwfl_module_getsrc()
79 return &cu->lines->idx[idx]; in dwfl_module_getsrc()
82 if (cu->die.cu->lines->nlines > 0) in dwfl_module_getsrc()
83 assert (cu->die.cu->lines->info in dwfl_module_getsrc()
84 [cu->die.cu->lines->nlines - 1].end_sequence); in dwfl_module_getsrc()
89 if (u > 0 && u < cu->die.cu->lines->nlines in dwfl_module_getsrc()
90 && addr > cu->die.cu->lines->info[u - 1].addr) in dwfl_module_getsrc()
91 return &cu->lines->idx[u - 1]; in dwfl_module_getsrc()
Dlines.c57 if (cu->lines == NULL) in __libdwfl_cu_getsrclines()
59 Dwarf_Lines *lines; in __libdwfl_cu_getsrclines() local
61 if (INTUSE(dwarf_getsrclines) (&cu->die, &lines, &nlines) != 0) in __libdwfl_cu_getsrclines()
64 cu->lines = malloc (offsetof (struct Dwfl_Lines, idx[nlines])); in __libdwfl_cu_getsrclines()
65 if (cu->lines == NULL) in __libdwfl_cu_getsrclines()
67 cu->lines->cu = cu; in __libdwfl_cu_getsrclines()
69 cu->lines->idx[i].idx = i; in __libdwfl_cu_getsrclines()
/external/icu4c/test/perf/dicttrieperf/
Ddicttrieperf.cpp53 if(lines[i].name[0]>=0x41) { in DictionaryTriePerfTest()
56 int32_t len=lines[i].len; in DictionaryTriePerfTest()
58 while(len>0 && ((c=lines[i].name[len-1])==0xa || c==0xd)) { in DictionaryTriePerfTest()
61 lines[i].len=len; in DictionaryTriePerfTest()
72 const ULine *getCachedLines() const { return lines; } in getCachedLines()
348 const ULine *lines=perf.getCachedLines(); in CompactTrieDictLookup() local
352 if(lines[i].name[0]<0x41) { in CompactTrieDictLookup()
355 builder.addWord(lines[i].name, lines[i].len, errorCode); in CompactTrieDictLookup()
369 const ULine *lines=perf.getCachedLines(); in call() local
373 if(lines[i].name[0]<0x41) { in call()
[all …]
/external/webkit/Tools/Scripts/webkitpy/style/checkers/
Dcommon.py43 def check(self, lines): argument
45 for line_number in range(len(lines)):
46 if not lines[line_number].endswith("\r"):
55 lines[line_number] = lines[line_number].rstrip("\r")
57 return lines
68 def check(self, lines): argument
70 for line_number, line in enumerate(lines):
/external/llvm/utils/lint/
Dcommon_lint.py7 def VerifyLineLength(filename, lines, max_length): argument
22 for line in lines:
30 def VerifyTabs(filename, lines): argument
44 for line in lines:
51 def VerifyTrailingWhitespace(filename, lines): argument
65 for line in lines:
73 def RunOnFile(filename, lines): argument
94 lines = file.readlines()
95 lint.extend(linter.RunOnFile(filename, lines))
/external/gtest/scripts/
Dpump.py163 def StartsWith(lines, pos, string): argument
166 return lines[pos.line][pos.column:].startswith(string)
186 def FindFirst(lines, token_table, cursor): argument
191 for line in lines[start.line:]:
202 return MakeToken(lines, found_start, found_end, token_type)
208 def SubString(lines, start, end): argument
212 end = Cursor(len(lines) - 1, len(lines[-1]))
218 return lines[start.line][start.column:end.column]
220 result_lines = ([lines[start.line][start.column:]] +
221 lines[start.line + 1:end.line] +
[all …]
/external/chromium/testing/gtest/scripts/
Dpump.py163 def StartsWith(lines, pos, string): argument
166 return lines[pos.line][pos.column:].startswith(string)
186 def FindFirst(lines, token_table, cursor): argument
191 for line in lines[start.line:]:
202 return MakeToken(lines, found_start, found_end, token_type)
208 def SubString(lines, start, end): argument
212 end = Cursor(len(lines) - 1, len(lines[-1]))
218 return lines[start.line][start.column:end.column]
220 result_lines = ([lines[start.line][start.column:]] +
221 lines[start.line + 1:end.line] +
[all …]
/external/kernel-headers/original/asm-generic/
Dxor.h21 long lines = bytes / (sizeof (long)) / 8; in xor_8regs_2() local
34 } while (--lines > 0); in xor_8regs_2()
41 long lines = bytes / (sizeof (long)) / 8; in xor_8regs_3() local
55 } while (--lines > 0); in xor_8regs_3()
62 long lines = bytes / (sizeof (long)) / 8; in xor_8regs_4() local
77 } while (--lines > 0); in xor_8regs_4()
84 long lines = bytes / (sizeof (long)) / 8; in xor_8regs_5() local
100 } while (--lines > 0); in xor_8regs_5()
106 long lines = bytes / (sizeof (long)) / 8; in xor_32regs_2() local
136 } while (--lines > 0); in xor_32regs_2()
[all …]
/external/markdown/markdown/extensions/
Dfootnotes.py153 def run(self, lines): argument
154 lines = self._handleFootnoteDefinitions(lines)
155 text = "\n".join(lines)
158 def _handleFootnoteDefinitions(self, lines): argument
169 i, id, footnote = self._findFootnoteDefinition(lines)
172 plain = lines[:i]
173 detabbed, theRest = self.detectTabbed(lines[i+1:])
180 return lines
182 def _findFootnoteDefinition(self, lines): argument
196 for line in lines:
[all …]
/external/protobuf/src/google/protobuf/compiler/
Dmock_code_generator.cc71 vector<string> lines; in ExpectGenerated() local
72 SplitStringUsing(content, "\n", &lines); in ExpectGenerated()
74 while (!lines.empty() && lines.back().empty()) { in ExpectGenerated()
75 lines.pop_back(); in ExpectGenerated()
77 for (int i = 0; i < lines.size(); i++) { in ExpectGenerated()
78 lines[i] += "\n"; in ExpectGenerated()
86 ASSERT_EQ(lines.size(), 3 + insertion_list.size() * 2); in ExpectGenerated()
88 lines[0]); in ExpectGenerated()
90 EXPECT_EQ(kFirstInsertionPoint, lines[1 + insertion_list.size()]); in ExpectGenerated()
91 EXPECT_EQ(kSecondInsertionPoint, lines[2 + insertion_list.size() * 2]); in ExpectGenerated()
[all …]
/external/skia/bench/
Dbench_graph_svg.py120 lines = {} # {Label:[(x,y)] | x[n] <= x[n+1]}
148 if line_name not in lines:
149 lines[line_name] = []
151 lines[line_name].append((revision, point.time))
153 return lines
155 def bounds(lines): argument
164 for line in lines.itervalues():
173 def create_regressions(lines, start_x, end_x): argument
180 for label, line in lines.iteritems():
301 lines = create_lines(revision_data_points
[all …]
/external/emma/core/java12/com/vladium/emma/data/
DMethodDescriptor.java137 final int [] lines = blockMap [bl]; in getLineMap() local
138 if (lines != null) in getLineMap()
140 final int lineCount = lines.length; in getLineMap()
144 final int line = lines [l]; in getLineMap()
158 final int [] lines = lineMap.keys (); in getLineMap() local
159 for (int l = 0, lineCount = lines.length; l < lineCount; ++ l) in getLineMap()
161 final int line = lines [l]; in getLineMap()
203 final int [] lines = m_blockMap [bl]; in toString() local
204 for (int l = 0; l < lines.length; ++ l) in toString()
207 s.append (lines [l]); in toString()
[all …]
/external/v8/test/mjsunit/
Ddebug-sourceslice.js30 var lines = [ 'function a() { b(); };\n', variable
44 for (var i = 0; i < lines.length; i++) {
45 source += lines[i];
61 for (var slice_size = 0; slice_size < lines.length; slice_size++) {
62 for (var n = 0; n < lines.length - slice_size; n++) {
70 expected += lines[n + i];
/external/antlr/antlr-3.4/tool/src/main/java/org/antlr/tool/
DFASerializer.java86 List lines = new ArrayList(); in serialize() local
88 walkSerializingFA(lines, s); in serialize()
93 lines.add(s0+"\n"); in serialize()
98 Collections.sort(lines); in serialize()
99 for (int i = 0; i < lines.size(); i++) { in serialize()
100 String line = (String) lines.get(i); in serialize()
135 protected void walkSerializingFA(List lines, State s) { in walkSerializingFA() argument
188 lines.add(buf.toString()); in walkSerializingFA()
191 walkSerializingFA(lines, edge.target); in walkSerializingFA()
197 walkSerializingFA(lines, ((RuleClosureTransition) edge).followState); in walkSerializingFA()

12345678910>>...29