secureswitools/swisistools/source/sisxlibrary/sisexpression.cpp
branchRCL_3
changeset 62 5cc91383ab1e
parent 0 ba25891c3a9e
child 81 42552535c1ac
equal deleted inserted replaced
61:cd189dac02f7 62:5cc91383ab1e
     1 /*
     1 /*
     2 * Copyright (c) 2004-2009 Nokia Corporation and/or its subsidiary(-ies).
     2 * Copyright (c) 2004-2010 Nokia Corporation and/or its subsidiary(-ies).
     3 * All rights reserved.
     3 * All rights reserved.
     4 * This component and the accompanying materials are made available
     4 * This component and the accompanying materials are made available
     5 * under the terms of the License "Eclipse Public License v1.0"
     5 * under the terms of the License "Eclipse Public License v1.0"
     6 * which accompanies this distribution, and is available
     6 * which accompanies this distribution, and is available
     7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
     7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
   582 	if(aString.size() == 0)
   582 	if(aString.size() == 0)
   583 		{
   583 		{
   584 		return false;
   584 		return false;
   585 		}
   585 		}
   586 
   586 
   587 	std::wistringstream wStrStream(aString);
   587 	std::wistringstream wStrStream(aString.c_str());
   588 
   588 
   589 	if((wStrStream >> std::dec >> aDecimalValue) && wStrStream.eof())
   589 	if((wStrStream >> std::dec >> aDecimalValue) && wStrStream.eof())
   590 		{
   590 		{
   591 		return true;
   591 		return true;
   592 		}
   592 		}