예제 #1
0
 static function isIdentifier($c)
 {
     return com_wiris_util_xml_WCharacterBase::isLetter($c) || $c === 95;
 }
예제 #2
0
 public function decodeBooleanOrNull()
 {
     $sb = new StringBuf();
     while (com_wiris_util_xml_WCharacterBase::isLetter($this->c)) {
         $sb->b .= chr($this->c);
         $this->nextToken();
     }
     $word = $sb->b;
     if ($word === "true") {
         return true;
     } else {
         if ($word === "false") {
             return false;
         } else {
             if ($word === "null") {
                 return null;
             } else {
                 throw new HException("Unrecognized keyword \"" . $word . "\".");
             }
         }
     }
 }