MCPcopy Create free account
hub / github.com/PyMesh/PyMesh / SkipUntil

Function SkipUntil

tests/external/gmock-1.7.0/gtest/scripts/pump.py:270–278  ·  view source on GitHub ↗
(lines, pos, regex, token_type)

Source from the content-addressed store, hash-verified

268
269
270def SkipUntil(lines, pos, regex, token_type):
271 line = lines[pos.line][pos.column:]
272 m = re.search(regex, line)
273 if m:
274 return pos + m.start()
275 else:
276 print ('ERROR: %s expected on line %s after column %s.' %
277 (token_type, pos.line + 1, pos.column))
278 sys.exit(1)
279
280
281def ParseExpTokenInParens(lines, pos):

Callers 2

ParseFunction · 0.85
TokenizeLinesFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected