MCPcopy Create free account
hub / github.com/cppcheck-opensource/cppcheck / _isInString

Method _isInString

tools/matchcompiler.py:338–347  ·  view source on GitHub ↗
(line, pos1)

Source from the content-addressed store, hash-verified

336
337 @staticmethod
338 def _isInString(line, pos1):
339 pos = 0
340 inString = False
341 while pos != pos1:
342 if line[pos] == '\\':
343 pos += 1
344 elif line[pos] == '"':
345 inString = not inString
346 pos += 1
347 return inString
348
349 @staticmethod
350 def _parseStringComparison(line, pos1):

Callers 1

_replaceCStringsMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected