WordPress at a glance
функция не описана

Text_Diff::lcs() public WP 1.0

Computes the length of the Longest Common Subsequence (LCS).

This is mostly for diagnostic purposes.

It's a method of the class: Text_Diff{}

Хуков нет.


Int. The length of the LCS.


$Text_Diff = new Text_Diff();

Код Text_Diff::lcs() WP 5.5.1

function lcs()
    $lcs = 0;
    foreach ($this->_edits as $edit) {
        if (is_a($edit, 'Text_Diff_Op_copy')) {
            $lcs += count($edit->orig);
    return $lcs;