System.SysUtils.TStringHelper.CompareOrdinal

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

class function CompareOrdinal(const StrA: string; const StrB: string): Integer; overload; static;
class function CompareOrdinal(const StrA: string; IndexA: Integer; const StrB: string; IndexB: Integer; Length: Integer): Integer; overload; static;

Properties

Type Visibility Source Unit Parent
function public System.SysUtils.pas System.SysUtils TStringHelper

Description

CompareOrdinal compares two strings by evaluating the numeric values of the corresponding characters in each string.

This method is overloaded:

  • The first CompareOrdinal overloaded method compares StrA against StrB by evaluating the numeric values of the corresponding characters in each string.
  • The second CompareOrdinal overloaded method compares StrA against StrB and allows you to specify from what position in the strings (IndexA against IndexB) to start the comparison, and for what number of characters (Length).

See Also