public static function EasyRdf_Parser_Turtle::isLanguageChar

@ignore

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

File

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

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 == '-';
}