// ArrayString
// ============================================================================
+#if !wxUSE_STL
+
+#include "wx/arrstr.h"
+
// size increment = min(50% of current size, ARRAY_MAXSIZE_INCREMENT)
#define ARRAY_MAXSIZE_INCREMENT 4096
qsort(m_pItems, m_nCount, sizeof(wxChar *), (wxStringCompareFn)compareFunction);
}
-#if WXWIN_COMPATIBILITY_2_4
-
void wxArrayString::Sort(bool reverseOrder)
{
Sort(reverseOrder ? wxStringSortDescending : wxStringSortAscending);
}
-#endif // WXWIN_COMPATIBILITY_2_4
-
void wxArrayString::DoSort()
{
wxCHECK_RET( !m_autoSort, wxT("can't use this method with sorted arrays") );
return TRUE;
}
+#endif // !wxUSE_STL
+
int wxStringSortAscending(wxString* s1, wxString* s2)
{
return wxStrcmp(s1->c_str(), s2->c_str());