voipplugins/voipadapters/voipxmlprovisioning/voipxmlprocessor/src/voipxmlutils.cpp
changeset 2 7b872347d83b
equal deleted inserted replaced
1:bfb1de3eac8e 2:7b872347d83b
       
     1 /*
       
     2 * Copyright (c) 2009-2010 Nokia Corporation and/or its subsidiary(-ies).
       
     3 * All rights reserved.
       
     4 * This component and the accompanying materials are made available
       
     5 * under the terms of "Eclipse Public License v1.0"
       
     6 * which accompanies this distribution, and is available
       
     7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     8 *
       
     9 * Initial Contributors:
       
    10 * Nokia Corporation - initial contribution.
       
    11 *
       
    12 * Contributors:
       
    13 *
       
    14 * Description:  Utilities class for VoIP XML processor
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 //#include <e32base.h>
       
    20 #include "voipxmlutils.h"
       
    21 
       
    22 
       
    23 // ---------------------------------------------------------------------------
       
    24 // VoipXmlUtils::DesToInt()
       
    25 // ---------------------------------------------------------------------------
       
    26 //
       
    27 TInt VoipXmlUtils::DesToInt( const TDesC& aDesValue, TInt& aIntValue )
       
    28     {
       
    29     TLex lex( aDesValue );
       
    30     return lex.Val( aIntValue );
       
    31     }
       
    32 
       
    33 // ---------------------------------------------------------------------------
       
    34 // VoipXmlUtils::DesToInt()
       
    35 // ---------------------------------------------------------------------------
       
    36 //
       
    37 TInt VoipXmlUtils::Des8ToInt( const TDesC8& aDesValue, TInt& aIntValue )
       
    38     {
       
    39     TLex8 lex( aDesValue );
       
    40     return lex.Val( aIntValue );
       
    41     }
       
    42 
       
    43 // End of file.
       
    44