genericservices/s60compatibilityheaders/commonengine/src/commonphoneparser.cpp
changeset 0 e4d67989cc36
equal deleted inserted replaced
-1:000000000000 0:e4d67989cc36
       
     1 // Copyright (c) 2002-2009 Nokia Corporation and/or its subsidiary(-ies).
       
     2 // All rights reserved.
       
     3 // This component and the accompanying materials are made available
       
     4 // under the terms of "Eclipse Public License v1.0"
       
     5 // which accompanies this distribution, and is available
       
     6 // at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     7 //
       
     8 // Initial Contributors:
       
     9 // Nokia Corporation - initial contribution.
       
    10 //
       
    11 // Contributors:
       
    12 //
       
    13 // Description:
       
    14 //
       
    15 
       
    16 
       
    17 
       
    18 // INCLUDE FILES
       
    19 #include <tulphonenumberutils.h>
       
    20 #include "commonphoneparser.h"
       
    21 
       
    22 EXPORT_C TBool CommonPhoneParser::ParsePhoneNumber( TDes& aNumber, TInt aType )
       
    23 	{ return TulPhoneNumberUtils::Normalize(aNumber, static_cast<TulPhoneNumberUtils::TPhoneNumberType>(aType)); }
       
    24 	
       
    25 EXPORT_C TBool CommonPhoneParser::IsValidPhoneNumber( const TDesC& aNumber, TInt aType )
       
    26 	{ return TulPhoneNumberUtils::IsValid(aNumber, static_cast<TulPhoneNumberUtils::TPhoneNumberType>(aType)); }
       
    27 
       
    28 
       
    29 //  End of File