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

TMaskUTF8.CompareUTF8Sequences

Indicates the difference between UTF-8 codepoints in the specified values.

Declaration

Source position: masks.pas line 240

protected class function TMaskUTF8.CompareUTF8Sequences(

  const P1: PChar;

  const P2: PChar

):Integer;

Arguments

P1

  

PChar type with UTF-8 codepoints compared in the method.

P2

  

PChar type with UTF-8 codepoints compared in the method.

Function result

numeric difference between differing codepoints, or zero when the same.

Description

CompareUTF8Sequences is an Integer class function used to compare the UTF-8 codepoints in the values specified by P1 and P2. The return value is the numeric difference between the byte values in the differing UTF-8 codepoints. The return value is 0 (zero) when P1 and P2 have the same UTF-8-encoded content.

CompareUTF8Sequences is used in the implementation of the CompileRange and IntfMatches methods.


Version 4.0 Generated 2025-05-03 Home