You are here

protected function EasyRdf_Parser_Turtle::readLocalEscapedChar in Zircon Profile 8.0

Same name and namespace in other branches
  1. 8 vendor/easyrdf/easyrdf/lib/EasyRdf/Parser/Turtle.php \EasyRdf_Parser_Turtle::readLocalEscapedChar()
1 call to EasyRdf_Parser_Turtle::readLocalEscapedChar()
EasyRdf_Parser_Turtle::parseQNameOrBoolean in vendor/easyrdf/easyrdf/lib/EasyRdf/Parser/Turtle.php
Parses qnames and boolean values, which have equivalent starting characters. @ignore

File

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

Class

EasyRdf_Parser_Turtle
Class to parse Turtle with no external dependancies.

Code

protected function readLocalEscapedChar() {
  $c = $this
    ->read();
  if (self::isLocalEscapedChar($c)) {
    return $c;
  }
  else {
    throw new EasyRdf_Parser_Exception("found '" . $c . "', expected one of: " . implode(', ', self::$localEscapedChars), $this->line, $this->column);
  }
}