epoc32/include/stdapis/stlportv5/wsd_locales.h
branchSymbian3
changeset 4 837f303aceeb
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/epoc32/include/stdapis/stlportv5/wsd_locales.h	Wed Mar 31 12:33:34 2010 +0100
     1.3 @@ -0,0 +1,96 @@
     1.4 +/*
     1.5 +* Copyright (c) 2008-2009 Nokia Corporation and/or its subsidiary(-ies).
     1.6 +* All rights reserved.
     1.7 +* This component and the accompanying materials are made available
     1.8 +* under the terms of "Eclipse Public License v1.0"
     1.9 +* which accompanies this distribution, and is available
    1.10 +* at the URL "http://www.eclipse.org/legal/epl-v10.html".
    1.11 +*
    1.12 +* Initial Contributors:
    1.13 +* Nokia Corporation - initial contribution.
    1.14 +*
    1.15 +* Contributors:
    1.16 +*
    1.17 +* Description:
    1.18 +* Name        : wsd_locales.h
    1.19 +* Part of     : standard c++ library.
    1.20 +* 
    1.21 +*
    1.22 +*/
    1.23 +
    1.24 +
    1.25 +
    1.26 +
    1.27 +#ifndef WSD_LOCALES_H_
    1.28 +#define WSD_LOCALES_H_
    1.29 +
    1.30 +//locale_impl.cpp  - function static in  _Locale_impl::Init::_M_count() 
    1.31 +inline std::_Refcount_Base& get_Loc_init_S_count()
    1.32 +	{
    1.33 +	return *(get_libcpp_wsd()._Loc_init_S_count);
    1.34 +	}
    1.35 +
    1.36 +//_locale.h
    1.37 +inline size_t& std::locale::id::get_locale_id_S_max()
    1.38 +	{
    1.39 +	return get_libcpp_wsd().locale_id_S_max;
    1.40 +	}
    1.41 +
    1.42 +//locale.cpp - function static in _Stl_loc_get_index()
    1.43 +inline __stl_atomic_t& get_S_index()
    1.44 +	{
    1.45 +	return get_libcpp_wsd()._S_index;
    1.46 +	}
    1.47 +
    1.48 +//locale.cpp - function static in _Stl_loc_get_index()
    1.49 +inline std::_STLP_STATIC_MUTEX& get_locale_Index_lock()
    1.50 +	{
    1.51 +	return get_libcpp_wsd().locale_Index_lock;
    1.52 +	}
    1.53 +
    1.54 +//monetary.cpp - global variable
    1.55 +inline std::string& get_monetary_S_empty_string()
    1.56 +	{
    1.57 +	return get_libcpp_wsd().monetary_S_empty_string;
    1.58 +	}
    1.59 +# ifndef _STLP_NO_WCHAR_T
    1.60 +//monetary.cpp - global variable
    1.61 +inline std::wstring& get_monetary_S_empty_wstring()
    1.62 +	{
    1.63 +	return get_libcpp_wsd().monetary_S_empty_wstring;
    1.64 +	}
    1.65 +#endif //_STLP_NO_WCHAR_T
    1.66 +
    1.67 +//locale_impl.cpp - global
    1.68 +inline std::locale *get_Stl_classic_locale()
    1.69 +	{
    1.70 +	return get_libcpp_wsd()._Stl_classic_locale;
    1.71 +	}
    1.72 +
    1.73 +//locale_impl.cpp - global
    1.74 +inline std::locale *get_Stl_global_locale()
    1.75 +	{
    1.76 +	return get_libcpp_wsd()._Stl_global_locale;
    1.77 +	}
    1.78 +
    1.79 +//locale_impl.cpp - global
    1.80 +inline void set_Stl_classic_locale(std::locale *loc)
    1.81 +	{
    1.82 +	get_libcpp_wsd()._Stl_classic_locale = loc;
    1.83 +	}
    1.84 +
    1.85 +//locale_impl.cpp - global
    1.86 +inline void set_Stl_global_locale(std::locale *loc)
    1.87 +	{
    1.88 +	get_libcpp_wsd()._Stl_global_locale = loc;
    1.89 +	}
    1.90 +
    1.91 +//locale_catalog.cpp - global
    1.92 +inline std::_STLP_STATIC_MUTEX& 
    1.93 +get_locale_catalog_category_hash_lock()
    1.94 +	{
    1.95 +	return get_libcpp_wsd().locale_catalog_category_hash_lock;
    1.96 +	}
    1.97 +
    1.98 +
    1.99 +#endif /*WSD_LOCALES_H_*/