protected function EasyRdf_Parser_Turtle::processComment in Zircon Profile 8
Same name and namespace in other branches
- 8.0 vendor/easyrdf/easyrdf/lib/EasyRdf/Parser/Turtle.php \EasyRdf_Parser_Turtle::processComment()
Consumes characters from reader until the first EOL has been read. @ignore
1 call to EasyRdf_Parser_Turtle::processComment()
- EasyRdf_Parser_Turtle::skipWSC in vendor/
easyrdf/ easyrdf/ lib/ EasyRdf/ Parser/ Turtle.php - Skip through whitespace and comments @ignore
File
- vendor/
easyrdf/ easyrdf/ lib/ EasyRdf/ Parser/ Turtle.php, line 1133
Class
- EasyRdf_Parser_Turtle
- Class to parse Turtle with no external dependancies.
Code
protected function processComment() {
$comment = '';
$c = $this
->read();
while ($c != -1 && $c != "\r" && $c != "\n") {
$comment .= $c;
$c = $this
->read();
}
// c is equal to -1, \r or \n.
// In case c is equal to \r, we should also read a following \n.
if ($c == "\r") {
$c = $this
->read();
if ($c != "\n") {
$this
->unread($c);
}
}
}