CompareFileStateItems function
Gets the relative order for the file names in the specified TFileStateCacheItem entries.
Declaration
function CompareFileStateItems(Data1: Pointer; Data2: Pointer): IntegerArguments
Data1 | TFileStateCacheItem item with the file name compared in the routine. |
Data2 | TFileStateCacheItem item with the file name compared in the routine. |
Function result
Returns 0 if the UTF-8 file name have the same value. Returns -1 if the file name in Data1 comes before the file name in Data2. Returns 1 if the file name in Data1 comes after the file name in Data2.
Description
Used as the sort/compare routine for the TAVLTree instance in TFileStateCache.
See also
An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.
