= 48 /*'0'*/ && $nextCharCode <= 57 /*'9'*/ ) || ($nextCharCode >= 97 /*'a'*/ && $nextCharCode <= 102 /*'f'*/ ) || ($nextCharCode >= 65 /*'A'*/ && $nextCharCode <= 70 /*'F'*/ ) ) { $nextHexCode .= $inStr[$count]; } if (strlen($nextHexCode) == 2) { $outStr .= chr(intval($nextHexCode, 16)); $nextHexCode = ''; } } if ($nextHexCode != '') { // We have odd number of digits. // Final digit is assumed to be '0' $outStr .= chr(base_convert($nextHexCode . '0', 16, 10)); } return $outStr; } /** * Return object as string * * @param Zend_Pdf_Factory $factory * @return string */ public function toString($factory = null) { return '<' . self::escape((string)$this->value) . '>'; } }