MCPcopy Create free account
hub / github.com/RT-Thread/env-windows / parse_pi

Method parse_pi

tools/python-3.11.9-amd64/Lib/html/parser.py:288–297  ·  view source on GitHub ↗
(self, i)

Source from the content-addressed store, hash-verified

286
287 # Internal -- parse processing instr, return end or -1 if not terminated
288 def parse_pi(self, i):
289 rawdata = self.rawdata
290 assert rawdata[i:i+2] == '<?', 'unexpected call to parse_pi()'
291 match = piclose.search(rawdata, i+2) # >
292 if not match:
293 return -1
294 j = match.start()
295 self.handle_pi(rawdata[i+2: j])
296 j = match.end()
297 return j
298
299 # Internal -- handle starttag, return end or -1 if not terminated
300 def parse_starttag(self, i):

Callers 1

goaheadMethod · 0.95

Calls 4

handle_piMethod · 0.95
searchMethod · 0.45
startMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected