protected function EasyRdf_Parser_Turtle::unread

Steps back, restoring the previous character read() to the input buffer @ignore

10 calls to EasyRdf_Parser_Turtle::unread()
EasyRdf_Parser_Turtle::parseImplicitBlank in drupal/core/vendor/easyrdf/easyrdf/lib/EasyRdf/Parser/Turtle.php
Parses a blankNodePropertyList [15]
EasyRdf_Parser_Turtle::parseNodeID in drupal/core/vendor/easyrdf/easyrdf/lib/EasyRdf/Parser/Turtle.php
Parses a blank node ID, e.g: _:node1 @ignore
EasyRdf_Parser_Turtle::parseNumber in drupal/core/vendor/easyrdf/easyrdf/lib/EasyRdf/Parser/Turtle.php
Parses a numeric value, either of type integer, decimal or double @ignore
EasyRdf_Parser_Turtle::parsePredicate in drupal/core/vendor/easyrdf/easyrdf/lib/EasyRdf/Parser/Turtle.php
Parse a predicate [11] @ignore
EasyRdf_Parser_Turtle::parsePrefixID in drupal/core/vendor/easyrdf/easyrdf/lib/EasyRdf/Parser/Turtle.php
Parse a prefixID [4] @ignore

... See full list

File

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

Class

EasyRdf_Parser_Turtle
Class to parse Turtle with no external dependancies.

Code

protected function unread() {
  if ($this->pos > 0) {
    $this->pos--;
  }
  else {
    throw new EasyRdf_Exception("Turtle Parse Error: unread error");
  }
}