equal
deleted
inserted
replaced
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 } |