Internet Direct (Indy)
Home
PreviousUpNext
TIdSysNativeVCL.AnsiCompareText Method

Compares strings based on the current locale without case sensitivity.

Pascal
class function AnsiCompareText(
    const S1: AnsiString; 
    const S2: AnsiString
): Integer; overload;
Parameters 
Description 
S1 
Text for the comparison.
 
S2 
Text for the comparison. 

Integer - Return value for the text comparison.

AnsiCompareText is an overloaded class method that provides support for case-insensitive text comparisions in the Sys class helper. 

AnsiCompareText compares S1 to S2, without case sensitivity. The compare operation is controlled by the current locale. AnsiCompareText returns the following values under the specified conditions: 

 

Conditions 
Return Values 
S1 < S2 
<0 
S1 > S2 
>0 
S1 = S2 
=0 

 

For environments that offer native support for the Borland VCL and RTL, AnsiCompareText calls the AnsiCompareText routine in the SysUtils.pas unit.

CompareText

Internet Direct (Indy) version 10.1.5
Copyright © 1993-2006, Chad Z. Hower (aka Kudzu) and the Indy Pit Crew. All rights reserved.
Website http://www.indyproject.org.
Post feedback to the Indy Documentation newsgroup.