'Find next occurrence'

def __find_next(self, text, cursor):

    flags = (QTextDocument.FindCaseSensitively | QTextDocument.FindWholeWords)
    regexp = QRegExp(('\\b%s\\b' % QRegExp.escape(text)), Qt.CaseSensitive)
    cursor = self.document().find(regexp, cursor, flags)
    if (cursor.position() != self.__find_first_pos):
        return cursor
