1.1 --- a/epoc32/include/stdapis/stlport/stl/_numpunct.c Tue Nov 24 13:55:44 2009 +0000
1.2 +++ b/epoc32/include/stdapis/stlport/stl/_numpunct.c Tue Mar 16 16:12:26 2010 +0000
1.3 @@ -1,1 +1,89 @@
1.4 -_numpunct.c
1.5 +#ifndef _STLP_NUMPUNCT_C
1.6 +#define _STLP_NUMPUNCT_C
1.7 +#ifndef _STLP_INTERNAL_NUMPUNCT_H
1.8 +# include <stl/_numpunct.h>
1.9 +#endif
1.10 +
1.11 +
1.12 +template<class _CharT>
1.13 + numpunct<_CharT>::~numpunct() { }
1.14 +
1.15 +template<class _CharT>
1.16 +_CharT numpunct<_CharT>::do_decimal_point() const
1.17 +{
1.18 + return (_CharT)'.';
1.19 +}
1.20 +
1.21 +template<class _CharT>
1.22 + _CharT numpunct<_CharT>::do_thousands_sep() const
1.23 +{
1.24 + return (_CharT)',';
1.25 +}
1.26 +
1.27 +
1.28 +template<class _CharT>
1.29 +string numpunct<_CharT>::do_grouping() const
1.30 +{
1.31 + return _M_grouping;
1.32 +}
1.33 +
1.34 +template<class _CharT>
1.35 +basic_string<_CharT> numpunct<_CharT>::do_truename() const
1.36 +{
1.37 + return _M_truename;
1.38 +}
1.39 +
1.40 +template<class _CharT>
1.41 +basic_string<_CharT> numpunct<_CharT>::do_falsename() const
1.42 +{
1.43 + return _M_falsename;
1.44 +}
1.45 +
1.46 +
1.47 +template<class _CharT>
1.48 +numpunct_byname<_CharT>::numpunct_byname(const char* name, size_t refs)
1.49 + : numpunct<_CharT> (refs),
1.50 + _M_numeric(__acquire_numericE(name))
1.51 +{
1.52 + if (!_M_numeric)
1.53 + locale::_M_throw_runtime_error();
1.54 +
1.55 + const char* truename = _Locale_trueE(_M_numeric);
1.56 + const char* falsename = _Locale_falseE(_M_numeric);
1.57 +
1.58 +}
1.59 +
1.60 +template<class _CharT>
1.61 +numpunct_byname<_CharT>::~numpunct_byname()
1.62 +{
1.63 + __release_numericE(_M_numeric);
1.64 +}
1.65 +
1.66 +template<class _CharT>
1.67 +_CharT numpunct_byname<_CharT>::do_decimal_point() const
1.68 +{
1.69 + return (_CharT ) _Locale_decimal_pointE(_M_numeric);
1.70 +}
1.71 +template<class _CharT>
1.72 +_CharT numpunct_byname<_CharT>::do_thousands_sep() const
1.73 +{
1.74 + return (_CharT) _Locale_thousands_sepE(_M_numeric);
1.75 +}
1.76 +
1.77 +template<class _CharT>
1.78 +string numpunct_byname<_CharT>::do_grouping() const
1.79 +{
1.80 + const char * __grouping = _Locale_groupingE(_M_numeric);
1.81 + if (__grouping != NULL && __grouping[0] == CHAR_MAX)
1.82 + __grouping = "";
1.83 +
1.84 + return NULL;
1.85 +}
1.86 +
1.87 +
1.88 +
1.89 +
1.90 +//----------------------------------------------------------------------
1.91 +
1.92 +#endif //#ifndef _STLP_NUMPUNCT_C
1.93 +