equal
deleted
inserted
replaced
1 /* |
1 /* |
2 * Copyright (c) 1997-2009 Nokia Corporation and/or its subsidiary(-ies). |
2 * Copyright (c) 1997-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". |
409 if (iToken==ALPHA_TOKEN) |
409 if (iToken==ALPHA_TOKEN) |
410 { |
410 { |
411 dialect = CSISLanguage::IdentifyLanguage (iTokenValue.pszString); |
411 dialect = CSISLanguage::IdentifyLanguage (iTokenValue.pszString); |
412 if (dialect == CSISLanguage::ELangNone) throw ErrUnknownLanguagesId; |
412 if (dialect == CSISLanguage::ELangNone) throw ErrUnknownLanguagesId; |
413 } |
413 } |
414 else if (iToken==NUMERIC_TOKEN && iTokenValue.dwNumber>=0 && iTokenValue.dwNumber<=1000) |
414 else if (iToken==NUMERIC_TOKEN && iTokenValue.dwNumber>=0 ) |
415 { |
415 { |
416 dialect = static_cast <CSISLanguage::TDialect> (iTokenValue.dwNumber); |
416 dialect = static_cast <CSISLanguage::TDialect> (iTokenValue.dwNumber); |
417 } |
417 } |
418 else |
418 else |
419 throw ErrUnknownLanguagesId; |
419 throw ErrUnknownLanguagesId; |