STD.Str.CompareIgnoreCase( source1,source2 )
STD.Uni.CompareIgnoreCase( source1,source2 )
STD.Uni.LocaleCompareIgnoreCase( source1,source2, locale )
source1 | A string containing the data to compare. |
source2 | A string containing the data to compare. |
locale | A null-terminated string containing the language and country code to use to determine correct sort order and other operations. |
Return: | CompareIgnoreCase returns an INTEGER value. |
The CompareIgnoreCase functions return zero (0) if the source1 and source2 strings contain the same data, ignoring any differences in the case of the letters. These functions return negative one (-1) if source1 < source2 or positive one (1) if source1 > source2.
Example:
A := STD.Str.CompareIgnoreCase('ABCDE','abcde'); //A contains 0 -- they "match" B := STD.Str.CompareIgnoreCase('ABCDE','edcba'); //B contains -1 -- they do not "match"