Public Member Functions | |
| bool | operator() (const CMCFileEntry &fe, const char *rhs) |
| sint | specialCompare (const CMCFileEntry &fe, const char *rhs) |
|
||||||||||||
|
Definition at line 295 of file path.h. References specialCompare().
00296 {
00297 return specialCompare(fe, rhs) < 0;
00298 }
|
|
||||||||||||
|
Definition at line 277 of file path.h. References NLMISC::CPath::CMCFileEntry::Name, sint, and uint8. Referenced by NLMISC::CPath::MCfind(), and operator()().
00278 {
00279 char *lhs = fe.Name;
00280 uint8 lchar, rchar;
00281 while (*lhs != '\0' && *rhs != '\0')
00282 {
00283 // lower case compare because name is in normal case
00284 lchar = ::tolower(*lhs);
00285 rchar = *rhs;
00286 if (lchar != rchar) return ((sint)lchar) - ((sint)rchar);
00287 ++lhs;
00288 ++rhs;
00289 }
00290 if (*lhs != 0) return 1;
00291 if (*rhs != 0) return -1;
00292 return 0;
00293 }
|
1.3.6