/external/icu/icu4c/source/test/cintltst/ |
H A D | sorttest.c | 111 printLines(const Line *lines) { argument 115 const Line *line=lines+i; 137 Line *lines, *p; local 147 lines=p=(Line *)uprv_malloc(NUM_LINES*sizeof(Line)); 148 uprv_memset(lines, 0, NUM_LINES*sizeof(Line)); /* avoid uninitialized memory */ 163 puts("\n* lines before sorting"); 164 printLines(lines); 166 uprv_sortArray(lines, NUM_LINES, (int32_t)sizeof(Line), 172 puts("* lines after sorting"); 173 printLines(lines); [all...] |
/external/chromium_org/third_party/WebKit/Tools/Scripts/webkitperl/VCSUtils_unittest/ |
H A D | parseSvnProperty.pl | 323 multiple lines. 331 value => "A\nlong sentence that spans\nmultiple lines.", 343 multiple lines. 352 value => "A\r\nlong sentence that spans\r\nmultiple lines.", 364 multiple lines. 372 value => "A\nlong sentence that spans\nmultiple lines.", 384 multiple lines. 393 value => "A\r\nlong sentence that spans\r\nmultiple lines.", 445 multiple lines. 453 value => "A\nlong sentence that spans\nmultiple lines [all...] |
/external/chromium_org/net/ftp/ |
H A D | ftp_directory_listing_parser_ls.cc | 126 const std::vector<base::string16>& lines, 133 for (size_t i = 0; i < lines.size(); i++) { 134 if (lines[i].empty()) 138 base::SplitString(base::CollapseWhitespace(lines[i], false), ' ', &columns); 166 // Some servers send a message in one of the first few lines. 170 if (lines[i].find(base::ASCIIToUTF16(".:")) != base::string16::npos) 215 entry.name = FtpUtil::GetStringPartAfterColumns(lines[i], 125 ParseFtpDirectoryListingLs( const std::vector<base::string16>& lines, const base::Time& current_time, std::vector<FtpDirectoryListingEntry>* entries) argument
|
H A D | ftp_directory_listing_parser_unittest.h | 34 std::vector<base::string16> lines; local 35 lines.push_back(base::UTF8ToUTF16(text)); 36 return lines;
|
/external/chromium_org/testing/ |
H A D | generate_gmock_mutant.py | 371 lines = Clean(s).splitlines() 373 lines[0] = Wrap(lines[0], 80, 10) 374 lines[2] = Wrap(lines[2], 80, 4) 375 return "\n".join(lines)
|
/external/chromium_org/third_party/libvpx/source/libvpx/tools/ |
H A D | diff.py | 24 self.lines = [] 28 l = len(self.lines) 31 self.lines.append(line[1:]) 35 return len(self.lines) == self.length 48 self.lines = [] 65 self.lines.append(line)
|
/external/chromium_org/v8/test/webkit/ |
H A D | testcfg.py | 72 # Accept several lines of 'Files:'. 103 """Ignore empty lines, valgrind output and Android output.""" 126 def ActIterator(lines): 127 for line in lines: 132 """Iterates over blocks of actual output lines.""" 133 lines = output.stdout.splitlines() 136 for index, line in enumerate(lines): 139 # Iterate over all lines before a separator except the first. 143 yield ActIterator(lines[start_index:index]) 144 # The next block of ouput lines start [all...] |
/external/harfbuzz_ng/util/ |
H A D | view-cairo.cc | 38 (vertical ? *w : *h) = (int) lines->len * (font_extents.height + view_options.line_space) - view_options.line_space; 40 for (unsigned int i = 0; i < lines->len; i++) { 41 helper_cairo_line_t &line = g_array_index (lines, helper_cairo_line_t, i); 82 descent = font_extents.height * (lines->len + .5); 86 for (unsigned int i = 0; i < lines->len; i++) 88 helper_cairo_line_t &l = g_array_index (lines, helper_cairo_line_t, i);
|
/external/libvpx/libvpx/tools/ |
H A D | diff.py | 24 self.lines = [] 28 l = len(self.lines) 31 self.lines.append(line[1:]) 35 return len(self.lines) == self.length 48 self.lines = [] 65 self.lines.append(line)
|
/external/chromium_org/native_client_sdk/src/build_tools/ |
H A D | build_version.py | 109 lines = output.splitlines() 112 hsh = lines[0] 116 for line in reversed(lines):
|
/external/chromium_org/third_party/WebKit/Tools/Scripts/webkitpy/style/checkers/ |
H A D | test_expectations_unittest.py | 66 def assert_lines_lint(self, lines, should_pass, expected_output=None): 74 # can check the lines. 78 checker.check_test_expectations(expectations_str='\n'.join(lines), 80 checker.check_tabs(lines)
|
H A D | cpp.py | 187 def _find_in_lines(regex, lines, start_position, not_found_position): 196 current_line = lines[start_position.row][start_position.column:] 206 if current_row >= len(lines): 208 current_line = lines[current_row] 210 def _rfind_in_lines(regex, lines, start_position, not_found_position): 222 current_line = lines[start_position.row][:start_position.column] 232 current_line = lines[current_row] 408 """Converts multiple lines into a single line (with line breaks replaced by a 410 def __init__(self, lines, start_position, end_position): 414 lines [all...] |
/external/chromium_org/third_party/skia/tools/ |
H A D | sanitize_source_files.py | 28 lines in a file (Eg: TabReplacer). 41 lines = f.readlines() 45 new_lines = [] # Collect changed lines here. 50 for line in lines: 61 old_content = ''.join(lines)
|
/external/chromium_org/tools/gyp/test/lib/ |
H A D | TestMac.py | 43 lines = subprocess.check_output(['xcodebuild', '-version']).splitlines() 44 version = ''.join(lines[0].split()[-1].split('.')) 46 return version, lines[-1].split()[-1]
|
/external/chromium_org/v8/tools/ |
H A D | logreader.js | 53 * CSV lines parser. 166 * Processes log lines. 168 * @param {Array.<string>} lines Log lines. 171 LogReader.prototype.processLog_ = function(lines) { 172 for (var i = 0, n = lines.length; i < n; ++i, ++this.lineNum_) { 173 var line = lines[i];
|
H A D | check-name-clashes.py | 38 self.lines = [] 44 if not self.lines: 54 self.lines.append(line + "\n") 59 for i in range(len(self.lines)): 60 self.lines[i] = re.sub(pattern, "%%(%s)s" % arg, self.lines[i]) 68 for line in self.lines: 162 lines = file_contents.split("\n") 164 for line in lines:
|
/external/lldb/test/functionalities/memory/read/ |
H A D | TestMemoryRead.py | 74 lines = self.res.GetOutput().splitlines() 78 self.assertTrue(argc == int(lines[i].split(':')[1].strip(' {}'), 0)) 79 addr = int(lines[i].split(':')[0], 0)
|
/external/skia/tools/ |
H A D | sanitize_source_files.py | 28 lines in a file (Eg: TabReplacer). 41 lines = f.readlines() 45 new_lines = [] # Collect changed lines here. 50 for line in lines: 61 old_content = ''.join(lines)
|
/external/chromium_org/third_party/WebKit/Tools/Scripts/webkitruby/check-for-inappropriate-macros-in-external-headers-tests/ |
H A D | run-test.rb | 34 lines = output.split("\n").map { |line| line.sub(/\'(.*)?\/(.*)?\.framework/, "'--stripped--/\\2.framework") } 35 lines.join("\n") + (lines.empty? ? "" : "\n")
|
/external/chromium_org/third_party/angle/src/compiler/preprocessor/ |
H A D | generate_parser.sh | 19 bison --no-lines --skeleton=yacc.c --output=$output_source $input_file
|
/external/chromium_org/third_party/angle/src/compiler/translator/ |
H A D | generate_parser.sh | 20 bison --no-lines --skeleton=yacc.c --defines=$output_header --output=$output_source $input_file
|
/external/chromium_org/third_party/flot/ |
H A D | jquery.flot.canvas.min.js | 28 */(function(e){function o(t,o){var u=o.Canvas;n==null&&(r=u.prototype.getTextInfo,i=u.prototype.addText,n=u.prototype.render),u.prototype.render=function(){if(!t.getOptions().canvas)return n.call(this);var e=this.context,r=this._textCache;e.save(),e.textBaseline="middle";for(var i in r)if(s.call(r,i)){var o=r[i];for(var u in o)if(s.call(o,u)){var a=o[u],f=!0;for(var l in a)if(s.call(a,l)){var c=a[l],h=c.positions,p=c.lines;f&&(e.fillStyle=c.font.color,e.font=c.font.definition,f=!1);for(var d=0,v;v=h[d];d++)if(v.active)for(var m=0,g;g=v.lines[m];m++)e.fillText(p[m].text,g[0],g[1]);else h.splice(d--,1);h.length==0&&delete a[l]}}}e.restore()},u.prototype.getTextInfo=function(n,i,s,o,u){if(!t.getOptions().canvas)return r.call(this,n,i,s,o,u);var a,f,l,c;i=""+i,typeof s=="object"?a=s.style+" "+s.variant+" "+s.weight+" "+s.size+"px "+s.family:a=s,f=this._textCache[n],f==null&&(f=this._textCache[n]={}),l=f[a],l==null&&(l=f[a]={}),c=l[i];if(c==null){var h=this.context;if(typeof s!="object"){var p=e("<div> </div>").css("position","absolute").addClass(typeof s=="string"?s:null).appendTo(this.getTextLayer(n));s={lineHeight:p.height(),style:p.css("font-style"),variant:p.css("font-variant"),weight:p.css("font-weight"),family:p.css("font-family"),color:p.css("color")},s.size=p.css("line-height",1).height(),p.remove()}a=s.style+" "+s.variant+" "+s.weight+" "+s.size+"px "+s.family,c=l[i]={width:0,height:0,positions:[],lines:[],font:{definition:a,color:s.color}},h.save(),h.font=a;var d=(i+"").replace(/<br ?\/?>|\r\n|\r/g,"\n").split("\n");for(var v=0;v<d.length;++v){var m=d[v],g=h.measureText(m);c.width=Math.max(g.width,c.width),c.height+=s.lineHeight,c.lines.push({text:m,width:g.width,height:s.lineHeight})}h.restore()}return c},u.prototype.addText=function(e,n,r,s,o,u,a,f,l){if(!t.getOptions().canvas)return i.call(this,e,n,r,s,o,u,a,f,l);var c=this.getTextInfo(e,s,o,u,a),h=c.positions,p=c.lines;r+=c.height/p.length/2,l=="middle"?r=Math.round(r-c.height/2):l=="bottom"?r=Math.round(r-c.height):r=Math.round(r),!(window.opera&&window.opera.version().split(".")[0]<12)||(r-=2);for(var d=0,v;v=h[d];d++)if(v.x==n&&v.y==r){v.active=!0;return}v={active:!0,lines:[],x:n,y:r},h.push(v);for(var d=0,m;m=p[d];d++)f=="center"?v.lines.push([Math.round(n-m.width/2),r]):f=="right"?v.lines.push([Math.round(n-m.width),r]):v.lines.push([Math.round(n),r]),r+=m.height}}var t={canvas:!0},n,r,i,s=Object.prototype.hasOwnProperty;e.p (…)
|
/external/chromium_org/third_party/WebKit/Tools/Scripts/webkitruby/PrettyPatch/ |
H A D | PrettyPatch.rb | 85 # We won't search for intra-line diffs in lines longer than this length, to avoid hangs. See <http://webkit.org/b/56109>. 522 def initialize(lines) 523 @filename = PrettyPatch.filename_from_diff_header(lines[0].chomp) 525 for i in 0...lines.length 526 case lines[i] 528 @from = PrettyPatch.revisionOrDescription(lines[i]) 530 @filename = PrettyPatch.filename_from_diff_header(lines[i].chomp) if @filename.nil? 531 @to = PrettyPatch.revisionOrDescription(lines[i]) 536 if (IMAGE_FILE_MARKER_FORMAT.match(lines[i + 1]) or PrettyPatch.has_image_suffix(@filename)) then 539 for x in startOfSections...lines [all...] |
/external/chromium_org/third_party/icu/source/tools/ctestfw/ |
H A D | uperf.cpp | 86 lines(NULL), numLines(0), line_mode(TRUE), 102 lines(NULL), numLines(0), line_mode(TRUE), 213 if (lines != NULL) { 214 return lines; // don't do it again 216 lines = new ULine[MAXLINES]; 226 lines[numLines].name = new UChar[len]; 227 lines[numLines].len = len; 228 memcpy(lines[numLines].name, line, len * U_SIZEOF_UCHAR); 238 delete []lines; 242 memcpy(newLines, lines, numLine [all...] |
/external/icu/icu4c/source/tools/ctestfw/ |
H A D | uperf.cpp | 86 lines(NULL), numLines(0), line_mode(TRUE), 102 lines(NULL), numLines(0), line_mode(TRUE), 213 if (lines != NULL) { 214 return lines; // don't do it again 216 lines = new ULine[MAXLINES]; 226 lines[numLines].name = new UChar[len]; 227 lines[numLines].len = len; 228 memcpy(lines[numLines].name, line, len * U_SIZEOF_UCHAR); 238 delete []lines; 242 memcpy(newLines, lines, numLine [all...] |