Update contrib.
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 "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".
8 // Initial Contributors:
9 // Nokia Corporation - initial contribution.
14 // STDIO functions implemented over EPOC32
22 #define UNUSED_VAR(a) a = a
25 int e32cvt (char *buf, int buflen, double d, int width, int prec, int /*flags*/, int fchar)
27 TPtr8 res((TText8*)buf, buflen);
29 TBool capitalE=EFalse;
37 capitalE=ETrue; // and fallthrough
43 capitalE=ETrue; // and fallthrough
50 // construct a format string for use with TDes::Format - we can't use the
51 // VFPRINTF original because it doesn't quite match and it might involve '*'
52 // to read field widths from VFPRINTF arguments.
64 TRAPD(r,res.Format(fmt,d));
68 TInt pos=res.Locate('e');
69 if (pos!=KErrNotFound)