You are here

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

@ignore

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

Class

EasyRdf_Parser_Turtle
Class to parse Turtle with no external dependancies.

Code

public static function isPrefixChar($c) {
  $o = ord($c);
  return $c == '_' || $o >= 0x30 && $o <= 0x39 || self::isPrefixStartChar($c) || $c == '-' || $o == 0xb7 || $c >= 0x300 && $c <= 0x36f || $c >= 0x203f && $c <= 0x2040;
}