Indefero

Indefero Commit Details


Date:2012-05-03 18:01:33 (12 years 7 months ago)
Author:Thomas Keller
Branch:develop, release-1.3
Commit:dd2fa6f90290c91bda577fc7c2a9bfc1398edb7b
Parents: b6acf4c0e20738fd224ae28a392b029221c89f95
Message:Remove OS9 line ending support again, this was left out for a reason. Fix tests after issue 804 was fixed.

Changes:

File differences

src/IDF/FileUtil.php
147147
148148
149149
150
151
150152
151153
152154
......
155157
156158
157159
158
160
159161
160162
161163
* Splits a string into separate lines while retaining the individual
* line ending character for every line.
*
* OS 9 line endings are not supported.
*
* @param string content
* @param boolean if true, skip completely empty lines
* @return string
{
$last_off = 0;
$lines = array();
while (preg_match("/\r\n|\n|\r/", $content, $m, PREG_OFFSET_CAPTURE, $last_off)) {
while (preg_match("/\r\n|\n/", $content, $m, PREG_OFFSET_CAPTURE, $last_off)) {
$next_off = strlen($m[0][0]) + $m[0][1];
$line = substr($content, $last_off, $next_off - $last_off);
$last_off = $next_off;
test/data/IDF_DiffTest/test-02-svn-new-files-with-properties.expected
8080
8181
8282
83
8483
8584
8685
......
102101
103102
104103
105
104
0 => '',
1 => 11,
2 => '
',
),
),
),
),
),
);
);

Archive Download the corresponding diff file

Page rendered in 0.08675s using 14 queries.