Appearance
Lines
php
final class KMark\LinesThe lines of a text and the place that is being read.
Source: src/Lines.php
Methods
__construct()
php
public function __construct(array $lines)split()
php
public static function split(string $text): arraySplits a text into lines: one kind of line break, and the tabs written as the spaces they stand for.
Returns list<string>
eof()
php
public function eof(): boolline()
php
public function line(int $ahead = 0): stringThe line at a place from here, or an empty string when there is none.
next()
php
public function next(): stringpeek()
php
public function peek(int $ahead = 0): stringskip()
php
public function skip(int $count = 1): void