X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/e90babdf85c9c8025e7f0647c0270de6d7e44a63..e839ce8d9b4f6d696891a1b99507fc1a09b424d7:/include/wx/string.h diff --git a/include/wx/string.h b/include/wx/string.h index fa68ee7ccf..6a966ae6fc 100644 --- a/include/wx/string.h +++ b/include/wx/string.h @@ -713,6 +713,10 @@ public: #ifdef wxSTD_STRING_COMPATIBILITY // std::string compatibility functions + // standard types + typedef wxChar value_type; + typedef const value_type *const_iterator; + // an 'invalid' value for string index static const size_t npos; @@ -746,6 +750,11 @@ public: // returns the writable character at position n wxChar& at(size_t n) { return GetWritableChar(n); } + // first valid index position + const_iterator begin() const { return wx_str(); } + // position one after the last valid one + const_iterator end() const { return wx_str() + length(); } + // lib.string.modifiers // append a string wxString& append(const wxString& str)