| 107 | } |
| 108 | |
| 109 | bool Internat::CompatibleToDouble(const wxString& stringToConvert, double* result) |
| 110 | { |
| 111 | // Regardless of the locale, always respect comma _and_ point |
| 112 | wxString s = stringToConvert; |
| 113 | // Convert to C locale decimal point for stable parsing. |
| 114 | s.Replace(wxT(","), wxT(".")); |
| 115 | s.Replace(wxString(GetDecimalSeparator()), wxT(".")); |
| 116 | return s.ToCDouble(result); |
| 117 | } |
| 118 | |
| 119 | double Internat::CompatibleToDouble(const wxString& stringToConvert) |
| 120 | { |