Hleb Valoshka
2cb9da1085
[win32] Convert decimal point & thousands separator to UTF-8
2022-01-25 23:28:17 +03:00
Hleb Valoshka
363abc40f3
Use libfmt instead of C-style & iostream workflow
...
TODO: check StarDatabase::getStarName
2018-10-17 22:19:03 +03:00
Hleb Valoshka
b082d5f47f
Automatically convert to c++11 using clan-tidy
...
+ manual cleanups
2018-09-22 23:42:02 +03:00
Hleb Valoshka
882e4ecf28
fix whitespaces and indents
...
trailing spaces are removed
tabs are replaced with 4 spaces
# Conflicts:
# src/celengine/cmdparser.cpp
# src/celengine/command.cpp
# src/celestia/celestiacore.cpp
# src/celestia/celestiacore.h
# src/celestia/qt/qtappwin.cpp
# src/celestia/qt/qtglwidget.cpp
# src/celestia/win32/winmain.cpp
2018-09-22 23:41:57 +03:00
Chris Laurel
de41ec3813
Fixes to make Celestia build with gcc4.3
2008-11-16 10:19:38 +00:00
Chris Laurel
9f208b9adf
Changed win32 check in formatnum.cpp to look for _WIN32 defined instead of WIN32
2007-10-11 05:52:25 +00:00
Da Woon Jung
143e64d6e8
Fixed typo.
2006-02-13 15:33:02 +00:00
Chris Laurel
16d3dc998d
MS Visual C++ is missing snprintf in stdio.h but has _snprintf. Hacked around this omission to make formatnum.cpp build on Win32.
2006-02-08 18:18:08 +00:00
Da Woon Jung
cc91ce2d7a
Fixed possible buffer overflows with extreme time scale, speed values.
2006-02-08 10:03:15 +00:00
Chris Laurel
8fcbc0aa8e
I18n fixes for Windows:
...
- Define _ macro to do nothing, since we're not building with gettext on Windows right now
- Don't use static consts for locale strings in FormattedNumber ouput; this was causing garbage to appear in formatted number strings for reasons I don't completely understand.
2005-07-25 16:50:14 +00:00
Christophe Teyssier
2318e423a3
Adding support for i18n with gettext.
2005-07-19 21:31:04 +00:00
Chris Laurel
07b6829c72
Fixed pow calls for building with free MS C++ compiler
2004-10-26 17:48:59 +00:00
Chris Laurel
2c9fb856b6
Round zeroes and negative values correctly.
2003-09-20 23:29:22 +00:00
Chris Laurel
af3888cf6b
Added missing header.
2003-09-05 17:01:22 +00:00
Chris Laurel
2eb26887a2
Added FormattedNumber, a class for displaying numbers in a more human-readable format with thousands delimiters and significant digit rounding.
2003-08-11 00:26:16 +00:00