diff -r c55016431358 -r 0a7b44b10206 symport/symutil/inc/utils.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/symport/symutil/inc/utils.h Thu Jun 25 15:59:54 2009 +0100 @@ -0,0 +1,40 @@ +// Copyright (c) 1997-2009 Nokia Corporation and/or its subsidiary(-ies). +// All rights reserved. +// This component and the accompanying materials are made available +// under the terms of the License "Symbian Foundation License v1.0" +// which accompanies this distribution, and is available +// at the URL "http://www.symbianfoundation.org/legal/sfl-v10.html". +// +// Initial Contributors: +// Nokia Corporation - initial contribution. +// +// Contributors: +// +// Description: +// + +#include +#include + +/** + * Creates a NULL terminated string from aSource and stores into aTarget. + */ +extern const TInt CreateNullTerminatedString(TDes8& aTarget, const TDesC8& aSource); + +/** + * Creates a NULL terminated string from aSource and stores into aTarget. + * The 16 to 8 bit conversion is performed via TDes16::Collapse + */ +extern const TInt CreateNullTerminatedString(TDes8& aTarget, const TDesC& aSource); + +/** + * Creates a NULL terminated string from aSource and stores into aTarget. + */ +extern const TInt CreateNullTerminatedString(TDes& aTarget, const TDesC& aSource); + + +extern const void TTime_to_time_t(TTime& aSource, time_t& aTarget) ; + +extern const void TTime_to_tm(TTime& aTime, struct tm& aTarget ) ; + +extern const void time_t_to_TTime(time_t& aSource, TTime& aTarget) ;