X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/67b81440f079f88e6202a199fd5763af73bbac0f..a6e2b3a8316c430a68f91b3c894e856987dd972e:/include/wx/string.h 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