41 const size_t startPos =
m_pos;
42 const wxUniChar curCh =
curChar();
50 else if( curCh ==
')' )
55 else if( curCh ==
'*' )
60 else if( curCh ==
'/' )
65 else if( curCh ==
'=' )
70 else if( curCh ==
'<' )
77 else if( nextCh ==
'>' )
88 else if( curCh ==
'>' )
101 else if( curCh ==
'&' && nextCh ==
'&' )
107 else if( curCh ==
'|' && nextCh ==
'|' )
113 else if( curCh ==
'\'' )
115 wxString constString;
116 while(
m_it !=
m_expr.end() && nextCh !=
'\'' )
118 constString += nextCh;
130 else if( curCh ==
'+' && !wxIsdigit( nextCh ) )
135 else if( curCh ==
'-' && !wxIsdigit( nextCh ) )
140 else if( curCh ==
'+' || curCh ==
'-' || wxIsdigit( curCh ) )
142 wxString digitString = curCh;
143 while( wxIsdigit( nextCh ) )
145 digitString += nextCh;
150 digitString.ToLong( &value );
157 wxString identString = curCh;
158 while( wxIsalnum( nextCh ) )
160 identString += nextCh;
164 if( identString.IsSameAs( wxT(
"True" ),
false ) )
168 else if( identString.IsSameAs( wxT(
"False" ),
false ) )
172 else if( identString.IsSameAs( wxT(
"Div" ),
false ) )
176 else if( identString.IsSameAs( wxT(
"Mod" ),
false ) )
180 else if( identString.IsSameAs( wxT(
"And" ),
false ) )
184 else if( identString.IsSameAs( wxT(
"Or" ),
false ) )
188 else if( identString.IsSameAs( wxT(
"Xor" ),
false ) )
192 else if( identString.IsSameAs( wxT(
"Not" ),
false ) )
196 else if( identString.IsSameAs( wxT(
"Between" ),
false ) )
200 else if( identString.IsSameAs( wxT(
"Like" ),
false ) )