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:
@@ -803,6 +803,8 @@ public:
|
|||||||
|
|
||||||
// standard types
|
// standard types
|
||||||
typedef wxChar value_type;
|
typedef wxChar value_type;
|
||||||
|
typedef size_t size_type;
|
||||||
|
typedef value_type *iterator;
|
||||||
typedef const value_type *const_iterator;
|
typedef const value_type *const_iterator;
|
||||||
|
|
||||||
// an 'invalid' value for string index
|
// an 'invalid' value for string index
|
||||||
@@ -848,6 +850,11 @@ public:
|
|||||||
// position one after the last valid one
|
// position one after the last valid one
|
||||||
const_iterator end() const { return wx_str() + length(); }
|
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
|
// lib.string.modifiers
|
||||||
// append a string
|
// append a string
|
||||||
wxString& append(const wxString& str)
|
wxString& append(const wxString& str)
|
||||||
|
Reference in New Issue
Block a user