MCPcopy Create free account
hub / github.com/RetiredWizard/PyDOS / skip_until

Method skip_until

pye.py:434–438  ·  view source on GitHub ↗
(self, s, pos, zap, way)

Source from the content-addressed store, hash-verified

432 def issymbol(self, c, zap):
433 return c.isalpha() or c.isdigit() or c in zap
434 def skip_until(self, s, pos, zap, way):
435 stop = -1 if way < 0 else len(s)
436 while pos != stop and not self.issymbol(s[pos], zap):
437 pos += way
438 return pos
439 def skip_while(self, s, pos, zap, way):
440 stop = -1 if way < 0 else len(s)
441 while pos != stop and self.issymbol(s[pos], zap):

Callers 1

handle_edit_keysMethod · 0.95

Calls 1

issymbolMethod · 0.95

Tested by

no test coverage detected