Lines Matching refs:content

287         $content = substr($encoded, $encoded_pos, $length);
310 'content' => $content,
318 $temp = $this->_decode_ber($content, $start, $content_pos);
324 if (substr($content, $content_pos + $length, 2) == "\0\0") {
354 if ($constructed || strlen($content) != 1) {
357 $current['content'] = (bool) ord($content[$content_pos]);
364 $current['content'] = new BigInteger(substr($content, $content_pos), -256);
373 $current['content'] = substr($content, $content_pos);
375 $temp = $this->_decode_ber($content, $start, $content_pos);
379 $length-= (strlen($content) - $content_pos);
397 $current['content'] = substr($content, $content_pos);
401 while (substr($content, $content_pos, 2) != "\0\0") {
402 $temp = $this->_decode_ber($content, $length + $start, $content_pos);
414 if (substr($content, $content_pos, 2) == "\0\0") {
421 if ($constructed || strlen($content)) {
432 $content_len = strlen($content);
436 … if (!isset($current['headerlength']) && substr($content, $content_pos, 2) == "\0\0") {
440 $temp = $this->_decode_ber($content, $start + $offset, $content_pos);
453 $current['content'] = $this->_decodeOID(substr($content, $content_pos));
489 $current['content'] = substr($content, $content_pos);
496 $current['content'] = $this->_decodeTime(substr($content, $content_pos), $tag);
590 foreach ($decoded['content'] as $content) {
591 if (($map[] = $this->asn1map($content, $child, $special)) === null) {
662 foreach ($decoded['content'] as $content) {
663 if (($map[] = $this->asn1map($content, $child, $special)) === null) {
870 foreach ($source as $content) {
871 $temp = $this->_encode_der($content, $child, null, $special);
1144 * @param string $content
1147 function _decodeOID($content) argument
1156 $len = strlen($content);
1158 if (ord($content[$len - 1]) & 0x80) {
1164 $temp = ord($content[$pos++]);
1173 $first = floor(ord($content[0]) / 40);
1181 array_unshift($oid, ord($content[0]) % 40);
1251 * @param string $content
1255 function _decodeTime($content, $tag) argument
1271 if (preg_match('#^(\d{10})(Z|[+-]\d{4})$#', $content, $matches)) {
1272 $content = $matches[1] . '00' . $matches[2];
1274 $prefix = substr($content, 0, 2) >= 50 ? '19' : '20';
1275 $content = $prefix . $content;
1276 } elseif (strpos($content, '.') !== false) {
1280 if ($content[strlen($content) - 1] == 'Z') {
1281 $content = substr($content, 0, -1) . '+0000';
1284 if (strpos($content, '-') !== false || strpos($content, '+') !== false) {
1290 return @DateTime::createFromFormat($format, $content);