(file) Return to String.cpp CVS log (file) (dir) Up to [Pegasus] / pegasus / src / Pegasus / Common

Diff for /pegasus/src/Pegasus/Common/String.cpp between version 1.28 and 1.28.2.1

version 1.28, 2001/07/16 01:35:16 version 1.28.2.1, 2001/08/02 02:15:49
Line 434 
Line 434 
     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++)


Legend:
Removed from v.1.28  
changed lines
  Added in v.1.28.2.1

No CVS admin address has been configured
Powered by
ViewCVS 0.9.2