Document: ezcDocumentPdfLiteralTokenizer
[ ]
[ Conversion ] [ Styles ]
[ ]
[ ]
[ ]
[ ]
Class: ezcDocumentPdfLiteralTokenizer
|
Tokenizer implementation for literal blocks, preserving whitespaces. [
source]
Parents
ezcDocumentPdfTokenizer
|
--ezcDocumentPdfLiteralTokenizer
Inherited Constants
From
ezcDocumentPdfTokenizer:
Method Summary
|
protected string |
convertTabs(
$string, [$tabwidth = 8], [$offset = 0] )
Convert tabs to spaces. |
|
public array |
tokenize(
$string )
Split string into words. |
Inherited Methods
From
ezcDocumentPdfTokenizer :
Methods
convertTabs
string convertTabs(
string
$string, [int
$tabwidth = 8], [int
$offset = 0] )
Convert tabs to spaces.
Convert all tabs to spaces, using a 8 spaces for a tab.
Parameters
| Name |
Type |
Description |
$string |
string |
|
$tabwidth |
int |
|
$offset |
int |
|
tokenize
array tokenize(
string
$string )
Split string into words.
This function takes a string and splits it into words. There are different mechanisms which indicate possible splitting points in the resulting word stream:
- self:SPACE: The renderer might render a space
- self:WRAP: The renderer might wrap the line at this position, but will
not render spaces.
A possible splitting of an english sentence might look like:
1. array(
2. 'Hello',
3. self:SPACE,
4. 'world!',
5. );
Non breaking spaces should not be splitted into multiple words, so there will be no break applied.
Parameters
| Name |
Type |
Description |
$string |
string |
|
Redefinition of
Last updated: Mon, 21 Dec 2009