MCPcopy Index your code
hub / github.com/sqlmapproject/sqlmap / parse_pi

Method parse_pi

lib/utils/sgmllib.py:234–244  ·  view source on GitHub ↗
(self, i)

Source from the content-addressed store, hash-verified

232
233 # Internal -- parse processing instr, return length or -1 if not terminated
234 def parse_pi(self, i):
235 rawdata = self.rawdata
236 if rawdata[i:i + 2] != '<?':
237 self.error('unexpected call to parse_pi()')
238 match = piclose.search(rawdata, i + 2)
239 if not match:
240 return -1
241 j = match.start(0)
242 self.handle_pi(rawdata[i + 2: j])
243 j = match.end(0)
244 return j - i
245
246 def get_starttag_text(self):
247 return self.__starttag_text

Callers 1

goaheadMethod · 0.95

Calls 4

errorMethod · 0.95
handle_piMethod · 0.95
startMethod · 0.80
searchMethod · 0.45

Tested by

no test coverage detected