Go to the source code of this file.
◆ CLASS_COUNT
◆ VALUE_COUNT
◆ DoubleFromString()
double DoubleFromString |
( |
const wxString & |
TextValue | ) |
|
Definition at line 37 of file params_read_write.cpp.
42 const struct lconv* lc = localeconv();
43 wxChar decimal_point = lc->decimal_point[0];
44 wxString buf( TextValue.Strip( wxString::both ) );
47 buf.Replace( wxT(
"." ), wxString( decimal_point, 1 ) );
50 buf.Replace( wxT(
"," ), wxString( decimal_point, 1 ) );
55 unsigned brk_point = 0;
56 while( brk_point < buf.Len() )
58 wxChar ch = buf[brk_point];
59 if( !( ( ch >=
'0' && ch <=
'9' ) || ( ch == decimal_point ) || ( ch ==
'-' )
60 || ( ch ==
'+' ) || ( ch ==
'e' ) || ( ch ==
'E' ) ) )
69 return std::nan(
"" );
72 if( !buf.Left( brk_point ).ToDouble( &value ) )
73 return std::nan(
"" );
Referenced by PANEL_ELECTRICAL_SPACING::ElectricalSpacingUpdateData().
◆ clist
◆ copper_resistivity
const double copper_resistivity = 1.72e-8 |