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'
Details STATE_NEW_PARAGRAPH = '1'
Details STATE_NEWLINE = '2'
Details MATCH_ATTR_CLASSID = '\((?<attr_class>[a-zA-Z0-9_]+)?(?:\#(?<attr_id>[a-zA-Z0-9_]+))?\)'
Details MATCH_ATTR_STYLE = '\{(?<attr_style>[^\}\n]+)\}'
Details MATCH_ATTR_LANG = '\[(?<attr_lang>[a-zA-Z_]+)\]'
Details MATCH_ATTR_ALIGN = '(?<attr_align>\<\>?|\>|=)'
Detailsstring $_buffer = ''The buffer
DetailsZend_Markup_Token $_current = ''Current token
Detailsint $_pointer = '0'Current pointer
Detailsarray $_simpleTags = 'array'Simple tag translation
Detailsarray $_tokens = 'array'Token array
DetailsZend_Markup_TokenList $_tree = ''Token tree
Detailsstring $_value = ''Source to tokenize
Detailsint $_valueLen = '0'Length of the value
Details_createTree(
)
:
voidCreate a tree from the tokenized text
Details_extractAttributes(
array $matches
)
:
arrayExtract the attributes
Details_isStopper(
array $token, Zend_Markup_Token $current
)
:
boolCheck if a tag is a stopper
Details_tokenize(
)
:
arrayTokenize a textile string
Detailsparse(
string $value
)
:
arrayPrepare the parsing of a Textile string, the real parsing is done in {@link _parse()}
Details