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
This commit is contained in:
Vadim Zeitlin 2003-03-24 20:32:55 +00:00
parent 17dd9caaa5
commit 5460b9e30b

View File

@ -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)