Encapsulation of natural order sorting for algorithms. More...
Classes | |
struct | greater |
A list compare binary predicate for reverse natural sort. More... | |
struct | less |
A list compare binary predicate for natural sort. More... | |
struct | reverse |
Reverse natural sorting. More... | |
Public Member Functions | |
bool | operator() (const std::string &s1, const std::string &s2) const |
Default (forward) natural sorting. More... | |
Static Public Member Functions | |
static int | compare (const std::string &s1, const std::string &s2) |
Natural compare for std::string. More... | |
Encapsulation of natural order sorting for algorithms.
Definition at line 63 of file stringOpsSort.H.
|
inlinestatic |
Natural compare for std::string.
Definition at line 71 of file stringOpsSort.H.
References Foam::stringOps::natstrcmp().
Referenced by seriesLess::operator()(), natural_sort::operator()(), natural_sort::reverse::operator()(), natural_sort::less< T >::operator()(), and natural_sort::greater< T >::operator()().
|
inline |
Default (forward) natural sorting.
Definition at line 82 of file stringOpsSort.H.
References natural_sort::compare().