STD.Str.CompareIgnoreCase( src1, src2 )
STD.Uni.CompareIgnoreCase( src1, src2 )
STD.Uni.LocaleCompareIgnoreCase( src1, src2, locale_name )
| src1 | A string containing the data to compare. |
| src2 | A string containing the data to compare. |
| locale_name | 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"