build/stlport/src/numpunct.cpp

changeset 0
6474c204b198
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/build/stlport/src/numpunct.cpp	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,46 @@
     1.4 +/*
     1.5 + * Copyright (c) 1999
     1.6 + * Silicon Graphics Computer Systems, Inc.
     1.7 + *
     1.8 + * Copyright (c) 1999
     1.9 + * Boris Fomitchev
    1.10 + *
    1.11 + * This material is provided "as is", with absolutely no warranty expressed
    1.12 + * or implied. Any use is at your own risk.
    1.13 + *
    1.14 + * Permission to use or copy this software for any purpose is hereby granted
    1.15 + * without fee, provided the above notices are retained on all copies.
    1.16 + * Permission to modify the code and to distribute modified code is granted,
    1.17 + * provided the above notices are retained, and a notice that the code was
    1.18 + * modified is included with the above copyright notice.
    1.19 + *
    1.20 + */
    1.21 +#include "stlport_prefix.h"
    1.22 +
    1.23 +#include <locale>
    1.24 +
    1.25 +_STLP_BEGIN_NAMESPACE
    1.26 +
    1.27 +//----------------------------------------------------------------------
    1.28 +// numpunct<char>
    1.29 +char   numpunct<char>::do_decimal_point() const {return '.';}
    1.30 +char   numpunct<char>::do_thousands_sep() const { return ','; }
    1.31 +string numpunct<char>::do_grouping()  const { return string();}
    1.32 +string numpunct<char>::do_truename()  const { return "true";}
    1.33 +string numpunct<char>::do_falsename() const { return "false"; }
    1.34 +numpunct<char>::~numpunct() {}
    1.35 +
    1.36 +#if !defined (_STLP_NO_WCHAR_T)
    1.37 +wchar_t numpunct<wchar_t>::do_decimal_point() const { return L'.'; }
    1.38 +wchar_t numpunct<wchar_t>::do_thousands_sep() const { return L','; }
    1.39 +string numpunct<wchar_t>::do_grouping()   const { return string(); }
    1.40 +wstring numpunct<wchar_t>::do_truename()  const { return L"true"; }
    1.41 +wstring numpunct<wchar_t>::do_falsename() const { return L"false"; }
    1.42 +numpunct<wchar_t>::~numpunct() {}
    1.43 +#endif
    1.44 +
    1.45 +_STLP_END_NAMESPACE
    1.46 +
    1.47 +// Local Variables:
    1.48 +// mode:C++
    1.49 +// End:

mercurial