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

Method _parseStringComparison

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

Source from the content-addressed store, hash-verified

348
349 @staticmethod
350 def _parseStringComparison(line, pos1):
351 startPos = 0
352 pos = pos1
353 inString = False
354 while pos < len(line):
355 if inString:
356 if line[pos] == '\\':
357 pos += 1
358 elif line[pos] == '"':
359 inString = False
360 endPos = pos + 1
361 return startPos, endPos
362 elif line[pos] == '"':
363 startPos = pos
364 inString = True
365 pos += 1
366
367 return None
368
369 @staticmethod
370 def _compileVerifyTokenMatch(

Callers 2

_replaceCStringsMethod · 0.95

Calls

no outgoing calls

Tested by 1