web/lib/Zend/Pdf/StringParser.php
changeset 807 877f952ae2bd
parent 207 621fa6caec0c
child 1230 68c69c656a2c
equal deleted inserted replaced
805:5e7a0fedabdf 807:877f952ae2bd
    12  * obtain it through the world-wide-web, please send an email
    12  * obtain it through the world-wide-web, please send an email
    13  * to license@zend.com so we can send you a copy immediately.
    13  * to license@zend.com so we can send you a copy immediately.
    14  *
    14  *
    15  * @category   Zend
    15  * @category   Zend
    16  * @package    Zend_Pdf
    16  * @package    Zend_Pdf
    17  * @copyright  Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
    17  * @copyright  Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
    18  * @license    http://framework.zend.com/license/new-bsd     New BSD License
    18  * @license    http://framework.zend.com/license/new-bsd     New BSD License
    19  * @version    $Id: StringParser.php 22311 2010-05-27 12:57:37Z padraic $
    19  * @version    $Id: StringParser.php 24593 2012-01-05 20:35:02Z matthew $
    20  */
    20  */
    21 
    21 
    22 
    22 
    23 /** Internally used classes */
    23 /** Internally used classes */
    24 require_once 'Zend/Pdf/Element/Array.php';
    24 require_once 'Zend/Pdf/Element/Array.php';
    36 
    36 
    37 /**
    37 /**
    38  * PDF string parser
    38  * PDF string parser
    39  *
    39  *
    40  * @package    Zend_Pdf
    40  * @package    Zend_Pdf
    41  * @copyright  Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
    41  * @copyright  Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
    42  * @license    http://framework.zend.com/license/new-bsd     New BSD License
    42  * @license    http://framework.zend.com/license/new-bsd     New BSD License
    43  */
    43  */
    44 class Zend_Pdf_StringParser
    44 class Zend_Pdf_StringParser
    45 {
    45 {
    46     /**
    46     /**
   270             } else {
   270             } else {
   271                 $compare = "()<>[]{}/%\x00\t\n\r ";
   271                 $compare = "()<>[]{}/%\x00\t\n\r ";
   272             }
   272             }
   273 
   273 
   274             $this->offset += strcspn($this->data, $compare, $this->offset);
   274             $this->offset += strcspn($this->data, $compare, $this->offset);
   275  
   275 
   276             return substr($this->data, $start, $this->offset - $start);
   276             return substr($this->data, $start, $this->offset - $start);
   277         }
   277         }
   278     }
   278     }
   279 
   279 
   280 
   280