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

Method skip_while

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

Source from the content-addressed store, hash-verified

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):
442 pos += way
443 return pos
444 def move_up(self):
445 if self.cur_line > 0:
446 self.cur_line -= 1

Callers 2

getsymbolMethod · 0.95
handle_edit_keysMethod · 0.95

Calls 1

issymbolMethod · 0.95

Tested by

no test coverage detected