2 * Copyright (c) 2008-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 : wsd_locales.h
16 * Part of : standard c++ library.
24 #ifndef WSD_LOCALES_H_
25 #define WSD_LOCALES_H_
27 //locale_impl.cpp - function static in _Locale_impl::Init::_M_count()
28 inline std::_Refcount_Base& get_Loc_init_S_count()
30 return *(get_libcpp_wsd()._Loc_init_S_count);
34 inline size_t& std::locale::id::get_locale_id_S_max()
36 return get_libcpp_wsd().locale_id_S_max;
39 //locale.cpp - function static in _Stl_loc_get_index()
40 inline __stl_atomic_t& get_S_index()
42 return get_libcpp_wsd()._S_index;
45 //locale.cpp - function static in _Stl_loc_get_index()
46 inline std::_STLP_STATIC_MUTEX& get_locale_Index_lock()
48 return get_libcpp_wsd().locale_Index_lock;
51 //monetary.cpp - global variable
52 inline std::string& get_monetary_S_empty_string()
54 return get_libcpp_wsd().monetary_S_empty_string;
56 # ifndef _STLP_NO_WCHAR_T
57 //monetary.cpp - global variable
58 inline std::wstring& get_monetary_S_empty_wstring()
60 return get_libcpp_wsd().monetary_S_empty_wstring;
62 #endif //_STLP_NO_WCHAR_T
64 //locale_impl.cpp - global
65 inline std::locale *get_Stl_classic_locale()
67 return get_libcpp_wsd()._Stl_classic_locale;
70 //locale_impl.cpp - global
71 inline std::locale *get_Stl_global_locale()
73 return get_libcpp_wsd()._Stl_global_locale;
76 //locale_impl.cpp - global
77 inline void set_Stl_classic_locale(std::locale *loc)
79 get_libcpp_wsd()._Stl_classic_locale = loc;
82 //locale_impl.cpp - global
83 inline void set_Stl_global_locale(std::locale *loc)
85 get_libcpp_wsd()._Stl_global_locale = loc;
88 //locale_catalog.cpp - global
89 inline std::_STLP_STATIC_MUTEX&
90 get_locale_catalog_category_hash_lock()
92 return get_libcpp_wsd().locale_catalog_category_hash_lock;
96 #endif /*WSD_LOCALES_H_*/