def __parse_string(self):
        """Parse a string literal. The next character should be '\"'."""
        start_pos = self.__scanner.position

        c = self.__scanner.read_ubyte()
        if c != '"':
            return None

        length = 0
        while True:
            if length >= self.__scanner.bytes_remaining:
                self.__error("string literal not terminated")
      
            c = self.__scanner.peek_next_ubyte(offset=length)
            if c == '"':
                break
            
            length += 1
            
            if c == '\\':
                if self.__scanner.bytes_remaining >= length:
                    self.__error("incomplete backslash sequence")
                length += 1
            elif c == '\r' or c == '\n':
                self.__error("string literal not terminated before end of line")

        result = self.__scanner.read_ubytes(length)
        # Have to consume the quote mark
        self.__scanner.read_ubyte()

        return self.__process_escapes(result.decode("utf8"), start_pos + 1)
dataset/ETHPy150Open scalyr/scalyr-agent-2/scalyr_agent/json_lib/parser.py/JsonParser.__parse_string/swapped operands of `>=`