summaryrefslogtreecommitdiff
path: root/library/globalFunctions.cpp
diff options
context:
space:
mode:
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