Lines Matching refs:match
125 match = interesting.search(rawdata, i)
126 if match: j = match.start()
133 if starttagopen.match(rawdata, i):
183 match = charref.match(rawdata, i)
184 if match:
185 name = match.group(1)
187 i = match.end(0)
190 match = entityref.match(rawdata, i)
191 if match:
192 name = match.group(1)
194 i = match.end(0)
201 match = incomplete.match(rawdata, i)
202 if not match:
206 j = match.end(0)
226 match = piclose.search(rawdata, i+2)
227 if not match:
229 j = match.start(0)
231 j = match.end(0)
242 if shorttagopen.match(rawdata, i):
247 match = shorttag.match(rawdata, i)
248 if not match:
250 tag, data = match.group(1, 2)
253 k = match.end(0)
255 self.__starttag_text = rawdata[start_pos:match.end(1) + 1]
261 match = endbracket.search(rawdata, i+1)
262 if not match:
264 j = match.start(0)
272 match = tagfind.match(rawdata, i+1)
273 if not match:
275 k = match.end(0)
279 match = attrfind.match(rawdata, k)
280 if not match: break
281 attrname, rest, attrvalue = match.group(1, 2, 3)
292 k = match.end(0)
300 def _convert_ref(self, match): argument
301 if match.group(2):
302 return self.convert_charref(match.group(2)) or \
303 '&#%s%s' % match.groups()[1:]
304 elif match.group(3):
305 return self.convert_entityref(match.group(1)) or \
306 '&%s;' % match.group(1)
308 return '&%s' % match.group(1)
313 match = endbracket.search(rawdata, i+1)
314 if not match:
316 j = match.start(0)