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.
ST_WHITE_SPACE = '0'
State Machine states
ST_SYNT_LEXEME = '1'
ST_LEXEME = '2'
ST_QUOTED_LEXEME = '3'
ST_ESCAPED_CHAR = '4'
ST_ESCAPED_QCHAR = '5'
ST_LEXEME_MODIFIER = '6'
ST_NUMBER = '7'
ST_MANTISSA = '8'
ST_ERROR = '9'
IN_WHITE_SPACE = '0'
Input symbols
IN_SYNT_CHAR = '1'
IN_LEXEME_MODIFIER = '2'
IN_ESCAPE_CHAR = '3'
IN_QUOTE = '4'
IN_DECIMAL_POINT = '5'
IN_ASCII_DIGIT = '6'
IN_CHAR = '7'
IN_MUTABLE_CHAR = '8'
QUERY_WHITE_SPACE_CHARS = ' \n\r\t'
QUERY_SYNT_CHARS = ':()[]{}!|&'
QUERY_MUTABLE_CHARS = '+-'
QUERY_DOUBLECHARLEXEME_CHARS = '|&'
QUERY_LEXEMEMODIFIER_CHARS = '~^'
QUERY_ASCIIDIGITS_CHARS = '0123456789'
string $_currentLexeme = ''
Recognized part of current lexeme
array $_lexemes = ''
List of recognized lexemes
array $_queryString = ''
Query string (array of single- or non single-byte characters)
integer $_queryStringPosition = ''
Current position within a query string Used to create appropriate error messages
__construct(
)
:
_positionMsg(
)
:
string
Position message
_translateInput(
string $char
)
:
integer
Translate input char to an input symbol of state machine
addLexeme(
)
:
Add lexeme
addLexemeChar(
)
:
Extend lexeme by one char
addLexemeModifier(
)
:
Add lexeme modifier
addNumberLexeme(
)
:
Add number lexeme
addQuerySyntaxLexeme(
)
:
Add query syntax lexeme
addQuotedLexeme(
)
:
Add quoted lexeme
lexModifierErrException(
)
:
quoteWithinLexemeErrException(
)
:
tokenize(
string $inputString, string $encoding
)
:
array
This method is used to tokenize query string into lexemes
wrongNumberErrException(
)
: