diff -r 666f914201fb -r 2fe1408b6811 epoc32/include/stdapis/stlport/stl/_numpunct.c --- a/epoc32/include/stdapis/stlport/stl/_numpunct.c Tue Nov 24 13:55:44 2009 +0000 +++ b/epoc32/include/stdapis/stlport/stl/_numpunct.c Tue Mar 16 16:12:26 2010 +0000 @@ -1,1 +1,89 @@ -_numpunct.c +#ifndef _STLP_NUMPUNCT_C +#define _STLP_NUMPUNCT_C +#ifndef _STLP_INTERNAL_NUMPUNCT_H +# include +#endif + + +template + numpunct<_CharT>::~numpunct() { } + +template +_CharT numpunct<_CharT>::do_decimal_point() const +{ + return (_CharT)'.'; +} + +template + _CharT numpunct<_CharT>::do_thousands_sep() const +{ + return (_CharT)','; +} + + +template +string numpunct<_CharT>::do_grouping() const +{ + return _M_grouping; +} + +template +basic_string<_CharT> numpunct<_CharT>::do_truename() const +{ + return _M_truename; +} + +template +basic_string<_CharT> numpunct<_CharT>::do_falsename() const +{ + return _M_falsename; +} + + +template +numpunct_byname<_CharT>::numpunct_byname(const char* name, size_t refs) + : numpunct<_CharT> (refs), + _M_numeric(__acquire_numericE(name)) +{ + if (!_M_numeric) + locale::_M_throw_runtime_error(); + + const char* truename = _Locale_trueE(_M_numeric); + const char* falsename = _Locale_falseE(_M_numeric); + +} + +template +numpunct_byname<_CharT>::~numpunct_byname() +{ + __release_numericE(_M_numeric); +} + +template +_CharT numpunct_byname<_CharT>::do_decimal_point() const +{ + return (_CharT ) _Locale_decimal_pointE(_M_numeric); +} +template +_CharT numpunct_byname<_CharT>::do_thousands_sep() const +{ + return (_CharT) _Locale_thousands_sepE(_M_numeric); +} + +template +string numpunct_byname<_CharT>::do_grouping() const +{ + const char * __grouping = _Locale_groupingE(_M_numeric); + if (__grouping != NULL && __grouping[0] == CHAR_MAX) + __grouping = ""; + + return NULL; +} + + + + +//---------------------------------------------------------------------- + +#endif //#ifndef _STLP_NUMPUNCT_C +