From 5460b9e30b33b7589d90259abfcad4f5bd6d91e5 Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Mon, 24 Mar 2003 20:32:55 +0000 Subject: [PATCH] added non-const begin()/end() methods to wxString (patch 696842) git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@19772 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- include/wx/string.h | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/include/wx/string.h b/include/wx/string.h index ac039eaa63..521b7ca966 100644 --- a/include/wx/string.h +++ b/include/wx/string.h @@ -803,6 +803,8 @@ public: // standard types typedef wxChar value_type; + typedef size_t size_type; + typedef value_type *iterator; typedef const value_type *const_iterator; // an 'invalid' value for string index @@ -848,6 +850,11 @@ public: // position one after the last valid one const_iterator end() const { return wx_str() + length(); } + // first valid index position + iterator begin() { CopyBeforeWrite(); return m_pchData; } + // position one after the last valid one + iterator end() { CopyBeforeWrite(); return m_pchData + length(); } + // lib.string.modifiers // append a string wxString& append(const wxString& str) -- 2.47.2