RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
SysUtils.StrIComp Function

Compares two strings without case sensitivity.

Pascal
function StrIComp(const Str1: PChar; const Str2: PChar): Integer;
C++
int StrIComp(const const char * Str1, const const char * Str2);

SysUtils

Call StrIComp to compare two strings without case sensitivity. StrIComp returns a value greater than 0 if Str1 > Str2, less than 0 if Str1 < Str2, and returns 0 if the strings are equal except for differences in case. 

When working with international characters, use AnsiStrIComp instead. 

 

Copyright(C) 2008 CodeGear(TM). All Rights Reserved.
What do you think about this topic? Send feedback!