def IsCppString(line):
 line = line.replace('\\\\', 'XX')
 return ((((line.count('"') - line.count('\\"')) - line.count('\'"\'')) & 1) == 1)

def IsCppString ( line ) : line = line . replace ( '\\\\' , 'XX' ) return ( ( ( ( line . count ( '"' ) - line . count ( '\\"' ) ) - line . count ( '\'"\'' ) ) & 1 ) == 1 )
does line terminate so .