epoc32/include/stdapis/stlportv5/wsd_locales.h
author William Roberts <williamr@symbian.org>
Wed, 31 Mar 2010 12:33:34 +0100
branchSymbian3
changeset 4 837f303aceeb
permissions -rw-r--r--
Current Symbian^3 public API header files (from PDK 3.0.h)
This is the epoc32/include tree with the "platform" subtrees removed, and
all but a selected few mbg and rsg files removed.
     1 /*
     2 * Copyright (c) 2008-2009 Nokia Corporation and/or its subsidiary(-ies).
     3 * All rights reserved.
     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".
     8 *
     9 * Initial Contributors:
    10 * Nokia Corporation - initial contribution.
    11 *
    12 * Contributors:
    13 *
    14 * Description:
    15 * Name        : wsd_locales.h
    16 * Part of     : standard c++ library.
    17 * 
    18 *
    19 */
    20 
    21 
    22 
    23 
    24 #ifndef WSD_LOCALES_H_
    25 #define WSD_LOCALES_H_
    26 
    27 //locale_impl.cpp  - function static in  _Locale_impl::Init::_M_count() 
    28 inline std::_Refcount_Base& get_Loc_init_S_count()
    29 	{
    30 	return *(get_libcpp_wsd()._Loc_init_S_count);
    31 	}
    32 
    33 //_locale.h
    34 inline size_t& std::locale::id::get_locale_id_S_max()
    35 	{
    36 	return get_libcpp_wsd().locale_id_S_max;
    37 	}
    38 
    39 //locale.cpp - function static in _Stl_loc_get_index()
    40 inline __stl_atomic_t& get_S_index()
    41 	{
    42 	return get_libcpp_wsd()._S_index;
    43 	}
    44 
    45 //locale.cpp - function static in _Stl_loc_get_index()
    46 inline std::_STLP_STATIC_MUTEX& get_locale_Index_lock()
    47 	{
    48 	return get_libcpp_wsd().locale_Index_lock;
    49 	}
    50 
    51 //monetary.cpp - global variable
    52 inline std::string& get_monetary_S_empty_string()
    53 	{
    54 	return get_libcpp_wsd().monetary_S_empty_string;
    55 	}
    56 # ifndef _STLP_NO_WCHAR_T
    57 //monetary.cpp - global variable
    58 inline std::wstring& get_monetary_S_empty_wstring()
    59 	{
    60 	return get_libcpp_wsd().monetary_S_empty_wstring;
    61 	}
    62 #endif //_STLP_NO_WCHAR_T
    63 
    64 //locale_impl.cpp - global
    65 inline std::locale *get_Stl_classic_locale()
    66 	{
    67 	return get_libcpp_wsd()._Stl_classic_locale;
    68 	}
    69 
    70 //locale_impl.cpp - global
    71 inline std::locale *get_Stl_global_locale()
    72 	{
    73 	return get_libcpp_wsd()._Stl_global_locale;
    74 	}
    75 
    76 //locale_impl.cpp - global
    77 inline void set_Stl_classic_locale(std::locale *loc)
    78 	{
    79 	get_libcpp_wsd()._Stl_classic_locale = loc;
    80 	}
    81 
    82 //locale_impl.cpp - global
    83 inline void set_Stl_global_locale(std::locale *loc)
    84 	{
    85 	get_libcpp_wsd()._Stl_global_locale = loc;
    86 	}
    87 
    88 //locale_catalog.cpp - global
    89 inline std::_STLP_STATIC_MUTEX& 
    90 get_locale_catalog_category_hash_lock()
    91 	{
    92 	return get_libcpp_wsd().locale_catalog_category_hash_lock;
    93 	}
    94 
    95 
    96 #endif /*WSD_LOCALES_H_*/