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:
@@ -713,6 +713,10 @@ public:
|
|||||||
#ifdef wxSTD_STRING_COMPATIBILITY
|
#ifdef wxSTD_STRING_COMPATIBILITY
|
||||||
// std::string compatibility functions
|
// std::string compatibility functions
|
||||||
|
|
||||||
|
// standard types
|
||||||
|
typedef wxChar value_type;
|
||||||
|
typedef const value_type *const_iterator;
|
||||||
|
|
||||||
// an 'invalid' value for string index
|
// an 'invalid' value for string index
|
||||||
static const size_t npos;
|
static const size_t npos;
|
||||||
|
|
||||||
@@ -746,6 +750,11 @@ public:
|
|||||||
// returns the writable character at position n
|
// returns the writable character at position n
|
||||||
wxChar& at(size_t n) { return GetWritableChar(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
|
// 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