• Home
  • Raw
  • Download

Lines Matching refs:j

49     def updatepos(self, i, j):  argument
50 if i >= j:
51 return j
53 nlines = rawdata.count("\n", i, j)
56 pos = rawdata.rindex("\n", i, j) # Should not fail
57 self.offset = j-(pos+1)
59 self.offset = self.offset + j-i
60 return j
77 j = i + 2
78 assert rawdata[i:j] == "<!", "unexpected call to parse_declaration"
79 if rawdata[j:j+1] == ">":
81 return j + 1
82 if rawdata[j:j+1] in ("-", ""):
88 if rawdata[j:j+2] == '--': #comment
91 elif rawdata[j] == '[': #marked section
98 decltype, j = self._scan_name(j, i)
99 if j < 0:
100 return j
103 while j < n:
104 c = rawdata[j]
107 data = rawdata[i+2:j]
116 return j + 1
118 m = _declstringlit_match(rawdata, j)
121 j = m.end()
123 name, j = self._scan_name(j, i)
125 j = j + 1
129 j = self._parse_doctype_subset(j + 1, i)
140 "unexpected %r char in declaration" % rawdata[j])
141 if j < 0:
142 return j
150 sectName, j = self._scan_name( i+3, i )
151 if j < 0:
152 return j
160 self.error('unknown status keyword %r in marked section' % rawdata[i+3:j])
164 j = match.start(0)
165 self.unknown_decl(rawdata[i+3: j])
177 j = match.start(0)
178 self.handle_comment(rawdata[i+4: j])
186 j = i
187 while j < n:
188 c = rawdata[j]
190 s = rawdata[j:j+2]
195 self.updatepos(declstartpos, j + 1)
197 if (j + 2) == n:
200 if (j + 4) > n:
203 if rawdata[j:j+4] == "<!--":
204 j = self.parse_comment(j, report=0)
205 if j < 0:
206 return j
208 name, j = self._scan_name(j + 2, declstartpos)
209 if j == -1:
212 self.updatepos(declstartpos, j + 2)
217 j = meth(j, declstartpos)
218 if j < 0:
219 return j
222 if (j + 1) == n:
225 s, j = self._scan_name(j + 1, declstartpos)
226 if j < 0:
227 return j
228 if rawdata[j] == ";":
229 j = j + 1
231 j = j + 1
232 while j < n and rawdata[j].isspace():
233 j = j + 1
234 if j < n:
235 if rawdata[j] == ">":
236 return j
237 self.updatepos(declstartpos, j)
242 j = j + 1
244 self.updatepos(declstartpos, j)
251 name, j = self._scan_name(i, declstartpos)
252 if j == -1:
256 if '>' in rawdata[j:]:
257 return rawdata.find(">", j) + 1
263 name, j = self._scan_name(i, declstartpos)
264 c = rawdata[j:j+1]
268 return j + 1
272 name, j = self._scan_name(j, declstartpos)
273 if j < 0:
274 return j
275 c = rawdata[j:j+1]
280 if ")" in rawdata[j:]:
281 j = rawdata.find(")", j) + 1
284 while rawdata[j:j+1].isspace():
285 j = j + 1
286 if not rawdata[j:]:
290 name, j = self._scan_name(j, declstartpos)
291 c = rawdata[j:j+1]
295 m = _declstringlit_match(rawdata, j)
297 j = m.end()
300 c = rawdata[j:j+1]
304 if rawdata[j:] == "#":
307 name, j = self._scan_name(j + 1, declstartpos)
308 if j < 0:
309 return j
310 c = rawdata[j:j+1]
315 return j + 1
319 name, j = self._scan_name(i, declstartpos)
320 if j < 0:
321 return j
324 c = rawdata[j:j+1]
329 return j + 1
331 m = _declstringlit_match(rawdata, j)
334 j = m.end()
336 name, j = self._scan_name(j, declstartpos)
337 if j < 0:
338 return j
344 j = i + 1
346 c = rawdata[j:j+1]
350 j = j + 1
354 j = i
355 name, j = self._scan_name(j, declstartpos)
356 if j < 0:
357 return j
359 c = self.rawdata[j:j+1]
363 m = _declstringlit_match(rawdata, j)
365 j = m.end()
369 return j + 1
371 name, j = self._scan_name(j, declstartpos)
372 if j < 0:
373 return j