You are here

protected function EasyRdf_Parser_Turtle::peek 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::peek()

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

6 calls to EasyRdf_Parser_Turtle::peek()
EasyRdf_Parser_Turtle::parseNumber in vendor/easyrdf/easyrdf/lib/EasyRdf/Parser/Turtle.php
Parses a numeric value, either of type integer, decimal or double @ignore
EasyRdf_Parser_Turtle::parseObject in vendor/easyrdf/easyrdf/lib/EasyRdf/Parser/Turtle.php
Parse a object [12] @ignore
EasyRdf_Parser_Turtle::parseQuotedLiteral in vendor/easyrdf/easyrdf/lib/EasyRdf/Parser/Turtle.php
Parses a quoted string, optionally followed by a language tag or datatype. @ignore
EasyRdf_Parser_Turtle::parseSubject in vendor/easyrdf/easyrdf/lib/EasyRdf/Parser/Turtle.php
Parse a subject [10] @ignore
EasyRdf_Parser_Turtle::parseTriples in vendor/easyrdf/easyrdf/lib/EasyRdf/Parser/Turtle.php
Parse triples [6] @ignore

... See full list

File

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

Class

EasyRdf_Parser_Turtle
Class to parse Turtle with no external dependancies.

Code

protected function peek() {
  if (!empty($this->data)) {
    return mb_substr($this->data, 0, 1, "UTF-8");
  }
  else {
    return -1;
  }
}