version 1.28, 2001/07/16 01:35:16
|
version 1.28.2.1, 2001/08/02 02:15:49
|
|
|
return 0; | return 0; |
} | } |
| |
|
int String::compareNoCase(const char* s1, const char* s2) |
|
{ |
|
while (*s1 && *s2) |
|
{ |
|
int r = tolower(*s1++) - tolower(*s2++); |
|
|
|
if (r) |
|
return r; |
|
} |
|
|
|
if (*s2) |
|
return -1; |
|
else if (*s1) |
|
return 1; |
|
|
|
return 0; |
|
} |
|
|
PEGASUS_STD(ostream)& operator<<(PEGASUS_STD(ostream)& os, const String& x) | PEGASUS_STD(ostream)& operator<<(PEGASUS_STD(ostream)& os, const String& x) |
{ | { |
for (Uint32 i = 0, n = x.size(); i < n; i++) | for (Uint32 i = 0, n = x.size(); i < n; i++) |