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

CompareConfigMemStorageNames

Compares the specified PChar values to determine the relative order for the memory node paths.

Declaration

Source position: lazconfigstorage.pas line 156

function CompareConfigMemStorageNames(

  p1: PChar;

  p2: PChar

):Integer;

Arguments

p1

  

Node path compared up to the first '/' or #0 character.

p2

  

Node path compared up to the first '/' or #0 character.

Function result

Returns 0 if the arguments have the same value (or both are empty). Returns -1 if p1 has a shorter path length than (comes before) p2. Returns 1 if p1 has a longer path length than (comes after) p2.


Version 4.0 Generated 2025-05-03 Home