int32 FileNameIndCmp(s1p, s2p);
Lexically compares two filenames and determines whether one is less than, equal to, or greater than the other. This comparison uses the same case sensitivity as the file system, that is, case-insensitive on Mac OS X and Windows, case-sensitive on Linux. This function is similar to FileNameCmp, except you pass the function handles to the string data instead of pointers.
Name | Type | Description |
---|---|---|
s1p | PStr * | Pointer to a Pascal string. |
s2p | PStr * | Pointer to a Pascal string. |
<0, 0, or >0 if s1p is less than, equal to, or greater than s2p, respectively. Returns <0 if s1p is an initial substring of s2p.