TMaskUTF8.CompareUTF8Sequences function
Indicates the difference between UTF-8 codepoints in the specified values.
Declaration
class function CompareUTF8Sequences(const P1: PChar; const P2: PChar)
: Integer; staticArguments
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.
An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.
