Encapsulation of natural order sorting for algorithms. More...
Classes | |
| struct | list_greater |
| A Ulist compare binary predicate for reverse natural sort. More... | |
| struct | list_less |
| A UList 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... | |
| static bool | less (const std::string &s1, const std::string &s2) |
| Natural compare two strings for a less-than relationship. More... | |
| static bool | greater (const std::string &s1, const std::string &s2) |
| Natural compare two strings for a greater-than relationship. 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 natural_sort::greater(), natural_sort::less(), natural_sort::operator()(), natural_sort::reverse::operator()(), natural_sort::list_less< T >::operator()(), and natural_sort::list_greater< T >::operator()().


|
inlinestatic |
Natural compare two strings for a less-than relationship.
Definition at line 83 of file stringOpsSort.H.
References natural_sort::compare().

|
inlinestatic |
Natural compare two strings for a greater-than relationship.
Definition at line 95 of file stringOpsSort.H.
References natural_sort::compare().

|
inline |
Default (forward) natural sorting.
Definition at line 106 of file stringOpsSort.H.
References natural_sort::compare().
