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

Method getsymbol

pye.py:425–431  ·  view source on GitHub ↗
(self, s, pos, zap)

Source from the content-addressed store, hash-verified

423 return res
424 del_all = False
425 def getsymbol(self, s, pos, zap):
426 if pos < len(s) and zap is not None:
427 start = self.skip_while(s, pos, zap, -1)
428 stop = self.skip_while(s, pos, zap, 1)
429 return s[start+1:stop]
430 else:
431 return ''
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):

Callers 1

line_editMethod · 0.95

Calls 1

skip_whileMethod · 0.95

Tested by

no test coverage detected