sl@0: /* sl@0: * Copyright (c) 2008-2009 Nokia Corporation and/or its subsidiary(-ies). sl@0: * All rights reserved. sl@0: * This component and the accompanying materials are made available sl@0: * under the terms of "Eclipse Public License v1.0" sl@0: * which accompanies this distribution, and is available sl@0: * at the URL "http://www.eclipse.org/legal/epl-v10.html". sl@0: * sl@0: * Initial Contributors: sl@0: * Nokia Corporation - initial contribution. sl@0: * sl@0: * Contributors: sl@0: * sl@0: * Description: sl@0: * Name : wsd_locales.h sl@0: * Part of : standard c++ library. sl@0: * sl@0: * sl@0: */ sl@0: sl@0: sl@0: sl@0: sl@0: #ifndef WSD_LOCALES_H_ sl@0: #define WSD_LOCALES_H_ sl@0: sl@0: //locale_impl.cpp - function static in _Locale_impl::Init::_M_count() sl@0: inline std::_Refcount_Base& get_Loc_init_S_count() sl@0: { sl@0: return *(get_libcpp_wsd()._Loc_init_S_count); sl@0: } sl@0: sl@0: //_locale.h sl@0: inline size_t& std::locale::id::get_locale_id_S_max() sl@0: { sl@0: return get_libcpp_wsd().locale_id_S_max; sl@0: } sl@0: sl@0: //locale.cpp - function static in _Stl_loc_get_index() sl@0: inline __stl_atomic_t& get_S_index() sl@0: { sl@0: return get_libcpp_wsd()._S_index; sl@0: } sl@0: sl@0: //locale.cpp - function static in _Stl_loc_get_index() sl@0: inline std::_STLP_STATIC_MUTEX& get_locale_Index_lock() sl@0: { sl@0: return get_libcpp_wsd().locale_Index_lock; sl@0: } sl@0: sl@0: //monetary.cpp - global variable sl@0: inline std::string& get_monetary_S_empty_string() sl@0: { sl@0: return get_libcpp_wsd().monetary_S_empty_string; sl@0: } sl@0: # ifndef _STLP_NO_WCHAR_T sl@0: //monetary.cpp - global variable sl@0: inline std::wstring& get_monetary_S_empty_wstring() sl@0: { sl@0: return get_libcpp_wsd().monetary_S_empty_wstring; sl@0: } sl@0: #endif //_STLP_NO_WCHAR_T sl@0: sl@0: //locale_impl.cpp - global sl@0: inline std::locale *get_Stl_classic_locale() sl@0: { sl@0: return get_libcpp_wsd()._Stl_classic_locale; sl@0: } sl@0: sl@0: //locale_impl.cpp - global sl@0: inline std::locale *get_Stl_global_locale() sl@0: { sl@0: return get_libcpp_wsd()._Stl_global_locale; sl@0: } sl@0: sl@0: //locale_impl.cpp - global sl@0: inline void set_Stl_classic_locale(std::locale *loc) sl@0: { sl@0: get_libcpp_wsd()._Stl_classic_locale = loc; sl@0: } sl@0: sl@0: //locale_impl.cpp - global sl@0: inline void set_Stl_global_locale(std::locale *loc) sl@0: { sl@0: get_libcpp_wsd()._Stl_global_locale = loc; sl@0: } sl@0: sl@0: //locale_catalog.cpp - global sl@0: inline std::_STLP_STATIC_MUTEX& sl@0: get_locale_catalog_category_hash_lock() sl@0: { sl@0: return get_libcpp_wsd().locale_catalog_category_hash_lock; sl@0: } sl@0: sl@0: sl@0: #endif /*WSD_LOCALES_H_*/