/*****************************************************************************
* expr_evaluator.cpp
*****************************************************************************
- * Copyright (C) 2004 VideoLAN
+ * Copyright (C) 2004 the VideoLAN team
* $Id$
*
* Authors: Cyril Deguet <asmax@via.ecp.fr>
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
- * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111, USA.
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301, USA.
*****************************************************************************/
#include "expr_evaluator.hpp"
{
// Skip white spaces
end = begin;
- while( pString[end] && pString[end] != ' ' )
+ while( pString[end] && pString[end] != ' ' && pString[end] != ')' )
{
end++;
}
// TODO compare to a set of operators
if( token == "not" || token == "or" || token == "and" )
{
- // Pop the operator stock while the operator has a higher
+ // Pop the operator stack while the operator has a higher
// precedence than the top of the stack
while( !opStack.empty() &&
hasPrecedency( token, opStack.back() ) )