numpunct.cpp 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. /*
  2. * Copyright (c) 1999
  3. * Silicon Graphics Computer Systems, Inc.
  4. *
  5. * Copyright (c) 1999
  6. * Boris Fomitchev
  7. *
  8. * This material is provided "as is", with absolutely no warranty expressed
  9. * or implied. Any use is at your own risk.
  10. *
  11. * Permission to use or copy this software for any purpose is hereby granted
  12. * without fee, provided the above notices are retained on all copies.
  13. * Permission to modify the code and to distribute modified code is granted,
  14. * provided the above notices are retained, and a notice that the code was
  15. * modified is included with the above copyright notice.
  16. *
  17. */
  18. #include "stlport_prefix.h"
  19. #include <locale>
  20. _STLP_BEGIN_NAMESPACE
  21. //----------------------------------------------------------------------
  22. // numpunct<char>
  23. char numpunct<char>::do_decimal_point() const {return '.';}
  24. char numpunct<char>::do_thousands_sep() const { return ','; }
  25. string numpunct<char>::do_grouping() const { return string();}
  26. string numpunct<char>::do_truename() const { return "true";}
  27. string numpunct<char>::do_falsename() const { return "false"; }
  28. numpunct<char>::~numpunct() {}
  29. #if !defined (_STLP_NO_WCHAR_T)
  30. wchar_t numpunct<wchar_t>::do_decimal_point() const { return L'.'; }
  31. wchar_t numpunct<wchar_t>::do_thousands_sep() const { return L','; }
  32. string numpunct<wchar_t>::do_grouping() const { return string(); }
  33. wstring numpunct<wchar_t>::do_truename() const { return L"true"; }
  34. wstring numpunct<wchar_t>::do_falsename() const { return L"false"; }
  35. numpunct<wchar_t>::~numpunct() {}
  36. #endif
  37. _STLP_END_NAMESPACE
  38. // Local Variables:
  39. // mode:C++
  40. // End: