X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/735d1db6cb94887ace96dbc17e453b992b297363..42d6e1369732fde88762b3936f78857cccb82b8e:/include/wx/string.h diff --git a/include/wx/string.h b/include/wx/string.h index 4f6d342f9e..dc244ec1d8 100644 --- a/include/wx/string.h +++ b/include/wx/string.h @@ -63,7 +63,7 @@ #ifdef HAVE_STRINGS_H #include // for strcasecmp() -#endif // AIX +#endif // HAVE_STRINGS_H #include "wx/defs.h" // everybody should include this #include "wx/wxchar.h" // for wxChar @@ -689,9 +689,9 @@ public: // conversion to numbers: all functions return TRUE only if the whole string // is a number and put the value of this number into the pointer provided // convert to a signed integer - bool ToLong(long *val) const; + bool ToLong(long *val, int base = 0) const; // convert to an unsigned integer - bool ToULong(unsigned long *val) const; + bool ToULong(unsigned long *val, int base = 0) const; // convert to a double bool ToDouble(double *val) const; @@ -1035,6 +1035,8 @@ public: size_t Add(const wxString& str); // add new element at given position void Insert(const wxString& str, size_t uiIndex); + // expand the array to have count elements + void SetCount(size_t count); // remove first item matching this value void Remove(const wxChar *sz); // remove item by index