Lines Matching defs:first
189 * A negative $first let read the current revision too.
196 * @param int $first skip the first n changelog lines
203 public function getRevisions($first, $num)
217 if ($first < 0) {
218 $first = 0;
223 $first = max($first + 1, 0);
244 while ($count < $num + $first) {
286 $num = max(min(count($lines) - $first, $num), 0);
287 if ($first > 0 && $num > 0) {
288 $lines = array_slice($lines, max(count($lines) - $first - $num, 0), $num);
289 } elseif ($first > 0 && $num == 0) {
290 $lines = array_slice($lines, 0, max(count($lines) - $first, 0));
291 } elseif ($first == 0 && $num > 0) {
485 * - $head: position of first read changelog line