Update contrib.
2 * Copyright (c) 2006-2009 Nokia Corporation and/or its subsidiary(-ies).
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".
9 * Initial Contributors:
10 * Nokia Corporation - initial contribution.
15 * Name : localetlsinfo.h
17 * Contains the class declartion for locale related functions
19 * This material, including documentation and any related
20 * computer programs, is protected by copyright controlled by
21 * Nokia Corporation. All rights are reserved. Copying,
22 * including reproducing, storing, adapting or translating, any
23 * or all of this material requires the prior written consent of
24 * Nokia Corporation. This material also contains confidential
25 * information which may not be disclosed to others without the
26 * prior written consent of Nokia Corporation.
32 #ifndef _LOCALETLSINFO_H_
33 #define _LOCALETLSINFO_H_
39 #define LANG_VARIANT_DLL_NAME 10
40 #ifdef SYMBIAN_DISTINCT_LOCALE_MODEL
41 #define NEW_LANG_VARIANT_DLL_NAME 30
50 CLocale *_s_iNewLocale;
51 lc_monetary_T*_s_iMonetary_locale;
52 lc_numeric_T * _s_iNumeric_locale;
53 lc_time_T * _s_iTime_locale;
55 TText8 *_s_numericLocale;
56 TText8 *_s_monetaryLocale;
57 TText8 *_s_timeLocale;
59 TBuf<LANG_VARIANT_DLL_NAME> _s_DllName;
60 #ifdef SYMBIAN_DISTINCT_LOCALE_MODEL
61 TBuf<NEW_LANG_VARIANT_DLL_NAME> _s_ColDllName;
63 /*******************************************************************
64 Overloading new and delete operators so that they will
65 allocate and deallocare memory from/to the private heap of backend
66 ********************************************************************/
67 inline TAny* operator new(TUint aSize, TAny* aBase) __NO_THROW
69 Mem::FillZ(aBase, aSize); return aBase;
72 inline TAny* operator new(TUint aSize) __NO_THROW
74 return Backend()->Alloc(aSize);
77 inline TAny* operator new(TUint aSize, TLeave)
79 TAny* ptr = Backend()->Alloc(aSize);
82 User::Leave(KErrNoMemory);
87 inline TAny* operator new(TUint aSize, TUint aExtraSize) __NO_THROW
89 return Backend()->Alloc(aSize + aExtraSize);
92 inline TAny* operator new(TUint aSize, TLeave, TUint aExtraSize)
94 TAny* ptr = Backend()->Alloc(aSize + aExtraSize);
97 User::Leave(KErrNoMemory);
102 inline void operator delete(TAny *aPtr) __NO_THROW
104 Backend()->Free( aPtr );
108 typedef struct LocaleInfo _localeinfo;
110 #endif //_LOCALETLSINFO_H_