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
Details ST_SYNT_LEXEME = '1'
Details ST_LEXEME = '2'
Details ST_QUOTED_LEXEME = '3'
Details ST_ESCAPED_CHAR = '4'
Details ST_ESCAPED_QCHAR = '5'
Details ST_LEXEME_MODIFIER = '6'
Details ST_NUMBER = '7'
Details ST_MANTISSA = '8'
Details ST_ERROR = '9'
Details IN_WHITE_SPACE = '0'
Input symbols
Details IN_SYNT_CHAR = '1'
Details IN_LEXEME_MODIFIER = '2'
Details IN_ESCAPE_CHAR = '3'
Details IN_QUOTE = '4'
Details IN_DECIMAL_POINT = '5'
Details IN_ASCII_DIGIT = '6'
Details IN_CHAR = '7'
Details IN_MUTABLE_CHAR = '8'
Details QUERY_WHITE_SPACE_CHARS = ' \n\r\t'
Details QUERY_SYNT_CHARS = ':()[]{}!|&'
Details QUERY_MUTABLE_CHARS = '+-'
Details QUERY_DOUBLECHARLEXEME_CHARS = '|&'
Details QUERY_LEXEMEMODIFIER_CHARS = '~^'
Details QUERY_ASCIIDIGITS_CHARS = '0123456789'
Detailsstring $_currentLexeme = ''Recognized part of current lexeme
Detailsarray $_lexemes = ''List of recognized lexemes
Detailsarray $_queryString = ''Query string (array of single- or non single-byte characters)
Detailsinteger $_queryStringPosition = ''Current position within a query string Used to create appropriate error messages
Details__construct(
)
:
Details_positionMsg(
)
:
stringPosition message
Details_translateInput(
string $char
)
:
integerTranslate input char to an input symbol of state machine
DetailsaddLexeme(
)
:
Add lexeme
DetailsaddLexemeChar(
)
:
Extend lexeme by one char
DetailsaddLexemeModifier(
)
:
Add lexeme modifier
DetailsaddNumberLexeme(
)
:
Add number lexeme
DetailsaddQuerySyntaxLexeme(
)
:
Add query syntax lexeme
DetailsaddQuotedLexeme(
)
:
Add quoted lexeme
DetailslexModifierErrException(
)
:
DetailsquoteWithinLexemeErrException(
)
:
Detailstokenize(
string $inputString, string $encoding
)
:
arrayThis method is used to tokenize query string into lexemes
DetailswrongNumberErrException(
)
:
Details