Class FineDiff
FineDiff class
TODO: Document
Copyright:
Copyright 2011 (c) Raymond Hill (http://raymondhill.net/blog/?p=441)
License: License (http://www.opensource.org/licenses/mit-license.php)
Located at x2engine/protected/components/FineDiff.php
License: License (http://www.opensource.org/licenses/mit-license.php)
Located at x2engine/protected/components/FineDiff.php
public
|
#
__construct( mixed $from_text = '', mixed $to_text = '', mixed $granularityStack = null )
Constructor ... The $granularityStack allows FineDiff to be configurable so that a particular stack tailored to the specific content of a document can be passed. |
public
|
|
public
|
|
public
|
|
public static
|
|
public static
|
|
public static
|
|
public static
|
|
public static
|
string |
paragraphDelimiters
|
"\n\r" |
#
Stock granularity stacks and delimiters |
string |
sentenceDelimiters
|
".\n\r" |
|
string |
wordDelimiters
|
" \t.\n\r" |
|
string |
characterDelimiters
|
"" |
public static
array
|
$paragraphGranularity | array(
FineDiff::paragraphDelimiters
) |
|
public static
array
|
$sentenceGranularity | array(
FineDiff::paragraphDelimiters,
FineDiff::sentenceDelimiters
) |
|
public static
array
|
$wordGranularity | array(
FineDiff::paragraphDelimiters,
FineDiff::sentenceDelimiters,
FineDiff::wordDelimiters
) |
|
public static
array
|
$characterGranularity | array(
FineDiff::paragraphDelimiters,
FineDiff::sentenceDelimiters,
FineDiff::wordDelimiters,
FineDiff::characterDelimiters
) |
|
public static
array
|
$textStack | array(
".",
" \t.\n\r",
""
) |