Zend Framework
LICENSE
This source file is subject to the new BSD license that is bundled with this package in the file LICENSE.txt. It is also available through the world-wide-web at this URL: http://framework.zend.com/license/new-bsd If you did not receive a copy of the license and are unable to obtain it through the world-wide-web, please send an email to license@zend.com so we can send you a copy immediately.
STATE_SCAN = '0'
STATE_NEW_PARAGRAPH = '1'
STATE_NEWLINE = '2'
MATCH_ATTR_CLASSID = '\((?<attr_class>[a-zA-Z0-9_]+)?(?:\#(?<attr_id>[a-zA-Z0-9_]+))?\)'
MATCH_ATTR_STYLE = '\{(?<attr_style>[^\}\n]+)\}'
MATCH_ATTR_LANG = '\[(?<attr_lang>[a-zA-Z_]+)\]'
MATCH_ATTR_ALIGN = '(?<attr_align>\<\>?|\>|=)'
string $_buffer = ''
The buffer
Zend_Markup_Token $_current = ''
Current token
int $_pointer = '0'
Current pointer
array $_simpleTags = 'array'
Simple tag translation
array $_tokens = 'array'
Token array
Zend_Markup_TokenList $_tree = ''
Token tree
string $_value = ''
Source to tokenize
int $_valueLen = '0'
Length of the value
_createTree(
)
:
void
Create a tree from the tokenized text
_extractAttributes(
array $matches
)
:
array
Extract the attributes
_isStopper(
array $token, Zend_Markup_Token $current
)
:
bool
Check if a tag is a stopper
_tokenize(
)
:
array
Tokenize a textile string
parse(
string $value
)
:
array
Prepare the parsing of a Textile string, the real parsing is done in {@link _parse()}