You are here

public static function EasyRdf_Parser_Turtle::isLanguageChar 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::isLanguageChar()

@ignore

1 call to EasyRdf_Parser_Turtle::isLanguageChar()
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

File

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

Class

EasyRdf_Parser_Turtle
Class to parse Turtle with no external dependancies.

Code

public static function isLanguageChar($c) {
  $o = ord($c);
  return $o >= 0x41 && $o <= 0x5a || $o >= 0x61 && $o <= 0x7a || $o >= 0x30 && $o <= 0x39 || $c == '-';
}