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

UTF8CompareLatinTextFast

Like UTF8CompareText but does not return strict alphabetical order.

Declaration

Source position: lazutf8.pas line 177

function UTF8CompareLatinTextFast(

  const S1: string;

  const S2: string

):PtrInt;

Description

Like UTF8CompareText but does not return strict alphabetical order. The order is deterministic and good for binary search and similar uses. Optimizes comparison of single-byte encoding and also multi-byte portions when they are equal. Otherwise falls back to WideCompareText.