From 013cc42e8d182db5daa3907cc93c29c1886a112b Mon Sep 17 00:00:00 2001 From: Max Horn Date: Thu, 21 Nov 2002 02:53:49 +0000 Subject: [PATCH] operator < and > for String now ignore case svn-id: r5649 --- common/str.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/common/str.cpp b/common/str.cpp index db610de9475..685faf85fa1 100644 --- a/common/str.cpp +++ b/common/str.cpp @@ -246,16 +246,16 @@ bool ConstString::operator !=(const char* x) const bool ConstString::operator < (const ConstString& x) const { - if (!_len || !x._len) // Any or both particpants are empty? + if (!_len || !x._len) // Any or both empty? return !_len && x._len; // Less only if this string is empty and the other isn't - return strcmp(_str, x._str) < 0; + return scumm_stricmp(_str, x._str) < 0; } bool ConstString::operator <= (const ConstString& x) const { - if (!_len || !x._len) // Any or both particpants are empty? + if (!_len || !x._len) // Any or both empty? return !_len; // Less or equal unless the other string is empty and this one isn't - return strcmp(_str, x._str) <= 0; + return scumm_stricmp(_str, x._str) <= 0; } bool ConstString::operator > (const ConstString& x) const