C4 Engine
C4 Engine API Documentation

Text::CompareTextCaseless

Defined in:  TSText.h
Compares two strings for equality, ignoring case.
Prototype

bool CompareTextCaseless(const char *s1, const char *s2);

bool CompareTextCaseless(const char *s1, const char *s2, int32 max);

Parameters
s1 A pointer to the first character string.
s2 A pointer to the second character string.
max The maximum number of bytes to compare.
Description
The CompareTextCaseless function returns a boolean value indicating whether the two strings specified by the s1 and s2 parameters are equal when case is ignored. All lowercase characters between a and z are considered equal to their corresponding uppercase characters between A and Z.

In general, both strings should be null-terminated by a zero byte. The comparison only goes as far as the length of the shorter string. If the max parameter is specified, then at most max bytes of each string are compared, even if both strings are longer.
See Also

Text::CompareText

Text::CompareTextLessThan

Text::CompareTextLessThanCaseless

Text::CompareTextLessEqual

Text::CompareTextLessEqualCaseless