Text_Diff_Op{}WP 1.0

Internal function — this function is designed to be used by the kernel itself. It is not recommended to use this function in your code.

No Hooks.

Usage

$Text_Diff_Op = new Text_Diff_Op();
// use class methods

Methods

  1. public nfinal()
  2. public norig()
  3. public reverse()

Notes

  • Package: Text_Diff

Text_Diff_Op{} code WP 6.5.2

class Text_Diff_Op {

    var $orig;
    var $final;

    function &reverse()
    {
        trigger_error('Abstract method', E_USER_ERROR);
    }

    function norig()
    {
        return $this->orig ? count($this->orig) : 0;
    }

    function nfinal()
    {
        return $this->final ? count($this->final) : 0;
    }

}