wxString::begin and end added

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2663 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin
1999-06-03 22:46:05 +00:00
parent bcf4a975e4
commit 2bc07607fc

View File

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