Hugin trunk 0.1
Loading...
Searching...
No Matches
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.
 
int alphanum_comp (const char *l, const char *r)
 

Function Documentation

◆ alphanum_comp() [1/2]

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

Definition at line 124 of file alphanum.cpp.

References alphanum_impl().

◆ alphanum_comp() [2/2]

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(), SortFilename::operator()(), doj::alphanum_less::operator()(), and SortWxFilenames().

◆ alphanum_impl()

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

Definition at line 44 of file alphanum.cpp.

References threshold().

Referenced by alphanum_comp(), and alphanum_comp().