Text_Diff::isEmpty │ public │ WP 1.0

Checks for an empty diff.

Метод класса: Text_Diff{}

Хуков нет.

Возвращает

bool. True if two sequences were identical.

Использование

$Text_Diff = new Text_Diff();
$Text_Diff->isEmpty();

Код Text_Diff::isEmpty() WP 7.1.3

function isEmpty()
{
    foreach ($this->_edits as $edit) {
        if (!is_a($edit, 'Text_Diff_Op_copy')) {
            return false;
        }
    }
    return true;
}