23bool findMatch( wxArrayString& aList,
const wxString& aValue,
int& aIdx )
32 wxString cvalue = aValue;
33 cvalue.Replace(
',',
'.' );
36 for( wxString&
text : aList )
41 wxString val_str =
text.BeforeFirst(
' ' );
42 val_str.Replace(
',',
'.' );
45 if( val_str == cvalue )
58 struct lconv* lc = localeconv();
59 char localeDecimalSeparator = *lc->decimal_point;
61 if( localeDecimalSeparator ==
',' )
62 cvalue.Replace(
'.',
',' );
65 cvalue.ToDouble( &curr_value );
69 for( wxString&
text : aList )
75 wxString val_str =
text.BeforeFirst(
' ' );
77 if( localeDecimalSeparator ==
',' )
78 val_str.Replace(
'.',
',' );
80 val_str.ToDouble( &val );;
82 if( curr_value == val )
bool findMatch(wxArrayString &aList, const wxString &aValue, int &aIdx)