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

CompareFilenameWithFileStateCacheItem

Compares a value to a file name in a TFileStateCacheItem instance.

Declaration

Source position: lazfilecache.pas line 111

function CompareFilenameWithFileStateCacheItem(

  Key: Pointer;

  Data: Pointer

):Integer;

Arguments

Key

  

Pointer to the string value compared to the file name in the file state cache entry.

Data

  

Pointer to the TFileStateCacheItem instance 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.

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