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

TDOMNode.CompareName

Compares the NodeName in the DOM Node to the specified value.

Declaration

Source position: laz2_dom.pas line 304

public function TDOMNode.CompareName(

  const name: DOMString

):Integer; virtual;

Arguments

name

  

Value compared to the NodeName for the DOM node.

Function result

Difference between the ordinal character values for the first non-matching character in the compared names.

Description

CompareName is an Integer function used to compare the value in NodeName to the value specified in the name argument. NodeName and name are converted to DOMPChar types and passed as arguments an implementation routine used to compare the values.

The return value contains the difference between the ordinal character values for the first non-matching characters in the compared names. When the return value is 0 (zero), the compared values have the same content.

See also

TDOMNode.NodeName

  

Name for the DOM node.

DOMPChar

  

Type used for Pointers to Char values in DOM interfaces.

DOMString

  

Type used for String values in DOM interfaces.


Version 3.2 Generated 2024-02-25 Home