protected function EasyRdf_Parser_Turtle::skipWSC

Skip through whitespace and comments @ignore

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

... See full list

File

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

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
        ->skipLine();
    }
    $c = $this
      ->read();
  }
  $this
    ->unread($c);
  return $c;
}