third_party/blink/tools/blinkpy/style/checkers/cpp.py
def is_cpp_string(line):
    """Does line terminate so, that the next symbol is in string constant.

    This function does not consider single-line nor multi-line comments.

    Args:
      line: is a partial line of code starting from the 0..n.

    Returns:
      True, if next character appended to 'line' is inside a
      string constant.
    """

    line = line.replace(r'\\', 'XX')  # after this, \\" does not match to \"
    return (
        (line.count('"') - line.count(r'\"') - line.count("'\"'")) & 1) == 1
Does line terminate so, that the next symbol is in string constant.

    This function does not consider single-line nor multi-line comments.

    Args:
      line: is a partial line of code starting from the 0..n.

    Returns:
      True, if next character appended to 'line' is inside a
      string constant.
    
Does line terminate so, that the next symbol is in string constant.
This function does not consider single-line nor multi-line comments.
Does line terminate so that the next symbol is in string constant . This function does not consider single - line nor multi - line comments .
def is_cpp_string(line):
    line = line.replace(r'\\', 'XX')  
    return (
        (line.count('"') - line.count(r'\"') - line.count("'\"'")) & 1) == 1
def is_cpp_string ( line ) : line = line . replace ( r'\\' , 'XX' ) return ( ( line . count ( '"' ) - line . count ( r'\"' ) - line . count ( "'\"'" ) ) & 1 ) == 1
Does line terminate so, that the next symbol is in string constant.
Does line terminate so that the next symbol is in string constant .
"""Does line terminate so, that the next symbol is in string constant.

    This function does not consider single-line nor multi-line comments.

    Args:
      line: is a partial line of code starting from the 0..n.

    Returns:
      True, if next character appended to 'line' is inside a
      string constant.
    """ # after this, \\" does not match to \"
True, if next character appended to 'line' is inside a
string constant.
True if next character appended to ' line ' is inside a string constant .
line
None