protected function EasyRdf_Parser_Turtle::skipLine

Consumes characters from reader until the first EOL has been read. @ignore

1 call to EasyRdf_Parser_Turtle::skipLine()
EasyRdf_Parser_Turtle::skipWSC in drupal/core/vendor/easyrdf/easyrdf/lib/EasyRdf/Parser/Turtle.php
Skip through whitespace and comments @ignore

File

drupal/core/vendor/easyrdf/easyrdf/lib/EasyRdf/Parser/Turtle.php, line 998

Class

EasyRdf_Parser_Turtle
Class to parse Turtle with no external dependancies.

Code

protected function skipLine() {
  $c = $this
    ->read();
  while ($c != -1 && $c != "\r" && $c != "\n") {
    $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);
    }
  }
}