
|
TOP --> libjdl
- class CJdlStringListSorter
- extends CJdlSorter < CJdlStringList , CJdlString > as public
Sort a string list.
Sample usage:
#include "jdlstringlist.h"
static void sortit(CJdlStringList& list) {
CJdlStringListSorter(list,
CJdlStringListSorter::SENSITIVE,
CJdlStringListSorter::ASCENDING).Sort();
}
- Author:
-
Joe Linoff
- Version:
-
$Id: jdlstringlist.h,v 1.4 1999/06/12 18:26:00 jdl Exp $
- Source:
-
../../libjdl/src/jdlstringlist.h:226
- See Also:
-
CJdlString, CJdlStringList, CJdlVector
CJdlStringListSorter
- [public] Constructor.
Sample usage:
#include "jdlstringlist.h"
static void sortit(CJdlStringList& list) {
CJdlStringSorter(list,CJdlStringSorter::SENSITIVE,CJdlStringSorter::ASCENDING).sort();
}
~CJdlStringListSorter
- [public] Destructor.
CASE
- [public] Case sensitivity.
ORDER
- [public] Sort order: ASCENDING or DESCENDING.
Compare
- [public] Compare function used by the sort routine.
CJdlStringListSorter
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();
}
- Parameters:
-
list
| The string list.
| c
| Case sensitivity. The default is to be case sensitive.
| o
| Sort order. The default is ASCENDING.
|
CJdlStringListSorter
public virtual ~ CJdlStringListSorter ( ) ;
Destructor.
ORDER
public enum ORDER { ASCENDING ,
DESCENDING } ;
Sort order: ASCENDING or DESCENDING.
CASE
public enum CASE { SENSITIVE ,
INSENSITIVE } ;
Case sensitivity.
Compare
public virtual int Compare ( CJdlString & s1 ,
CJdlString & s2 ) const ;
Compare function used by the sort routine.
- See Also:
-
CJdlString::Compare
- Parameters:
-
s1
| String 1.
| s2
| String 2.
|
- Return:
-
0 if s1 == s2,
<0 if s1 < s2,
>0 if s1 > s2
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.
|