You are here

protected function EasyRdf_Parser_Turtle::skipWSC in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/easyrdf/easyrdf/lib/EasyRdf/Parser/Turtle.php \EasyRdf_Parser_Turtle::skipWSC()

Skip through whitespace and comments @ignore

9 calls to EasyRdf_Parser_Turtle::skipWSC()
EasyRdf_Parser_Turtle::parse in vendor/easyrdf/easyrdf/lib/EasyRdf/Parser/Turtle.php
Parse Turtle into an EasyRdf_Graph
EasyRdf_Parser_Turtle::parseBase in vendor/easyrdf/easyrdf/lib/EasyRdf/Parser/Turtle.php
Parse base [5] @ignore
EasyRdf_Parser_Turtle::parseCollection in vendor/easyrdf/easyrdf/lib/EasyRdf/Parser/Turtle.php
Parses a collection [16], e.g: ( item1 item2 item3 ) @ignore
EasyRdf_Parser_Turtle::parseImplicitBlank in vendor/easyrdf/easyrdf/lib/EasyRdf/Parser/Turtle.php
Parses a blankNodePropertyList [15]
EasyRdf_Parser_Turtle::parseObjectList in vendor/easyrdf/easyrdf/lib/EasyRdf/Parser/Turtle.php
Parse a objectList [8] @ignore

... See full list

File

vendor/easyrdf/easyrdf/lib/EasyRdf/Parser/Turtle.php, line 1114

Class

EasyRdf_Parser_Turtle
Class to parse Turtle with no external dependancies.

Code

protected function skipWSC() {
  $c = $this
    ->read();
  while (self::isWhitespace($c) || $c == '#') {
    if ($c == '#') {
      $this
        ->processComment();
    }
    $c = $this
      ->read();
  }
  $this
    ->unread($c);
  return $c;
}