X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/13874b5c7f59b6c695672042fd3b9f283707318f..bde626ce30c80dd9409b7214f43e92c0f62447a0:/include/wx/string.h diff --git a/include/wx/string.h b/include/wx/string.h index dc60c22a88..0db91472e0 100644 --- a/include/wx/string.h +++ b/include/wx/string.h @@ -169,6 +169,17 @@ inline int Stricmp(const char *psz1, const char *psz2) // deal with STL/non-STL/non-STL-but-wxUSE_STD_STRING // ---------------------------------------------------------------------------- +#if wxUSE_STL || wxUSE_STD_STRING + // these compilers come without standard C++ library headers by default, + // remove the tests here if you do have them (e.g. from STLPort) + #if defined(__DMC__) || defined(__WATCOMC__) + #undef wxUSE_STL + #undef wxUSE_STD_STRING + #define wxUSE_STL 0 + #define wxUSE_STD_STRING 0 + #endif +#endif // wxUSE_STL || wxUSE_STD_STRING + // in both cases we need to define wxStdString #if wxUSE_STL || wxUSE_STD_STRING @@ -1132,9 +1143,17 @@ public: bool ToLong(long *val, int base = 10) const; // convert to an unsigned integer bool ToULong(unsigned long *val, int base = 10) const; + // convert to wxLongLong +#if defined(wxLongLong_t) + bool ToLongLong(wxLongLong_t *val, int base = 10) const; + // convert to wxULongLong + bool ToULongLong(wxULongLong_t *val, int base = 10) const; +#endif // wxLongLong_t // convert to a double bool ToDouble(double *val) const; + + // formatted input/output // as sprintf(), returns the number of characters written or < 0 on error // (take 'this' into account in attribute parameter count)