You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@xalan.apache.org by db...@apache.org on 2001/04/11 04:14:10 UTC

cvs commit: xml-xalan/c/src/PlatformSupport DOMStringHelper.cpp DOMStringHelper.hpp DoubleSupport.cpp XalanDOMStringPool.hpp

dbertoni    01/04/10 19:14:09

  Modified:    c/src/PlatformSupport DOMStringHelper.cpp
                        DOMStringHelper.hpp DoubleSupport.cpp
                        XalanDOMStringPool.hpp
  Log:
  Changes for OS/390 port.
  
  Revision  Changes    Path
  1.54      +14 -0     xml-xalan/c/src/PlatformSupport/DOMStringHelper.cpp
  
  Index: DOMStringHelper.cpp
  ===================================================================
  RCS file: /home/cvs/xml-xalan/c/src/PlatformSupport/DOMStringHelper.cpp,v
  retrieving revision 1.53
  retrieving revision 1.54
  diff -u -r1.53 -r1.54
  --- DOMStringHelper.cpp	2001/03/29 22:11:12	1.53
  +++ DOMStringHelper.cpp	2001/04/11 02:14:07	1.54
  @@ -117,6 +117,20 @@
   
   
   
  +#if defined(OS390)
  +//                                                                       
  +//  Cannot use the OS/390 c/c++ towupper and towlower functions in the   
  +//  Unicode environment. We will use mytowupper and mytowlower here.     
  +//                                                                       
  +#undef towupper                                                          
  +#undef towlower                                                          
  +#define towupper mytowupper                                              
  +#define towlower mytowlower                                              
  +
  +#endif
  +
  +
  +
   // The maximum number of digits that sprintf can put in a buffer.
   // 100 for now.  We're using this because we want to avoid transcoding
   // number strings when we don't have to,
  
  
  
  1.43      +1 -1      xml-xalan/c/src/PlatformSupport/DOMStringHelper.hpp
  
  Index: DOMStringHelper.hpp
  ===================================================================
  RCS file: /home/cvs/xml-xalan/c/src/PlatformSupport/DOMStringHelper.hpp,v
  retrieving revision 1.42
  retrieving revision 1.43
  diff -u -r1.42 -r1.43
  --- DOMStringHelper.hpp	2001/02/08 21:38:57	1.42
  +++ DOMStringHelper.hpp	2001/04/11 02:14:07	1.43
  @@ -81,7 +81,7 @@
   #include <cwchar>
   #endif
   
  -#if defined(AIX)
  +#if defined(AIX) || defined(OS390)
   #include <wchar.h>
   #elif defined(__GNUC__)
   #include <wctype.h>
  
  
  
  1.22      +57 -0     xml-xalan/c/src/PlatformSupport/DoubleSupport.cpp
  
  Index: DoubleSupport.cpp
  ===================================================================
  RCS file: /home/cvs/xml-xalan/c/src/PlatformSupport/DoubleSupport.cpp,v
  retrieving revision 1.21
  retrieving revision 1.22
  diff -u -r1.21 -r1.22
  --- DoubleSupport.cpp	2001/02/16 20:12:25	1.21
  +++ DoubleSupport.cpp	2001/04/11 02:14:08	1.22
  @@ -527,7 +527,64 @@
   
   			for(unsigned int i = 0; i < theLength; ++i)
   			{
  +#if !defined(XALAN_NON_ASCII_PLATFORM)
   				theBuffer[i] = char(theString[i]);
  +#else
  +				switch(theChar)
  +				{
  +				case XalanUnicode::charHyphenMinus:
  +					theBuffer[i] = '-';
  +					break;
  +
  +				case XalanUnicode::charFullStop:
  +					theBuffer[i] = '.';
  +					break;
  +
  +				case XalanUnicode::charDigit_0:
  +					theBuffer[i] = '0';
  +					break;
  +
  +				case XalanUnicode::charDigit_1:
  +					theBuffer[i] = '1';
  +					break;
  +
  +				case XalanUnicode::charDigit_2:
  +					theBuffer[i] = '2';
  +					break;
  +
  +				case XalanUnicode::charDigit_3:
  +					theBuffer[i] = '3';
  +					break;
  +
  +				case XalanUnicode::charDigit_4:
  +					theBuffer[i] = '4';
  +					break;
  +
  +				case XalanUnicode::charDigit_5:
  +					theBuffer[i] = '5';
  +					break;
  +
  +				case XalanUnicode::charDigit_6:
  +					theBuffer[i] = '6';
  +					break;
  +
  +				case XalanUnicode::charDigit_7:
  +					theBuffer[i] = '7';
  +					break;
  +
  +				case XalanUnicode::charDigit_8:
  +					theBuffer[i] = '8';
  +					break;
  +
  +				case XalanUnicode::charDigit_9:
  +					theBuffer[i] = '9';
  +					break;
  +
  +				default:
  +					theBuffer[i] = 'Z';
  +					break;
  +				}
  +#endif
   			}
   
   			theBuffer[theLength] = '\0';
  
  
  
  1.6       +1 -1      xml-xalan/c/src/PlatformSupport/XalanDOMStringPool.hpp
  
  Index: XalanDOMStringPool.hpp
  ===================================================================
  RCS file: /home/cvs/xml-xalan/c/src/PlatformSupport/XalanDOMStringPool.hpp,v
  retrieving revision 1.5
  retrieving revision 1.6
  diff -u -r1.5 -r1.6
  --- XalanDOMStringPool.hpp	2001/03/29 22:12:06	1.5
  +++ XalanDOMStringPool.hpp	2001/04/11 02:14:08	1.6
  @@ -77,7 +77,7 @@
   {
   public:
   
  -	class StringKey
  +	class XALAN_PLATFORMSUPPORT_EXPORT StringKey
   	{
   	public:
   
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: xalan-cvs-unsubscribe@xml.apache.org
For additional commands, e-mail: xalan-cvs-help@xml.apache.org