[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 67

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: SizeInt;

  const B: string;

  IndexB: SizeInt;

  ALen: SizeInt

):Integer; overload;

class function TStringHelper.Compare(

  const A: string;

  IndexA: SizeInt;

  const B: string;

  IndexB: SizeInt;

  ALen: SizeInt;

  IgnoreCase: Boolean

):Integer; overload;

class function TStringHelper.Compare(

  const A: string;

  IndexA: SizeInt;

  const B: string;

  IndexB: SizeInt;

  ALen: SizeInt;

  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: Jun 22 2020