45 const size_t startPos =
m_pos;
46 const wxUniChar curCh =
curChar();
54 else if( curCh ==
')' )
59 else if( curCh ==
'*' )
64 else if( curCh ==
'/' )
69 else if( curCh ==
'=' )
74 else if( curCh ==
'<' )
81 else if( nextCh ==
'>' )
92 else if( curCh ==
'>' )
105 else if( curCh ==
'&' && nextCh ==
'&' )
111 else if( curCh ==
'|' && nextCh ==
'|' )
117 else if( curCh ==
'\'' )
119 wxString constString;
120 while(
m_it !=
m_expr.end() && nextCh !=
'\'' )
122 constString += nextCh;
134 else if( curCh ==
'+' && !wxIsdigit( nextCh ) )
139 else if( curCh ==
'-' && !wxIsdigit( nextCh ) )
144 else if( curCh ==
'+' || curCh ==
'-' || wxIsdigit( curCh ) )
146 wxString digitString = curCh;
147 while( wxIsdigit( nextCh ) )
149 digitString += nextCh;
154 digitString.ToLong( &value );
161 wxString identString = curCh;
162 while( wxIsalnum( nextCh ) )
164 identString += nextCh;
168 if( identString.IsSameAs( wxT(
"True" ),
false ) )
172 else if( identString.IsSameAs( wxT(
"False" ),
false ) )
176 else if( identString.IsSameAs( wxT(
"Div" ),
false ) )
180 else if( identString.IsSameAs( wxT(
"Mod" ),
false ) )
184 else if( identString.IsSameAs( wxT(
"And" ),
false ) )
188 else if( identString.IsSameAs( wxT(
"Or" ),
false ) )
192 else if( identString.IsSameAs( wxT(
"Xor" ),
false ) )
196 else if( identString.IsSameAs( wxT(
"Not" ),
false ) )
200 else if( identString.IsSameAs( wxT(
"Between" ),
false ) )
204 else if( identString.IsSameAs( wxT(
"Like" ),
false ) )