MCPcopy Index your code
hub / github.com/python/cpython / getwhile

Method getwhile

Lib/re/_parser.py:265–273  ·  view source on GitHub ↗
(self, n, charset)

Source from the content-addressed store, hash-verified

263 self.__next()
264 return this
265 def getwhile(self, n, charset):
266 result = ''
267 for _ in range(n):
268 c = self.next
269 if c not in charset:
270 break
271 result += c
272 self.__next()
273 return result
274 def getuntil(self, terminator, name):
275 result = ''
276 while True:

Callers 2

_class_escapeFunction · 0.80
_escapeFunction · 0.80

Calls 1

__nextMethod · 0.95

Tested by

no test coverage detected