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

Method _parse_float

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

Source from the content-addressed store, hash-verified

359 return j
360
361 def _parse_float(self, s, i):
362 m = END_NUMBER.search(s, i)
363 if not m:
364 self._curtoken += s[i:]
365 return len(s)
366 j = m.start(0)
367 self._curtoken += s[i:j]
368 try:
369 self._add_token(float(self._curtoken))
370 except ValueError:
371 pass
372 self._parse1 = self._parse_main
373 return j
374
375 def _parse_keyword(self, s, i):
376 m = END_KEYWORD.search(s, i)

Callers

nothing calls this directly

Calls 4

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

Tested by

no test coverage detected