TOP --> libjdl
Sort a string list.
Sample usage:
#include "jdlstringlist.h" static void sortit(CJdlStringList& list) { CJdlStringListSorter(list, CJdlStringListSorter::SENSITIVE, CJdlStringListSorter::ASCENDING).Sort(); }
#include "jdlstringlist.h" static void sortit(CJdlStringList& list) { CJdlStringSorter(list,CJdlStringSorter::SENSITIVE,CJdlStringSorter::ASCENDING).sort(); }
public CJdlStringListSorter ( CJdlStringList & list , CASE c = SENSITIVE , ORDER o = ASCENDING ) ;
Constructor. Sample usage:
#include "jdlstringlist.h" static void sortit(CJdlStringList& list) { CJdlStringSorter(list,CJdlStringSorter::SENSITIVE,CJdlStringSorter::ASCENDING).sort(); }
list | The string list. |
c | Case sensitivity. The default is to be case sensitive. |
o | Sort order. The default is ASCENDING. |
public virtual ~ CJdlStringListSorter ( ) ;
Destructor.
public enum ORDER { ASCENDING , DESCENDING } ;
Sort order: ASCENDING or DESCENDING.
public enum CASE { SENSITIVE , INSENSITIVE } ;
Case sensitivity.
public virtual int Compare ( CJdlString & s1 , CJdlString & s2 ) const ;
Compare function used by the sort routine.
s1 | String 1. |
s2 | String 2. |
This documentation was generated automatically by the ccdoc tool (version 0.7a).
Click here to submit a bug report or feature request.
Click here to return to the top of the page.