Hugintrunk  0.1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Classes | Functions
doj Namespace Reference

Classes

struct  alphanum_less
 Functor class to compare two objects with the "Alphanum Algorithm". More...
 

Functions

int alphanum_impl (const char *l, const char *r)
 
int alphanum_comp (const std::string &l, const std::string &r)
 Compare l and r with the same semantics as strcmp(), but with the "Alphanum Algorithm" which produces more human-friendly results. More...
 
int alphanum_comp (const char *l, const char *r)
 

Function Documentation

IMPEX int doj::alphanum_comp ( const std::string &  l,
const std::string &  r 
)

Compare l and r with the same semantics as strcmp(), but with the "Alphanum Algorithm" which produces more human-friendly results.

Returns
negative if l<r, 0 if l==r, positive if l>r.

Definition at line 119 of file alphanum.cpp.

References alphanum_impl().

Referenced by checkVersion(), comparePluginItem(), compareVersion(), doj::alphanum_less::operator()(), SortFilename::operator()(), and SortWxFilenames().

IMPEX int doj::alphanum_comp ( const char *  l,
const char *  r 
)

Definition at line 124 of file alphanum.cpp.

References alphanum_impl().

int doj::alphanum_impl ( const char *  l,
const char *  r 
)

Definition at line 44 of file alphanum.cpp.

Referenced by alphanum_comp().