symport/symutil/inc/utils.h
changeset 1 0a7b44b10206
child 2 806186ab5e14
equal deleted inserted replaced
0:c55016431358 1:0a7b44b10206
       
     1 // Copyright (c) 1997-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 the License "Symbian Foundation License v1.0"
       
     5 // which accompanies this distribution, and is available
       
     6 // at the URL "http://www.symbianfoundation.org/legal/sfl-v10.html".
       
     7 //
       
     8 // Initial Contributors:
       
     9 // Nokia Corporation - initial contribution.
       
    10 //
       
    11 // Contributors:
       
    12 //
       
    13 // Description:
       
    14 //
       
    15 
       
    16 #include <e32std.h>
       
    17 #include <time.h>
       
    18 
       
    19 /**
       
    20  * Creates a NULL terminated string from aSource and stores into aTarget.
       
    21  */
       
    22 extern const TInt CreateNullTerminatedString(TDes8& aTarget, const TDesC8& aSource);
       
    23 
       
    24 /**
       
    25  * Creates a NULL terminated string from aSource and stores into aTarget.
       
    26  * The 16 to 8 bit conversion is performed via TDes16::Collapse
       
    27  */
       
    28 extern const TInt CreateNullTerminatedString(TDes8& aTarget, const TDesC& aSource);
       
    29 
       
    30 /**
       
    31  * Creates a NULL terminated string from aSource and stores into aTarget.
       
    32  */
       
    33 extern const TInt CreateNullTerminatedString(TDes& aTarget, const TDesC& aSource);
       
    34 
       
    35 
       
    36 extern const void TTime_to_time_t(TTime& aSource, time_t& aTarget) ;
       
    37 
       
    38 extern const void TTime_to_tm(TTime& aTime, struct tm& aTarget ) ;
       
    39 
       
    40 extern const void time_t_to_TTime(time_t& aSource, TTime& aTarget) ;