1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1.2 +++ b/os/ossrv/genericopenlibs/cppstdlib/stl/src/numpunct.cpp Fri Jun 15 03:10:57 2012 +0200
1.3 @@ -0,0 +1,51 @@
1.4 +/*
1.5 + * Portions Copyright (c) 2008 Nokia Corporation and/or its subsidiary(-ies). All rights reserved.
1.6 + *
1.7 + * Copyright (c) 1999
1.8 + * Silicon Graphics Computer Systems, Inc.
1.9 + *
1.10 + * Copyright (c) 1999
1.11 + * Boris Fomitchev
1.12 + *
1.13 + * This material is provided "as is", with absolutely no warranty expressed
1.14 + * or implied. Any use is at your own risk.
1.15 + *
1.16 + * Permission to use or copy this software for any purpose is hereby granted
1.17 + * without fee, provided the above notices are retained on all copies.
1.18 + * Permission to modify the code and to distribute modified code is granted,
1.19 + * provided the above notices are retained, and a notice that the code was
1.20 + * modified is included with the above copyright notice.
1.21 + *
1.22 + */
1.23 +#include "stlport_prefix.h"
1.24 +
1.25 +#include <locale>
1.26 +
1.27 +
1.28 +_STLP_BEGIN_NAMESPACE
1.29 +//----------------------------------------------------------------------
1.30 +// numpunct<char>
1.31 +_STLP_DECLSPEC char numpunct<char>::do_decimal_point() const {return '.';}
1.32 +_STLP_DECLSPEC char numpunct<char>::do_thousands_sep() const { return ','; }
1.33 +_STLP_DECLSPEC string numpunct<char>::do_grouping() const { return string();}
1.34 +_STLP_DECLSPEC string numpunct<char>::do_truename() const { return _M_truename;}
1.35 +_STLP_DECLSPEC string numpunct<char>::do_falsename() const { return _M_falsename; }
1.36 +
1.37 +_STLP_DECLSPEC numpunct<char>::~numpunct() {}
1.38 +
1.39 +#if !defined (_STLP_NO_WCHAR_T)
1.40 +_STLP_DECLSPEC wchar_t numpunct<wchar_t>::do_decimal_point() const { return L'.'; }
1.41 +_STLP_DECLSPEC wchar_t numpunct<wchar_t>::do_thousands_sep() const { return L','; }
1.42 +_STLP_DECLSPEC string numpunct<wchar_t>::do_grouping() const { return string(); }
1.43 +_STLP_DECLSPEC wstring numpunct<wchar_t>::do_truename() const { return _M_truename; }
1.44 +_STLP_DECLSPEC wstring numpunct<wchar_t>::do_falsename() const { return _M_falsename; }
1.45 +
1.46 +_STLP_DECLSPEC numpunct<wchar_t>::~numpunct() {}
1.47 +
1.48 +#endif
1.49 +
1.50 +_STLP_END_NAMESPACE
1.51 +
1.52 +// Local Variables:
1.53 +// mode:C++
1.54 +// End: