Magento 2 Documentation
2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
|
Public Member Functions | |
cleanUp () | |
skipWhiteSpace ($skipComment=true) | |
skipComment () | |
readComment () | |
readLexeme () | |
readElement ($nextLexeme=null) | |
getObject ($offset, Zend_Pdf_Element_Reference_Context $context) | |
getLength () | |
getString () | |
setContext (Zend_Pdf_Element_Reference_Context $context) | |
__construct ($source, Zend_Pdf_ElementFactory_Interface $factory) | |
Static Public Member Functions | |
static | isWhiteSpace ($chCode) |
static | isDelimiter ($chCode) |
static | parseIntFromStream ($stream, $offset, $size) |
Data Fields | |
$data = '' | |
$offset = 0 | |
Definition at line 44 of file StringParser.php.
__construct | ( | $source, | |
Zend_Pdf_ElementFactory_Interface | $factory | ||
) |
Object constructor
Note: PHP duplicates string, which is sent by value, only of it's updated. Thus we don't need to care about overhead
string | $pdfString | |
Zend_Pdf_ElementFactory_Interface | $factory |
Definition at line 726 of file StringParser.php.
cleanUp | ( | ) |
Clean up resources.
Clear current state to remove cyclic object references
Definition at line 87 of file StringParser.php.
getLength | ( | ) |
getObject | ( | $offset, | |
Zend_Pdf_Element_Reference_Context | $context | ||
) |
Read inderect object from a PDF stream
integer | $offset | |
Zend_Pdf_Element_Reference_Context | $context |
Object is not generated by factory (thus it's not marked as modified object). But factory is assigned to the obect.
It's a stream object
References are automatically dereferenced at this moment.
'stream' keyword must be followed by either cr-lf sequence or lf character only. This restriction gives the possibility to recognize all cases exactly
Definition at line 546 of file StringParser.php.
getString | ( | ) |
|
static |
Character with code $chCode is a delimiter character
integer | $chCode |
Definition at line 122 of file StringParser.php.
|
static |
Character with code $chCode is white space
integer | $chCode |
Definition at line 100 of file StringParser.php.
|
static |
Parse integer value from a binary stream
string | $stream | |
integer | $offset | |
integer | $size |
Definition at line 694 of file StringParser.php.
readComment | ( | ) |
Read comment line
Check if it's a comment line
Definition at line 202 of file StringParser.php.
readElement | ( | $nextLexeme = null | ) |
Read elemental object from a PDF stream
Zend_Pdf_Exception |
Note: readElement() method is a public method and could be invoked from other classes. If readElement() is used not by Zend_Pdf_StringParser::getObject() method, then we should not care about _elements member management.
Definition at line 287 of file StringParser.php.
readLexeme | ( | ) |
Returns next lexeme from a pdf stream
Definition at line 230 of file StringParser.php.
setContext | ( | Zend_Pdf_Element_Reference_Context | $context | ) |
Set current context
Zend_Pdf_Element_Reference_Context | $context |
Definition at line 712 of file StringParser.php.
skipComment | ( | ) |
Skip comment
Definition at line 182 of file StringParser.php.
skipWhiteSpace | ( | $skipComment = true | ) |
Skip white space
boolean | $skipComment |
Original (non-optimized) implementation.
Definition at line 147 of file StringParser.php.
$data = '' |
Definition at line 51 of file StringParser.php.
$offset = 0 |
Definition at line 58 of file StringParser.php.