From: Vadim Zeitlin Date: Thu, 3 Jun 1999 22:46:05 +0000 (+0000) Subject: wxString::begin and end added X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/2bc07607fcd675b564bbf8fc6cb83010963dbf95 wxString::begin and end added git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2663 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- 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)