Text_Diff_Op{}WP 1.0

This is an internal function for using it by WP core itself. It's 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.1.1

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;
    }

}