Version: 3.1.0
arrstr.h File Reference

Classes

class  wxArrayString
 wxArrayString is an efficient container for storing wxString objects. More...
 
class  wxSortedArrayString
 wxSortedArrayString is an efficient container for storing wxString objects which always keeps the string in alphabetical order. More...
 

Functions

int wxStringSortAscending (const wxString &s1, const wxString &s2)
 Comparison function comparing strings in alphabetical order. More...
 
int wxStringSortDescending (const wxString &s1, const wxString &s2)
 Comparison function comparing strings in reverse alphabetical order. More...
 
int wxDictionaryStringSortAscending (const wxString &s1, const wxString &s2)
 Comparison function comparing strings in dictionary order. More...
 
wxArrayString wxSplit (const wxString &str, const wxChar sep, const wxChar escape= '\\')
 Splits the given wxString object using the separator sep and returns the result as a wxArrayString. More...
 
wxString wxJoin (const wxArrayString &arr, const wxChar sep, const wxChar escape= '\\')
 Concatenate all lines of the given wxArrayString object using the separator sep and returns the result as a wxString. More...
 

Function Documentation

int wxDictionaryStringSortAscending ( const wxString s1,
const wxString s2 
)

Comparison function comparing strings in dictionary order.

Comparison function comparing strings in reverse dictionary order.

The "dictionary order" differs from the alphabetical order in that the strings differing not only in case are compared case-insensitively to ensure that "Aa" comes before "AB" in the sorted array, unlike with wxStringSortAscending().

This function can be used with wxSortedArrayString::Sort() or passed as an argument to wxSortedArrayString constructor.

See also
wxStringSortAscending(), wxDictionaryStringSortDescending()
Since
3.1.0

See wxDictionaryStringSortAscending() for the dictionary sort description.

See also
wxStringSortDescending()
Since
3.1.0
int wxStringSortAscending ( const wxString s1,
const wxString s2 
)

Comparison function comparing strings in alphabetical order.

This function can be used with wxSortedArrayString::Sort() or passed as an argument to wxSortedArrayString constructor.

See also
wxStringSortDescending(), wxDictionaryStringSortAscending()
Since
3.1.0
int wxStringSortDescending ( const wxString s1,
const wxString s2 
)

Comparison function comparing strings in reverse alphabetical order.

This function can be used with wxSortedArrayString::Sort() or passed as an argument to wxSortedArrayString constructor.

See also
wxStringSortAscending(), wxDictionaryStringSortAscending()
Since
3.1.0