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

Diff for /pegasus/src/Pegasus/Common/System.cpp between version 1.12 and 1.13

version 1.12, 2002/07/17 12:14:58 version 1.13, 2002/09/11 19:11:54
Line 37 
Line 37 
  
  
 #include <fstream> #include <fstream>
   #include <cctype>  // for tolower()
 #include "System.h" #include "System.h"
  
 #include <Pegasus/Common/PegasusVersion.h> #include <Pegasus/Common/PegasusVersion.h>
Line 71 
Line 72 
     return true;     return true;
 } }
  
   // ATTN: Move to platform-specific System implementation files and call
   // strcasecmp where it is available.
   Sint32 System::strcasecmp(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_NAMESPACE_END PEGASUS_NAMESPACE_END


Legend:
Removed from v.1.12  
changed lines
  Added in v.1.13

No CVS admin address has been configured
Powered by
ViewCVS 0.9.2