genericopenlibs/cppstdlib/stl/src/numpunct.cpp
author Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
Wed, 13 Oct 2010 16:27:53 +0300
branchRCL_3
changeset 75 254b651f304e
parent 0 e4d67989cc36
permissions -rw-r--r--
Revision: 201039 Kit: 201041

/*
 * Portions Copyright (c) 2008 Nokia Corporation and/or its subsidiary(-ies). All rights reserved.
 *
 * Copyright (c) 1999
 * Silicon Graphics Computer Systems, Inc.
 *
 * Copyright (c) 1999
 * Boris Fomitchev
 *
 * This material is provided "as is", with absolutely no warranty expressed
 * or implied. Any use is at your own risk.
 *
 * Permission to use or copy this software for any purpose is hereby granted
 * without fee, provided the above notices are retained on all copies.
 * Permission to modify the code and to distribute modified code is granted,
 * provided the above notices are retained, and a notice that the code was
 * modified is included with the above copyright notice.
 *
 */
#include "stlport_prefix.h"

#include <locale>


_STLP_BEGIN_NAMESPACE
//----------------------------------------------------------------------
// numpunct<char>
_STLP_DECLSPEC char   numpunct<char>::do_decimal_point() const {return '.';}
_STLP_DECLSPEC char   numpunct<char>::do_thousands_sep() const { return ','; }
_STLP_DECLSPEC string numpunct<char>::do_grouping()  const { return string();}
_STLP_DECLSPEC string numpunct<char>::do_truename()  const { return _M_truename;}
_STLP_DECLSPEC string numpunct<char>::do_falsename() const { return _M_falsename; }

_STLP_DECLSPEC numpunct<char>::~numpunct() {}

#if !defined (_STLP_NO_WCHAR_T)
_STLP_DECLSPEC wchar_t numpunct<wchar_t>::do_decimal_point() const { return L'.'; }
_STLP_DECLSPEC wchar_t numpunct<wchar_t>::do_thousands_sep() const { return L','; }
_STLP_DECLSPEC string numpunct<wchar_t>::do_grouping()   const { return string(); }
_STLP_DECLSPEC wstring numpunct<wchar_t>::do_truename()  const { return _M_truename; }
_STLP_DECLSPEC wstring numpunct<wchar_t>::do_falsename() const { return _M_falsename; }

_STLP_DECLSPEC numpunct<wchar_t>::~numpunct() {}

#endif

_STLP_END_NAMESPACE

// Local Variables:
// mode:C++
// End: