Sign in Join
FPDoc Onlineexperiment

CompareDomNodeNames function

In unit Laz2_XMLCfg

Compares the names for the specified DOM nodes.

Declaration

pascal
function CompareDomNodeNames(DOMNode1: Pointer; DOMNode2: Pointer)
: Integer

Arguments

DOMNode1

Pointer to a DOM node examined in the routine.

DOMNode2

Pointer to a DOM node examined in the routine.

Function result

Relative sort order for the specified node pointers.

Description

CompareDomNodeNames is an Integer function used to compare the pointers to DOM nodes specified in DOMNode1 and DOMNode2. CompareDomNodeNames calls CompareStr to examine the names in the pointers. The return value contains the relative sort order for the node names as determined in the CompareStr routine.

CompareDomNodeNames is the routine passed as an argument to MergeSortLen in the TNodeCache.RefreshChildren method.

See also

An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.