/home/ntakagi/work/STLport-5.1.5/src/numpunct.cpp

Go to the documentation of this file.
00001 /*
00002  * Copyright (c) 1999
00003  * Silicon Graphics Computer Systems, Inc.
00004  *
00005  * Copyright (c) 1999
00006  * Boris Fomitchev
00007  *
00008  * This material is provided "as is", with absolutely no warranty expressed
00009  * or implied. Any use is at your own risk.
00010  *
00011  * Permission to use or copy this software for any purpose is hereby granted
00012  * without fee, provided the above notices are retained on all copies.
00013  * Permission to modify the code and to distribute modified code is granted,
00014  * provided the above notices are retained, and a notice that the code was
00015  * modified is included with the above copyright notice.
00016  *
00017  */
00018 #include "stlport_prefix.h"
00019 
00020 #include <locale>
00021 
00022 _STLP_BEGIN_NAMESPACE
00023 
00024 //----------------------------------------------------------------------
00025 // numpunct<char>
00026 char   numpunct<char>::do_decimal_point() const {return '.';}
00027 char   numpunct<char>::do_thousands_sep() const { return ','; }
00028 string numpunct<char>::do_grouping()  const { return string();}
00029 string numpunct<char>::do_truename()  const { return _M_truename;}
00030 string numpunct<char>::do_falsename() const { return _M_falsename; }
00031 numpunct<char>::~numpunct() {}
00032 
00033 #if !defined (_STLP_NO_WCHAR_T)
00034 wchar_t numpunct<wchar_t>::do_decimal_point() const { return L'.'; }
00035 wchar_t numpunct<wchar_t>::do_thousands_sep() const { return L','; }
00036 string numpunct<wchar_t>::do_grouping()   const { return string(); }
00037 wstring numpunct<wchar_t>::do_truename()  const { return _M_truename; }
00038 wstring numpunct<wchar_t>::do_falsename() const { return _M_falsename; }
00039 numpunct<wchar_t>::~numpunct() {}
00040 #endif
00041 
00042 _STLP_END_NAMESPACE
00043 
00044 // Local Variables:
00045 // mode:C++
00046 // End:



Generated on Mon Mar 10 15:32:17 2008 by  doxygen 1.5.1