VC++ 1.5 no more supported.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@33408 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -460,9 +460,7 @@ class WXDLLIMPEXP_BASE wxListBase : public wxObject
|
|||||||
{
|
{
|
||||||
friend class WXDLLIMPEXP_BASE wxNodeBase; // should be able to call DetachNode()
|
friend class WXDLLIMPEXP_BASE wxNodeBase; // should be able to call DetachNode()
|
||||||
friend class wxHashTableBase; // should be able to call untyped Find()
|
friend class wxHashTableBase; // should be able to call untyped Find()
|
||||||
private:
|
|
||||||
// common part of all ctors
|
|
||||||
void Init(wxKeyType keyType = wxKEY_NONE); // Must be declared before it's used (for VC++ 1.5)
|
|
||||||
public:
|
public:
|
||||||
// default ctor & dtor
|
// default ctor & dtor
|
||||||
wxListBase(wxKeyType keyType = wxKEY_NONE)
|
wxListBase(wxKeyType keyType = wxKEY_NONE)
|
||||||
@@ -599,6 +597,10 @@ protected:
|
|||||||
void Reverse();
|
void Reverse();
|
||||||
void DeleteNodes(wxNodeBase* first, wxNodeBase* last);
|
void DeleteNodes(wxNodeBase* first, wxNodeBase* last);
|
||||||
private:
|
private:
|
||||||
|
|
||||||
|
// common part of all ctors
|
||||||
|
void Init(wxKeyType keyType = wxKEY_NONE);
|
||||||
|
|
||||||
// helpers
|
// helpers
|
||||||
// common part of copy ctor and assignment operator
|
// common part of copy ctor and assignment operator
|
||||||
void DoCopy(const wxListBase& list);
|
void DoCopy(const wxListBase& list);
|
||||||
|
@@ -512,11 +512,8 @@ public:
|
|||||||
// find a substring
|
// find a substring
|
||||||
size_t find(const wxStringBase& str, size_t nStart = 0) const;
|
size_t find(const wxStringBase& str, size_t nStart = 0) const;
|
||||||
|
|
||||||
// VC++ 1.5 can't cope with this syntax.
|
|
||||||
#if !defined(__VISUALC__) || defined(__WIN32__)
|
|
||||||
// find first n characters of sz
|
// find first n characters of sz
|
||||||
size_t find(const wxChar* sz, size_t nStart = 0, size_t n = npos) const;
|
size_t find(const wxChar* sz, size_t nStart = 0, size_t n = npos) const;
|
||||||
#endif // VC++ 1.5
|
|
||||||
|
|
||||||
// find the first occurence of character ch after nStart
|
// find the first occurence of character ch after nStart
|
||||||
size_t find(wxChar ch, size_t nStart = 0) const;
|
size_t find(wxChar ch, size_t nStart = 0) const;
|
||||||
@@ -526,7 +523,6 @@ public:
|
|||||||
// as find, but from the end
|
// as find, but from the end
|
||||||
size_t rfind(const wxStringBase& str, size_t nStart = npos) const;
|
size_t rfind(const wxStringBase& str, size_t nStart = npos) const;
|
||||||
|
|
||||||
// VC++ 1.5 can't cope with this syntax.
|
|
||||||
// as find, but from the end
|
// as find, but from the end
|
||||||
size_t rfind(const wxChar* sz, size_t nStart = npos,
|
size_t rfind(const wxChar* sz, size_t nStart = npos,
|
||||||
size_t n = npos) const;
|
size_t n = npos) const;
|
||||||
@@ -700,7 +696,7 @@ public:
|
|||||||
{
|
{
|
||||||
Truncate(0);
|
Truncate(0);
|
||||||
|
|
||||||
wxASSERT_MSG( IsEmpty(), _T("string not empty after call to Empty()?") );
|
wxASSERT_MSG( empty(), _T("string not empty after call to Empty()?") );
|
||||||
}
|
}
|
||||||
// empty the string and free memory
|
// empty the string and free memory
|
||||||
void Clear()
|
void Clear()
|
||||||
@@ -731,7 +727,7 @@ public:
|
|||||||
// get last character
|
// get last character
|
||||||
wxChar Last() const
|
wxChar Last() const
|
||||||
{
|
{
|
||||||
wxASSERT_MSG( !IsEmpty(), _T("wxString: index out of bounds") );
|
wxASSERT_MSG( !empty(), _T("wxString: index out of bounds") );
|
||||||
|
|
||||||
return at(length() - 1);
|
return at(length() - 1);
|
||||||
}
|
}
|
||||||
@@ -739,7 +735,7 @@ public:
|
|||||||
// get writable last character
|
// get writable last character
|
||||||
wxChar& Last()
|
wxChar& Last()
|
||||||
{
|
{
|
||||||
wxASSERT_MSG( !IsEmpty(), _T("wxString: index out of bounds") );
|
wxASSERT_MSG( !empty(), _T("wxString: index out of bounds") );
|
||||||
return at(length() - 1);
|
return at(length() - 1);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -906,8 +902,8 @@ public:
|
|||||||
// string += C string
|
// string += C string
|
||||||
wxString& Append(const wxString& s)
|
wxString& Append(const wxString& s)
|
||||||
{
|
{
|
||||||
// test for IsEmpty() to share the string if possible
|
// test for empty() to share the string if possible
|
||||||
if ( IsEmpty() )
|
if ( empty() )
|
||||||
*this = s;
|
*this = s;
|
||||||
else
|
else
|
||||||
append(s);
|
append(s);
|
||||||
@@ -1127,8 +1123,8 @@ public:
|
|||||||
int Last( const wxChar ch ) const { return Find(ch, true); }
|
int Last( const wxChar ch ) const { return Find(ch, true); }
|
||||||
bool Contains(const wxString& str) const { return Find(str) != wxNOT_FOUND; }
|
bool Contains(const wxString& str) const { return Find(str) != wxNOT_FOUND; }
|
||||||
|
|
||||||
// use IsEmpty()
|
// use empty()
|
||||||
bool IsNull() const { return IsEmpty(); }
|
bool IsNull() const { return empty(); }
|
||||||
|
|
||||||
// std::string compatibility functions
|
// std::string compatibility functions
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user