[Overview][Constants][Types][Classes][Procedures and functions][Variables][Index] Reference for unit 'LazFileCache' (#lazutils)

CompareFileStateItems

Gets the relative order for the file names in the specified TFileStateCacheItem entries.

Declaration

Source position: lazfilecache.pas line 110

function CompareFileStateItems(

  Data1: Pointer;

  Data2: Pointer

):Integer;

Arguments

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

TFileStateCacheItem

  

Contains information about a file or directory in the state caching mechanism.

CompareFilenames

  

Gets the relative sort order for the specified file names.


Version 4.0 Generated 2025-05-03 Home