Public Member Functions | Data Fields

Text_Diff_Renderer_unified Class Reference

Inheritance diagram for Text_Diff_Renderer_unified:
Collaboration diagram for Text_Diff_Renderer_unified:

Public Member Functions

 _blockHeader ($xbeg, $xlen, $ybeg, $ylen)
 _added ($lines)
 _deleted ($lines)
 _changed ($orig, $final)

Data Fields

 $_leading_context_lines = 4
 Number of leading context "lines" to preserve.
 $_trailing_context_lines = 4
 Number of trailing context "lines" to preserve.

Detailed Description

Definition at line 11 of file unified.php.


Member Function Documentation

Text_Diff_Renderer_unified::_added ( lines  ) 

Reimplemented from Text_Diff_Renderer.

Definition at line 34 of file unified.php.

References Text_Diff_Renderer::_lines().

Referenced by _changed().

    {
        return $this->_lines($lines, '+');
    }

Here is the call graph for this function:

Here is the caller graph for this function:

Text_Diff_Renderer_unified::_blockHeader ( xbeg,
xlen,
ybeg,
ylen 
)

Reimplemented from Text_Diff_Renderer.

Definition at line 23 of file unified.php.

    {
        if ($xlen != 1) {
            $xbeg .= ',' . $xlen;
        }
        if ($ylen != 1) {
            $ybeg .= ',' . $ylen;
        }
        return "@@ -$xbeg +$ybeg @@";
    }

Text_Diff_Renderer_unified::_changed ( orig,
final 
)

Reimplemented from Text_Diff_Renderer.

Definition at line 44 of file unified.php.

References _added(), and _deleted().

    {
        return $this->_deleted($orig) . $this->_added($final);
    }

Here is the call graph for this function:

Text_Diff_Renderer_unified::_deleted ( lines  ) 

Reimplemented from Text_Diff_Renderer.

Definition at line 39 of file unified.php.

References Text_Diff_Renderer::_lines().

Referenced by _changed().

    {
        return $this->_lines($lines, '-');
    }

Here is the call graph for this function:

Here is the caller graph for this function:


Field Documentation

Text_Diff_Renderer_unified::$_leading_context_lines = 4

Number of leading context "lines" to preserve.

Reimplemented from Text_Diff_Renderer.

Definition at line 16 of file unified.php.

Text_Diff_Renderer_unified::$_trailing_context_lines = 4

Number of trailing context "lines" to preserve.

Reimplemented from Text_Diff_Renderer.

Definition at line 21 of file unified.php.


The documentation for this class was generated from the following file: