MCPcopy Index your code
hub / github.com/clips/pattern / _parse_literal_hex

Method _parse_literal_hex

pattern/web/pdf/psparser.py:332–340  ·  view source on GitHub ↗
(self, s, i)

Source from the content-addressed store, hash-verified

330 return j
331
332 def _parse_literal_hex(self, s, i):
333 c = s[i]
334 if HEX.match(c) and len(self.hex) < 2:
335 self.hex += c
336 return i+1
337 if self.hex:
338 self._curtoken += chr(int(self.hex, 16))
339 self._parse1 = self._parse_literal
340 return i
341
342 def _parse_number(self, s, i):
343 m = END_NUMBER.search(s, i)

Callers

nothing calls this directly

Calls 2

lenFunction · 0.85
matchMethod · 0.45

Tested by

no test coverage detected