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

Diff for /pegasus/src/Pegasus/Common/XmlGenerator.cpp between version 1.11 and 1.12

version 1.11, 2013/01/09 11:55:36 version 1.12, 2013/01/11 15:50:01
Line 336 
Line 336 
 } }
  
  
 // The code is to checks for the case where the character  
 // type is char or unsigned char, depending on the platform  
 // and compiler.The check avoids comparing to >= 0 for unsigned char  
 // which triggers a GCC warning "comparison is always true"  
  
 template <class T>  //Based on the platforms CHAR_MIN == -127 or CHAR_MIN == 0
 bool isSpecialChar( T c)  //The above value is used to decide if the platform assumes
   //char as signed char or unsigned char required to stop build
   //btreaks for PPC under linux
   static Boolean isSpecialChar(const char &c)
 { {
   #if CHAR_MIN < 0
     return (((c < 0x20) && (c >= 0)) || (c == 0x7f));     return (((c < 0x20) && (c >= 0)) || (c == 0x7f));
 }  #else
   
 template <>  
 bool isSpecialChar(Sint8 c)  
 {  
     return (((c < 0x20) && (c >= 0)) || (c == 0x7f));  
 }  
   
 template <>  
 bool isSpecialChar( Uint8 c)  
 {  
     return ((c < 0x20) || (c == 0x7f));     return ((c < 0x20) || (c == 0x7f));
   #endif
 } }
  
 void XmlGenerator::_appendSpecialChar(PEGASUS_STD(ostream)& os, char c) void XmlGenerator::_appendSpecialChar(PEGASUS_STD(ostream)& os, char c)


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

No CVS admin address has been configured
Powered by
ViewCVS 0.9.2