protected function EasyRdf_Parser_Turtle::peek

Gets the next character to be returned by read() without removing it from the input buffer. @ignore

5 calls to EasyRdf_Parser_Turtle::peek()
EasyRdf_Parser_Turtle::parseObject in drupal/core/vendor/easyrdf/easyrdf/lib/EasyRdf/Parser/Turtle.php
Parse a object [12] @ignore
EasyRdf_Parser_Turtle::parseQuotedLiteral in drupal/core/vendor/easyrdf/easyrdf/lib/EasyRdf/Parser/Turtle.php
Parses a quoted string, optionally followed by a language tag or datatype.
EasyRdf_Parser_Turtle::parseStatement in drupal/core/vendor/easyrdf/easyrdf/lib/EasyRdf/Parser/Turtle.php
Parse a statement [2] @ignore
EasyRdf_Parser_Turtle::parseSubject in drupal/core/vendor/easyrdf/easyrdf/lib/EasyRdf/Parser/Turtle.php
Parse a subject [10] @ignore
EasyRdf_Parser_Turtle::parseValue in drupal/core/vendor/easyrdf/easyrdf/lib/EasyRdf/Parser/Turtle.php
Parses an RDF value. This method parses uriref, qname, node ID, quoted literal, integer, double and boolean. @ignore

File

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

Class

EasyRdf_Parser_Turtle
Class to parse Turtle with no external dependancies.

Code

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