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

TStringHelper.Compare

Compare 2 strings

Declaration

Source position: syshelph.inc line 47

public class function TStringHelper.Compare(

  const A: string;

  const B: string

):Integer; overload;

class function TStringHelper.Compare(

  const A: string;

  const B: string;

  IgnoreCase: Boolean

):Integer; overload;

class function TStringHelper.Compare(

  const A: string;

  const B: string;

  Options: TCompareOptions

):Integer; overload;

class function TStringHelper.Compare(

  const A: string;

  IndexA: Integer;

  const B: string;

  IndexB: Integer;

  ALen: Integer

):Integer; overload;

class function TStringHelper.Compare(

  const A: string;

  IndexA: Integer;

  const B: string;

  IndexB: Integer;

  ALen: Integer;

  IgnoreCase: Boolean

):Integer; overload;

class function TStringHelper.Compare(

  const A: string;

  IndexA: Integer;

  const B: string;

  IndexB: Integer;

  ALen: Integer;

  Options: TCompareOptions

):Integer; overload;

Description

Compare compares strings A and B. It returns the following result:

The comparison can be influenced by using the appropriate overloaded version of the function.

Errors

None.

See also

TStringHelper.CompareOrdinal

  

Compare 2 strings byte for byte

TCompareOption

  

How to compare strings

TStringHelper.CompareTo

  

Compare string to another


Documentation generated on: Mar 17 2017