Compare two filename (fileName1,fileName2). If iCaseSenisivity = 1, comparision is case sensitivity (like strcmp) If iCaseSenisivity = 2, comparision is not case sensitivity (like strcmpi or strcasecmp) If iCaseSenisivity = 0, case sensitivity is defaut of your operating system (like 1 on Unix, 2 on Windows) *
(fileName1,fileName2,iCaseSensitivity)
| 303 | |
| 304 | */ |
| 305 | extern int ZEXPORT unzStringFileNameCompare (fileName1,fileName2,iCaseSensitivity) |
| 306 | const char* fileName1; |
| 307 | const char* fileName2; |
| 308 | int iCaseSensitivity; |
| 309 | { |
| 310 | if (iCaseSensitivity==0) |
| 311 | iCaseSensitivity=CASESENSITIVITYDEFAULTVALUE; |
| 312 | |
| 313 | if (iCaseSensitivity==1) |
| 314 | return strcmp(fileName1,fileName2); |
| 315 | |
| 316 | return STRCMPCASENOSENTIVEFUNCTION(fileName1,fileName2); |
| 317 | } |
| 318 | |
| 319 | #ifndef BUFREADCOMMENT |
| 320 | #define BUFREADCOMMENT (0x400) |