46 enum mode_t { STRING, NUMBER } mode=STRING;
53 while((l_char=*l) && (r_char=*r))
56 const bool l_digit=isdigit(l_char)!=0, r_digit=isdigit(r_char)!=0;
58 if(l_digit && r_digit)
74 const int diff=l_char - r_char;
89 unsigned long l_int=strtoul(l, &end, 10);
93 unsigned long r_int=strtoul(r, &end, 10);
97 const long diff=l_int-r_int;
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...
bool operator()(const std::string &left, const std::string &right) const
int alphanum_impl(const char *l, const char *r)