third_party/blink/tools/blinkpy/style/checkers/cpp.py
def check_for_unicode_replacement_characters(lines, error):
    """Logs an error for each line containing Unicode replacement characters.

    These indicate that either the file contained invalid UTF-8 (likely)
    or Unicode replacement characters (which it shouldn't).  Note that
    it's possible for this to throw off line numbering if the invalid
    UTF-8 occurred adjacent to a newline.

    Args:
      lines: An array of strings, each representing a line of the file.
      error: The function to call with any errors found.
    """
    for line_number, line in enumerate(lines):
        if u'\ufffd' in line:
            error(
                line_number, 'readability/utf8', 5,
                'Line contains invalid UTF-8 (or Unicode replacement character).'
            )
Logs an error for each line containing Unicode replacement characters.

    These indicate that either the file contained invalid UTF-8 (likely)
    or Unicode replacement characters (which it shouldn't).  Note that
    it's possible for this to throw off line numbering if the invalid
    UTF-8 occurred adjacent to a newline.

    Args:
      lines: An array of strings, each representing a line of the file.
      error: The function to call with any errors found.
    
Logs an error for each line containing Unicode replacement characters.
These indicate that either the file contained invalid UTF-8 (likely)
or Unicode replacement characters (which it shouldn't).  Note that
it's possible for this to throw off line numbering if the invalid
UTF-8 occurred adjacent to a newline.
Logs an error for each line containing Unicode replacement characters . These indicate that either the file contained invalid UTF - 8 ( likely ) or Unicode replacement characters ( which it shouldn ' t ) . Note that it ' s possible for this to throw off line numbering if the invalid UTF - 8 occurred adjacent to a newline .
def check_for_unicode_replacement_characters(lines, error):
    for line_number, line in enumerate(lines):
        if u'\ufffd' in line:
            error(
                line_number, 'readability/utf8', 5,
                'Line contains invalid UTF-8 (or Unicode replacement character).'
            )
def check_for_unicode_replacement_characters ( lines , error ) : for line_number , line in enumerate ( lines ) : if u'\ufffd' in line : error ( line_number , 'readability/utf8' , 5 , 'Line contains invalid UTF-8 (or Unicode replacement character).' )
Logs an error for each line containing Unicode replacement characters.
Logs an error for each line containing Unicode replacement characters .
"""Logs an error for each line containing Unicode replacement characters.

    These indicate that either the file contained invalid UTF-8 (likely)
    or Unicode replacement characters (which it shouldn't).  Note that
    it's possible for this to throw off line numbering if the invalid
    UTF-8 occurred adjacent to a newline.

    Args:
      lines: An array of strings, each representing a line of the file.
      error: The function to call with any errors found.
    """
lines
An array of strings, each representing a line of the file.
An array of strings each representing a line of the file .
error
The function to call with any errors found.
The function to call with any errors found .