You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* @license New BSD License http://www.opensource.org/licenses/bsd-license.php
39
-
* @version 1.1
40
-
* @link http://github.com/chrisboulton/php-diff
39
+
* @version 1.2
40
+
* @link https://github.com/JBlond/php-diff
41
41
*/
42
42
43
43
require_oncedirname(__FILE__).'/../Abstract.php';
@@ -60,8 +60,13 @@ class Diff_Renderer_Html_Array extends Diff_Renderer_Abstract
60
60
* From https://gist.github.com/stemar/8287074
61
61
* @param mixed $string The input string.
62
62
* @param mixed $replacement The replacement string.
63
-
* @param mixed $start If start is positive, the replacing will begin at the start'th offset into string. If start is negative, the replacing will begin at the start'th character from the end of string.
64
-
* @param mixed $length If given and is positive, it represents the length of the portion of string which is to be replaced. If it is negative, it represents the number of characters from the end of string at which to stop replacing. If it is not given, then it will default to strlen( string ); i.e. end the replacing at the end of string. Of course, if length is zero then this function will have the effect of inserting replacement into string at the given start offset.
63
+
* @param mixed $start If start is positive, the replacing will begin at the start'th offset into string.
64
+
* If start is negative, the replacing will begin at the start'th character from the end of string.
65
+
* @param mixed $length If given and is positive, it represents the length of the portion of string which is to
66
+
* be replaced. If it is negative, it represents the number of characters from the end of string at which to
67
+
* stop replacing. If it is not given, then it will default to strlen( string ); i.e. end the replacing at the
68
+
* end of string. Of course, if length is zero then this function will have the effect of inserting replacement
69
+
* into string at the given start offset.
65
70
* @return string|array The result string is returned. If string is an array then array is returned.
0 commit comments