moved wxFloat/DoubleToStringStr from src/*/data.cpp to src/common/utils.cpp; took all String <-> Numebr functions inside WXWIN_COMPATIBILITY_2_4
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@20118 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -133,6 +133,15 @@ wxRegisterId (long id)
|
||||
wxCurrentId = id + 1;
|
||||
}
|
||||
|
||||
// ----------------------------------------------------------------------------
|
||||
// String <-> Number conversions (deprecated)
|
||||
// ----------------------------------------------------------------------------
|
||||
|
||||
#if WXWIN_COMPATIBILITY_2_4
|
||||
|
||||
WXDLLEXPORT_DATA(const wxChar *) wxFloatToStringStr = wxT("%.2f");
|
||||
WXDLLEXPORT_DATA(const wxChar *) wxDoubleToStringStr = wxT("%.2f");
|
||||
|
||||
void
|
||||
StringToFloat (const wxChar *s, float *number)
|
||||
{
|
||||
@@ -197,6 +206,8 @@ LongToString (long number)
|
||||
return buf;
|
||||
}
|
||||
|
||||
#endif // WXWIN_COMPATIBILITY_2_4
|
||||
|
||||
// Array used in DecToHex conversion routine.
|
||||
static wxChar hexArray[] = wxT("0123456789ABCDEF");
|
||||
|
||||
|
Reference in New Issue
Block a user