X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/67b81440f079f88e6202a199fd5763af73bbac0f..794bcc2dea743ac907b839f54e451847c9ea4b72:/include/wx/string.h?ds=inline diff --git a/include/wx/string.h b/include/wx/string.h index 87219a05a3..1b0c138ea9 100644 --- a/include/wx/string.h +++ b/include/wx/string.h @@ -96,7 +96,7 @@ #if defined(__VISAGECPP__) && __IBMCPP__ >= 400 // must define this static for VA or else you get multiply defined symbols everywhere -static const unsigned int wxSTRING_MAXLEN = UINT_MAX - 100; +extern const unsigned int wxSTRING_MAXLEN; #else // maximum possible length for a string means "take all string" everywhere @@ -520,6 +520,8 @@ public: // append count copies of given character wxString& Append(wxChar ch, size_t count = 1u) { wxString str(ch, count); return *this << str; } + wxString& Append(const wxChar* psz, size_t nLen) + { ConcatSelf(nLen, psz); return *this; } // prepend a string, return the string itself wxString& Prepend(const wxString& str) @@ -668,6 +670,7 @@ public: wxChar *GetWriteBuf(size_t nLen); // call this immediately after GetWriteBuf() has been used void UngetWriteBuf(); + void UngetWriteBuf(size_t nLen); // wxWindows version 1 compatibility functions