diff options
author | Daniel Wilhelm <daniel@wili.li> | 2014-04-18 16:46:15 +0200 |
---|---|---|
committer | Daniel Wilhelm <daniel@wili.li> | 2014-04-18 16:46:15 +0200 |
commit | f0ae67919454f572f39541b11ddd74b4fda0d12e (patch) | |
tree | 5c9ea9601db75eb849e86fc30fe67810f3679bdc /library/globalFunctions.cpp | |
parent | 1.2 (diff) | |
download | FreeFileSync-f0ae67919454f572f39541b11ddd74b4fda0d12e.tar.gz FreeFileSync-f0ae67919454f572f39541b11ddd74b4fda0d12e.tar.bz2 FreeFileSync-f0ae67919454f572f39541b11ddd74b4fda0d12e.zip |
1.3
Diffstat (limited to 'library/globalFunctions.cpp')
-rw-r--r-- | library/globalFunctions.cpp | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/library/globalFunctions.cpp b/library/globalFunctions.cpp index d8a3a67b..70a5abaf 100644 --- a/library/globalFunctions.cpp +++ b/library/globalFunctions.cpp @@ -1,6 +1,18 @@ #include "globalFunctions.h" #include <wx/intl.h> +#ifdef FFS_WIN +const wxChar FileNameSeparator = '\\'; +#endif // FFS_WIN + +#ifdef FFS_LINUX +const wxChar FileNameSeparator = '/'; +#endif // FFS_LINUX + +const wxChar* FloatingPointSeparator = _("."); +const wxChar* NumberSeparator = _(","); + + inline int GlobalFunctions::round(const double d) { @@ -101,8 +113,6 @@ double GlobalFunctions::wxStringToDouble(const wxString& number) wxString& GlobalFunctions::includeNumberSeparator(wxString& number) { - const wxChar* NumberSeparator = _(","); - for (int i = number.size() - 3; i > 0; i-= 3) number.insert(i, NumberSeparator); return number; |