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

Method _parse_hexstring

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

Source from the content-addressed store, hash-verified

447 return i
448
449 def _parse_hexstring(self, s, i):
450 m = END_HEX_STRING.search(s, i)
451 if not m:
452 self._curtoken += s[i:]
453 return len(s)
454 j = m.start(0)
455 self._curtoken += s[i:j]
456 token = HEX_PAIR.sub(lambda m: chr(int(m.group(0), 16)),
457 SPC.sub('', self._curtoken))
458 self._add_token(token)
459 self._parse1 = self._parse_main
460 return j
461
462 def nexttoken(self):
463 while not self._tokens:

Callers

nothing calls this directly

Calls 5

_add_tokenMethod · 0.95
lenFunction · 0.85
searchMethod · 0.45
startMethod · 0.45
groupMethod · 0.45

Tested by

no test coverage detected