summaryrefslogtreecommitdiff
path: root/library/globalFunctions.cpp
diff options
context:
space:
mode:
authorDaniel Wilhelm <daniel@wili.li>2014-04-18 16:46:15 +0200
committerDaniel Wilhelm <daniel@wili.li>2014-04-18 16:46:15 +0200
commitf0ae67919454f572f39541b11ddd74b4fda0d12e (patch)
tree5c9ea9601db75eb849e86fc30fe67810f3679bdc /library/globalFunctions.cpp
parent1.2 (diff)
downloadFreeFileSync-f0ae67919454f572f39541b11ddd74b4fda0d12e.tar.gz
FreeFileSync-f0ae67919454f572f39541b11ddd74b4fda0d12e.tar.bz2
FreeFileSync-f0ae67919454f572f39541b11ddd74b4fda0d12e.zip
1.3
Diffstat (limited to 'library/globalFunctions.cpp')
-rw-r--r--library/globalFunctions.cpp14
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;
bgstack15