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...@locus.apache.org on 2000/08/15 21:43:07 UTC

cvs commit: xml-xalan/c/src/XMLSupport FormatterToXML.cpp

dbertoni    00/08/15 12:43:07

  Modified:    c/src/XMLSupport FormatterToXML.cpp
  Log:
  Changes for AIX.
  
  Revision  Changes    Path
  1.22      +8 -2      xml-xalan/c/src/XMLSupport/FormatterToXML.cpp
  
  Index: FormatterToXML.cpp
  ===================================================================
  RCS file: /home/cvs/xml-xalan/c/src/XMLSupport/FormatterToXML.cpp,v
  retrieving revision 1.21
  retrieving revision 1.22
  diff -u -r1.21 -r1.22
  --- FormatterToXML.cpp	2000/07/25 14:45:38	1.21
  +++ FormatterToXML.cpp	2000/08/15 19:43:07	1.22
  @@ -241,6 +241,11 @@
   
   	m_attrCharsMap[0x0A] = 'S';
   	m_attrCharsMap[0x0D] = 'S';
  +
  +	for(i = 160; i < SPECIALSSIZE; i++)
  +	{
  +		m_attrCharsMap[i] = 'S';
  +	}
   }
   
   
  @@ -259,6 +264,7 @@
   
   	memset(m_charsMap, 'S', 20);
   
  +	// $$$ ToDo: I believe these are redundant...
   	m_charsMap[0x0A] = 'S';
   	m_charsMap[0x0D] = 'S';
   	m_charsMap[9] = '\0';
  @@ -330,7 +336,7 @@
   {
   	if(m_bytesEqualChars == true)
   	{
  -		m_byteBuf[m_pos++] = static_cast<ByteBufferType::value_type>(ch);
  +		m_byteBuf[m_pos++] = ByteBufferType::value_type(ch);
   
   		if(m_pos == s_maxBufferSize)
   		{
  @@ -362,7 +368,7 @@
   	{
   		for(DOMCharBufferType::size_type i = start; i < n; ++i)
   		{
  -			m_byteBuf[m_pos++] = static_cast<ByteBufferType::value_type>(chars[i]);
  +			m_byteBuf[m_pos++] = ByteBufferType::value_type(chars[i]);
   
   			if(m_pos == s_maxBufferSize)
   			{