sl@0
|
1 |
/*
|
sl@0
|
2 |
* Copyright (c) 2008-2009 Nokia Corporation and/or its subsidiary(-ies).
|
sl@0
|
3 |
* All rights reserved.
|
sl@0
|
4 |
* This component and the accompanying materials are made available
|
sl@0
|
5 |
* under the terms of "Eclipse Public License v1.0"
|
sl@0
|
6 |
* which accompanies this distribution, and is available
|
sl@0
|
7 |
* at the URL "http://www.eclipse.org/legal/epl-v10.html".
|
sl@0
|
8 |
*
|
sl@0
|
9 |
* Initial Contributors:
|
sl@0
|
10 |
* Nokia Corporation - initial contribution.
|
sl@0
|
11 |
*
|
sl@0
|
12 |
* Contributors:
|
sl@0
|
13 |
*
|
sl@0
|
14 |
* Description:
|
sl@0
|
15 |
* Name : wsd_locales.h
|
sl@0
|
16 |
* Part of : standard c++ library.
|
sl@0
|
17 |
*
|
sl@0
|
18 |
*
|
sl@0
|
19 |
*/
|
sl@0
|
20 |
|
sl@0
|
21 |
|
sl@0
|
22 |
|
sl@0
|
23 |
|
sl@0
|
24 |
#ifndef WSD_LOCALES_H_
|
sl@0
|
25 |
#define WSD_LOCALES_H_
|
sl@0
|
26 |
|
sl@0
|
27 |
//locale_impl.cpp - function static in _Locale_impl::Init::_M_count()
|
sl@0
|
28 |
inline std::_Refcount_Base& get_Loc_init_S_count()
|
sl@0
|
29 |
{
|
sl@0
|
30 |
return *(get_libcpp_wsd()._Loc_init_S_count);
|
sl@0
|
31 |
}
|
sl@0
|
32 |
|
sl@0
|
33 |
//_locale.h
|
sl@0
|
34 |
inline size_t& std::locale::id::get_locale_id_S_max()
|
sl@0
|
35 |
{
|
sl@0
|
36 |
return get_libcpp_wsd().locale_id_S_max;
|
sl@0
|
37 |
}
|
sl@0
|
38 |
|
sl@0
|
39 |
//locale.cpp - function static in _Stl_loc_get_index()
|
sl@0
|
40 |
inline __stl_atomic_t& get_S_index()
|
sl@0
|
41 |
{
|
sl@0
|
42 |
return get_libcpp_wsd()._S_index;
|
sl@0
|
43 |
}
|
sl@0
|
44 |
|
sl@0
|
45 |
//locale.cpp - function static in _Stl_loc_get_index()
|
sl@0
|
46 |
inline std::_STLP_STATIC_MUTEX& get_locale_Index_lock()
|
sl@0
|
47 |
{
|
sl@0
|
48 |
return get_libcpp_wsd().locale_Index_lock;
|
sl@0
|
49 |
}
|
sl@0
|
50 |
|
sl@0
|
51 |
//monetary.cpp - global variable
|
sl@0
|
52 |
inline std::string& get_monetary_S_empty_string()
|
sl@0
|
53 |
{
|
sl@0
|
54 |
return get_libcpp_wsd().monetary_S_empty_string;
|
sl@0
|
55 |
}
|
sl@0
|
56 |
# ifndef _STLP_NO_WCHAR_T
|
sl@0
|
57 |
//monetary.cpp - global variable
|
sl@0
|
58 |
inline std::wstring& get_monetary_S_empty_wstring()
|
sl@0
|
59 |
{
|
sl@0
|
60 |
return get_libcpp_wsd().monetary_S_empty_wstring;
|
sl@0
|
61 |
}
|
sl@0
|
62 |
#endif //_STLP_NO_WCHAR_T
|
sl@0
|
63 |
|
sl@0
|
64 |
//locale_impl.cpp - global
|
sl@0
|
65 |
inline std::locale *get_Stl_classic_locale()
|
sl@0
|
66 |
{
|
sl@0
|
67 |
return get_libcpp_wsd()._Stl_classic_locale;
|
sl@0
|
68 |
}
|
sl@0
|
69 |
|
sl@0
|
70 |
//locale_impl.cpp - global
|
sl@0
|
71 |
inline std::locale *get_Stl_global_locale()
|
sl@0
|
72 |
{
|
sl@0
|
73 |
return get_libcpp_wsd()._Stl_global_locale;
|
sl@0
|
74 |
}
|
sl@0
|
75 |
|
sl@0
|
76 |
//locale_impl.cpp - global
|
sl@0
|
77 |
inline void set_Stl_classic_locale(std::locale *loc)
|
sl@0
|
78 |
{
|
sl@0
|
79 |
get_libcpp_wsd()._Stl_classic_locale = loc;
|
sl@0
|
80 |
}
|
sl@0
|
81 |
|
sl@0
|
82 |
//locale_impl.cpp - global
|
sl@0
|
83 |
inline void set_Stl_global_locale(std::locale *loc)
|
sl@0
|
84 |
{
|
sl@0
|
85 |
get_libcpp_wsd()._Stl_global_locale = loc;
|
sl@0
|
86 |
}
|
sl@0
|
87 |
|
sl@0
|
88 |
//locale_catalog.cpp - global
|
sl@0
|
89 |
inline std::_STLP_STATIC_MUTEX&
|
sl@0
|
90 |
get_locale_catalog_category_hash_lock()
|
sl@0
|
91 |
{
|
sl@0
|
92 |
return get_libcpp_wsd().locale_catalog_category_hash_lock;
|
sl@0
|
93 |
}
|
sl@0
|
94 |
|
sl@0
|
95 |
|
sl@0
|
96 |
#endif /*WSD_LOCALES_H_*/
|