protected function EasyRdf_Parser_Turtle::read

Read a single character from the input buffer. Returns -1 when the end of the file is reached. @ignore

18 calls to EasyRdf_Parser_Turtle::read()
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::parseDirective in drupal/core/vendor/easyrdf/easyrdf/lib/EasyRdf/Parser/Turtle.php
Parse a directive [3] @ignore
EasyRdf_Parser_Turtle::parseImplicitBlank in drupal/core/vendor/easyrdf/easyrdf/lib/EasyRdf/Parser/Turtle.php
Parses a blankNodePropertyList [15]
EasyRdf_Parser_Turtle::parseLongString in drupal/core/vendor/easyrdf/easyrdf/lib/EasyRdf/Parser/Turtle.php
Parses a """long string""". This method assumes that the first three double quotes have already been parsed.
EasyRdf_Parser_Turtle::parseNodeID in drupal/core/vendor/easyrdf/easyrdf/lib/EasyRdf/Parser/Turtle.php
Parses a blank node ID, e.g: _:node1 @ignore

... See full list

File

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

Class

EasyRdf_Parser_Turtle
Class to parse Turtle with no external dependancies.

Code

protected function read() {
  if ($this->pos < $this->len) {
    $c = $this->data[$this->pos];
    $this->pos++;
    return $c;
  }
  else {
    return -1;
  }
}