[Overview][Constants][Types][Classes][Procedures and functions][Variables][Index] Reference for unit 'sysutils' (#rtl)

TStringHelper.CompareOrdinal

Compare 2 strings byte for byte

Declaration

Source position: syshelph.inc line 53

public class function TStringHelper.CompareOrdinal(

  const A: string;

  const B: string

):Integer; overload;

class function TStringHelper.CompareOrdinal(

  const A: string;

  IndexA: Integer;

  const B: string;

  IndexB: Integer;

  ALen: Integer

):Integer; overload;

Description

CompareOrdinal compares 2 strings A and B bytewise. It is faster than a regular compare, but offers less options.

Optionally, a zero-based starting index for the compare can be given for each of the strings: IndexA and IndexB. In this case a maximum amount of characters (ALen) to be compared must also be specified.

Errors

None.

See also

TStringHelper.Compare

  

Compare 2 strings

TStringHelper.CompareTo

  

Compare string to another


Documentation generated on: Mar 17 2017