/prebuilts/python/darwin-x86/2.7.5/lib/python2.7/idlelib/ |
AutoExpand.py | 29 words, index, insert, line = self.state 30 if insert != curinsert or line != curline: 79 line = self.text.get("insert linestart", "insert") 80 i = len(line) 81 while i > 0 and line[i-1] in self.wordchars: 83 return line[i:]
|
/prebuilts/python/darwin-x86/2.7.5/lib/python2.7/test/ |
test_bufio.py | 32 line = f.readline() 33 self.assertEqual(line, s + b"\n") 34 line = f.readline() 35 self.assertEqual(line, s) 36 line = f.readline() 37 self.assertTrue(not line) # Must be at EOF
|
/prebuilts/python/linux-x86/2.7.5/lib/python2.7/idlelib/ |
AutoExpand.py | 29 words, index, insert, line = self.state 30 if insert != curinsert or line != curline: 79 line = self.text.get("insert linestart", "insert") 80 i = len(line) 81 while i > 0 and line[i-1] in self.wordchars: 83 return line[i:]
|
/prebuilts/python/linux-x86/2.7.5/lib/python2.7/test/ |
test_bufio.py | 32 line = f.readline() 33 self.assertEqual(line, s + b"\n") 34 line = f.readline() 35 self.assertEqual(line, s) 36 line = f.readline() 37 self.assertTrue(not line) # Must be at EOF
|
/sdk/hierarchyviewer/src/com/android/hierarchyviewer/scene/ |
WindowsLoader.java | 53 String line; local 54 while ((line = in.readLine()) != null) { 55 if ("DONE.".equalsIgnoreCase(line)) { 59 int index = line.indexOf(' '); 61 String windowId = line.substring(0, index); 70 Window w = new Window(line.substring(index + 1), id);
|
/external/clang/test/Analysis/ |
edges-new.mm | 565 // This next line is intentionally longer than 80 characters. 586 // CHECK-NEXT: <key>line</key><integer>52</integer> 594 // CHECK-NEXT: <key>line</key><integer>52</integer> 599 // CHECK-NEXT: <key>line</key><integer>52</integer> 619 // CHECK-NEXT: <key>line</key><integer>52</integer> 624 // CHECK-NEXT: <key>line</key><integer>52</integer> 632 // CHECK-NEXT: <key>line</key><integer>53</integer> 637 // CHECK-NEXT: <key>line</key><integer>53</integer> 653 // CHECK-NEXT: <key>line</key><integer>53</integer> 658 // CHECK-NEXT: <key>line</key><integer>53</integer [all...] |
/external/antlr/antlr-3.4/runtime/CSharp2/Sources/Antlr3.Runtime.Tests/ |
ANTLRxxxxStreamFixture.cs | 142 Assert.AreEqual(1, inputStream.Line); 147 Assert.AreEqual(1, inputStream.Line); 152 Assert.AreEqual(1, inputStream.Line); 157 Assert.AreEqual(1, inputStream.Line); 162 Assert.AreEqual(1, inputStream.Line); 167 Assert.AreEqual(2, inputStream.Line); 172 Assert.AreEqual(2, inputStream.Line); 177 Assert.AreEqual(2, inputStream.Line); 182 Assert.AreEqual(2, inputStream.Line); 187 Assert.AreEqual(2, inputStream.Line); [all...] |
/external/chromium/chrome/browser/importer/ |
firefox_importer_utils.cc | 106 const std::string& line = lines[i]; local 107 if (line.empty() || line[0] == '#' || line[0] == ';') 109 size_t equal = line.find('='); 111 std::string key = line.substr(0, equal); 113 *version = line.substr(equal + 1)[0] - '0'; 121 UTF8ToWide(line.substr(equal + 1))); 140 std::string line = lines[i]; local 141 if (line.empty()) 374 const std::string& line = *iter; local [all...] |
/external/clang/test/Index/ |
overriding-method-comments.mm | 22 // CHECK: FullCommentAsXML=[<Function isInstanceMethod="1" file="{{[^"]+}}overriding-method-comments.mm" line="[[@LINE-3]]" column="1"><Name>METH:</Name><USR>c:objc(cs)Root(im)METH:</USR><Declaration>- (void)METH:(id)AAA;</Declaration><Parameters><Parameter><Name>AAA</Name><Index>0</Index><Direction isExplicit="1">in</Direction><Discussion><Para> ZZZ </Para></Discussion></Parameter></Parameters></Function>] 31 // CHECK: FullCommentAsXML=[<Function isInstanceMethod="1" file="{{[^"]+}}overriding-method-comments.mm" line="[[@LINE-3]]" column="1"><Name>METH:</Name><USR>c:objc(cs)Root(im)METH:</USR><Declaration>- (void)METH:(id)BBB;</Declaration><Parameters><Parameter><Name>BBB</Name><Index>0</Index><Direction isExplicit="1">in</Direction><Discussion><Para> ZZZ </Para></Discussion></Parameter></Parameters></Function>] 37 // CHECK: FullCommentAsXML=[<Function isInstanceMethod="1" file="{{[^"]+}}overriding-method-comments.mm" line="[[@LINE-3]]" column="1"><Name>METH:</Name><USR>c:objc(cs)Root(im)METH:</USR><Declaration>- (void)METH:(id)III;</Declaration><Parameters><Parameter><Name>III</Name><Index>0</Index><Direction isExplicit="1">in</Direction><Discussion><Para> ZZZ </Para></Discussion></Parameter></Parameters></Function>] 51 // CHECK: FullCommentAsXML=[<Function isInstanceMethod="1" file="{{[^"]+}}overriding-method-comments.mm" line="[[@LINE-3]]" column="1"><Name>EXT_METH:::</Name><USR>c:objc(cs)Redec(im)EXT_METH:::</USR><Declaration>- (void)EXT_METH:(id)AAA:(double)BBB:(int)CCC;</Declaration><Parameters><Parameter><Name>AAA</Name><Index>0</Index><Direction isExplicit="1">in</Direction><Discussion><Para> input value </Para></Discussion></Parameter><Parameter><Name>BBB</Name><Index>1</Index><Direction isExplicit="1">in</Direction><Discussion><Para> 2nd input value is double </Para></Discussion></Parameter><Parameter><Name>CCC</Name><Index>2</Index><Direction isExplicit="1">out</Direction><Discussion><Para> output value is int </Para></Discussion></Parameter></Parameters></Function>] 57 // CHECK: FullCommentAsXML=[<Function isInstanceMethod="1" file="{{[^"]+}}overriding-method-comments.mm" line="[[@LINE-3]]" column="1"><Name>EXT_METH:::</Name><USR>c:objc(cs)Redec(im)EXT_METH:::</USR><Declaration>- (v (…) [all...] |
/external/valgrind/main/callgrind/docs/ |
cl-format.xml | 38 header line.</para> 40 <para>The "events" header line is always required in contrast to the optional 41 line for "positions", which defaults to "line", i.e. a line number of some 69 position. As there is no line specifying the value of "positions", it defaults 70 to "line", which means that the first number of a cost line is always a line 73 <para>Thus, the first cost line specifies that in line 15 of source fil [all...] |
/external/icu4c/tools/genrb/ |
parse.cpp | 59 uint32_t line; member in struct:Lookahead 72 "<end of line>" 128 state->lookahead[i].type = getNextToken(state->buffer, &state->lookahead[i].value, &state->lookahead[i].line, &state->lookahead[i].comment, status); 165 *linenumber = state->lookahead[state->lookaheadPosition].line; 177 state->lookahead[i].type = getNextToken(state->buffer, &state->lookahead[i].value, &state->lookahead[i].line, &state->lookahead[i].comment, status); 207 *linenumber = state->lookahead[i].line; 220 uint32_t line; local 222 enum ETokenType token = getToken(state, tokenValue, comment, &line, status); 226 *linenumber = line; 237 error(line, "expecting %s, got %s", tokenNames[expectedToken], tokenNames[token]) 285 uint32_t line; local 429 uint32_t line; local 505 uint32_t line; local 836 uint32_t line; local 1039 uint32_t line; local 1161 uint32_t line; local 1454 uint32_t line; local 1585 uint32_t line; local 1699 uint32_t line; local 1876 uint32_t line=0; local 1921 uint32_t line; local 2048 uint32_t line; local [all...] |
/external/clang/test/Analysis/diagnostics/ |
undef-value-param.m | 90 // CHECK-NEXT: <key>line</key><integer>35</integer> 95 // CHECK-NEXT: <key>line</key><integer>35</integer> 103 // CHECK-NEXT: <key>line</key><integer>36</integer> 108 // CHECK-NEXT: <key>line</key><integer>36</integer> 120 // CHECK-NEXT: <key>line</key><integer>36</integer> 128 // CHECK-NEXT: <key>line</key><integer>36</integer> 133 // CHECK-NEXT: <key>line</key><integer>36</integer> 149 // CHECK-NEXT: <key>line</key><integer>53</integer> 167 // CHECK-NEXT: <key>line</key><integer>53</integer> 172 // CHECK-NEXT: <key>line</key><integer>53</integer [all...] |
/external/antlr/antlr-3.4/runtime/CSharp2/Sources/Antlr3.Runtime/Antlr.Runtime/ |
ANTLRStringStream.cs | 56 /** <summary>line number 1..n within the input</summary> */ 57 int line = 1; field in class:Antlr.Runtime.ANTLRStringStream 59 /** <summary>The index of the character relative to the beginning of the line 0..n-1</summary> */ 67 * values line, charPositionInLine, and p that can change as you 122 public virtual int Line { 124 return line; 127 line = value; 147 line = 1; 158 System.out.println("newline char found on line: "+line [all...] |
/external/antlr/antlr-3.4/runtime/CSharp3/Sources/Antlr3.Runtime/ |
ANTLRStringStream.cs | 58 /** <summary>line number 1..n within the input</summary> */ 59 int line = 1; field in class:Antlr.Runtime.ANTLRStringStream 61 /** <summary>The index of the character relative to the beginning of the line 0..n-1</summary> */ 69 * values line, charPositionInLine, and p that can change as you 131 public virtual int Line 135 return line; 139 line = value; 163 line = 1; 177 System.out.println("newline char found on line: "+line [all...] |
/external/chromium_org/third_party/icu/source/tools/gennorm2/ |
gennorm2.cpp | 81 /* preset then read command line options */ 89 "error in command line argument \"%s\"\n", 189 char line[300]; local 191 while(NULL!=fgets(line, (int)sizeof(line), f)) { 192 char *comment=(char *)strchr(line, '#'); 196 u_rtrim(line); 197 if(line[0]==0) { 200 if(line[0]=='*') { 205 u_parseCodePointRangeAnyTerminator(line, &startCP, &endCP, &delimiter, errorCode) [all...] |
/external/chromium_org/tools/python/google/ |
process_utils.py | 46 line-buffered, converting line endings to CRLF (see note below). If 86 line = read_from.readline() 87 while line: 88 line = line.rstrip() 91 output.append(line) 101 print line + '\n', 106 line = read_from.readline() 120 line-buffered, converting line endings to CRLF. Waits for the command t [all...] |
/external/chromium_org/tools/valgrind/ |
scan-build.py | 17 # TODO(groby) - support multi-line search from the command line. Useful when 108 return any(tester(line) for line in log_lines) 150 for line in html: 151 if 'a href="builders/' in line: 152 if 'td class="box"' in line: 153 last_builder = box_matcher.match(line).group(1) 156 result = build_matcher.match(line) 172 def __call__(self, line) [all...] |
/external/chromium_org/ui/views/controls/ |
styled_label.cc | 20 // Calculates the height of a line of text. Currently returns the height of 158 // The index of the line we're on. 159 int line = 0; local 160 // The x position (in pixels) of the line we're on, relative to content 170 // Don't put whitespace at beginning of a line with an exception for the 171 // first line (so the text's leading whitespace is respected). 172 if (x == 0 && line > 0) 201 // Nothing fits on this line. Start a new line. 202 // If x is 0, first line may have leading whitespace that doesn't fit in [all...] |
/external/icu4c/test/intltest/ |
ucaconf.cpp | 193 int32_t line = 0; local 212 line++; 218 errln("Error parsing line %ld (%s): %s\n", 219 (long)line, u_errorName(status), lineB); 225 logln("Skipping line %i because of a known bug", line); 237 errln("Compare result not symmetrical on line %i", line); 241 errln("Difference between coll->compare (%d) and sortkey compare (%d) on line %i", 242 cmpres, skres, line); [all...] |
/external/chromium/base/ |
string_split.cc | 64 const std::string& line, 71 size_t end_key_pos = line.find_first_of(key_value_delimiter); 73 DVLOG(1) << "cannot parse key from line: " << line; 76 key->assign(line, 0, end_key_pos); 79 std::string remains(line, end_key_pos, line.size() - end_key_pos); 82 DVLOG(1) << "cannot parse value from line: " << line; 94 const std::string& line, [all...] |
/external/chromium_org/base/strings/ |
string_split.cc | 54 const std::string& line, 61 size_t end_key_pos = line.find_first_of(key_value_delimiter); 63 DVLOG(1) << "cannot parse key from line: " << line; 66 key->assign(line, 0, end_key_pos); 69 std::string remains(line, end_key_pos, line.size() - end_key_pos); 72 DVLOG(1) << "cannot parse value from line: " << line; 83 bool SplitStringIntoKeyValuePairs(const std::string& line, [all...] |
/external/chromium_org/third_party/mesa/src/src/gallium/auxiliary/draw/ |
draw_pipe_wide_line.c | 56 * Draw a wide line by drawing a quad (two triangles). 87 * Draw wide line as a quad (two tris) by "stretching" the line along 93 /* x-major line */ 100 /* left to right line */ 107 /* right to left line */ 116 /* y-major line */ 123 /* top to bottom line */ 130 /* bottom to top line */ 166 stage->line = wideline_line [all...] |
/external/chromium_org/tools/android/memdump/ |
memsymbols.py | 52 for line in memdump_contents: 53 line = line.rstrip('\r\n') 54 if line.startswith('[ PID'): 57 r = MAP_RX.match(line) 59 sys.stderr.write('Skipping %s from %s\n' % (line, memdump_file)) 133 for line in nm_fh: 134 line = line.rstrip('\r\n') 136 if line.startswith(' ') [all...] |
/external/eigen/Eigen/src/Geometry/ |
ParametrizedLine.h | 20 * \brief A parametrized line 22 * A parametrized line is defined by an origin point \f$ \mathbf{o} \f$ and a unit 23 * direction vector \f$ \mathbf{d} \f$ such that the line corresponds to 51 /** Constructs a dynamic-size line with \a _dim the dimension 55 /** Initializes a parametrized line of direction \a direction and origin \a origin. 64 /** Constructs a parametrized line going from \a p0 to \a p1. */ 70 /** \returns the dimension in which the line holds */ 79 /** \returns the squared distance of a point \a p to its projection onto the line \c *this. 87 /** \returns the distance of a point \a p to its projection onto the line \c *this. 92 /** \returns the projection of a point \a p onto the line \c *this. * [all...] |
/external/llvm/test/DebugInfo/X86/ |
union-template.ll | 35 !4 = metadata !{i32 786478, metadata !1, metadata !5, metadata !"g", metadata !"g", metadata !"_ZN7PR156371gEf", i32 3, metadata !6, i1 false, i1 true, i32 0, i32 0, null, i32 256, i1 false, void (float)* @_ZN7PR156371gEf, null, null, metadata !2, i32 3} ; [ DW_TAG_subprogram ] [line 3] [def] [g] 36 !5 = metadata !{i32 786489, metadata !1, null, metadata !"PR15637", i32 1} ; [ DW_TAG_namespace ] [PR15637] [line 1] 37 !6 = metadata !{i32 786453, i32 0, i32 0, metadata !"", i32 0, i64 0, i64 0, i64 0, i32 0, null, metadata !7, i32 0, i32 0} ; [ DW_TAG_subroutine_type ] [line 0, size 0, align 0, offset 0] [from ] 39 !8 = metadata !{i32 786468, null, null, metadata !"float", i32 0, i64 32, i64 32, i64 0, i32 0, i32 4} ; [ DW_TAG_base_type ] [float] [line 0, size 32, align 32, offset 0, enc DW_ATE_float] 41 !10 = metadata !{i32 786484, i32 0, metadata !5, metadata !"f", metadata !"f", metadata !"_ZN7PR156371fE", metadata !11, i32 6, metadata !12, i32 0, i32 1, %"union.PR15637::Value"* @_ZN7PR156371fE, null} ; [ DW_TAG_variable ] [f] [line 6] [def] 43 !12 = metadata !{i32 786455, metadata !1, metadata !5, metadata !"Value<float>", i32 2, i64 32, i64 32, i64 0, i32 0, null, metadata !13, i32 0, null, metadata !21} ; [ DW_TAG_union_type ] [Value<float>] [line 2, size 32, align 32, offset 0] [from ] 45 !14 = metadata !{i32 786445, metadata !1, metadata !12, metadata !"a", i32 2, i64 32, i64 32, i64 0, i32 0, metadata !15} ; [ DW_TAG_member ] [a] [line 2, size 32, align 32, offset 0] [from int] 46 !15 = metadata !{i32 786468, null, null, metadata !"int", i32 0, i64 32, i64 32, i64 0, i32 0, i32 5} ; [ DW_TAG_base_type ] [int] [line 0, size 32, align 32, offset 0, enc DW_ATE_signed] 47 !16 = metadata !{i32 786478, metadata !1, metadata !12, metadata !"Value", metadata !"Value", metadata !"", i32 2, metadata !17, i1 false, i1 false, i32 0, i32 0, null, i32 320, i1 false, null, null, i32 0, metadata !20, i32 2} ; [ DW_TAG_subprogram ] [line 2] [Value] 48 !17 = metadata !{i32 786453, i32 0, i32 0, metadata !"", i32 0, i64 0, i64 0, i64 0, i32 0, null, metadata !18, i32 0, i32 0} ; [ DW_TAG_subroutine_type ] [line 0, size 0, align 0, offset 0] [from [all...] |