(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.45 and 1.46

version 1.45, 2002/07/19 23:00:25 version 1.46, 2002/07/23 21:39:31
Line 408 
Line 408 
 { {
     for (Char16* p = &_rep->c16a[0]; *p; p++)     for (Char16* p = &_rep->c16a[0]; *p; p++)
     {     {
 #ifdef PEGASUS_HAS_EBCDIC          if (*p <= PEGASUS_MAX_PRINTABLE_CHAR)
         if (*p <= 255)  
 #else  
         if (*p <= 127)  
 #endif  
             *p = tolower(*p);             *p = tolower(*p);
     }     }
 } }
Line 494 
Line 490 
     {     {
         int r;         int r;
  
 #ifdef PEGASUS_HAS_EBCDIC          if (*_s1 <= PEGASUS_MAX_PRINTABLE_CHAR &&
         if (*_s1 <= 255 && *_s2 <= 255)              *_s2 <= PEGASUS_MAX_PRINTABLE_CHAR)
 #else  
         if (*_s1 <= 127 && *_s2 <= 127)  
 #endif  
         {         {
             r = tolower(*_s1++) - tolower(*_s2++);             r = tolower(*_s1++) - tolower(*_s2++);
         }         }
Line 536 
Line 529 
  
     while (n--)     while (n--)
     {     {
 #ifdef PEGASUS_HAS_EBCDIC          if (*p <= PEGASUS_MAX_PRINTABLE_CHAR &&
         if (*p <= 255 && *q <= 255)              *q <= PEGASUS_MAX_PRINTABLE_CHAR)
 #else  
         if (*p <= 127 && *q <= 127)  
 #endif  
         {         {
             if (tolower(*p++) != tolower(*q++))             if (tolower(*p++) != tolower(*q++))
                 return false;                 return false;
Line 577 
Line 567 
  
 inline Uint16 _ToLower(Uint16 ch) inline Uint16 _ToLower(Uint16 ch)
 { {
 #ifdef PEGASUS_HAS_EBCDIC      return ch <= PEGASUS_MAX_PRINTABLE_CHAR ? tolower(char(ch)) : ch;
     return ch <= 255 ? tolower(char(ch)) : ch;  
 #else  
     return ch <= 127 ? tolower(char(ch)) : ch;  
 #endif  
 } }
  
 inline Boolean _Equal(MatchChar ch1, MatchChar ch2, int nocase) inline Boolean _Equal(MatchChar ch1, MatchChar ch2, int nocase)


Legend:
Removed from v.1.45  
changed lines
  Added in v.1.46

No CVS admin address has been configured
Powered by
ViewCVS 0.9.2