Text_Diff::countDeletedLines()
Returns the number of deleted (removed) lines in a given diff.
Метод класса: Text_Diff{}
Хуков нет.
Возвращает
int
. The number of deleted lines
Использование
$Text_Diff = new Text_Diff(); $Text_Diff->countDeletedLines();
Список изменений
С версии 1.1.0 | Введена. |
Код Text_Diff::countDeletedLines() Text Diff::countDeletedLines WP 6.6.2
function countDeletedLines() { $count = 0; foreach ($this->_edits as $edit) { if (is_a($edit, 'Text_Diff_Op_delete') || is_a($edit, 'Text_Diff_Op_change')) { $count += $edit->norig(); } } return $count; }