MCPcopy Create free account
hub / github.com/audacity/audacity / CompatibleToDouble

Method CompatibleToDouble

libraries/lib-strings/Internat.cpp:109–117  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

107}
108
109bool 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
119double Internat::CompatibleToDouble(const wxString& stringToConvert)
120{

Callers

nothing calls this directly

Calls 1

wxStringClass · 0.70

Tested by

no test coverage detected