xalan-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dbert...@apache.org
Subject cvs commit: xml-xalan/c/src/xalanc/XMLSupport FormatterToXML_UTF8.cpp FormatterToXML_UTF8.hpp
Date Thu, 17 Jul 2003 01:54:51 GMT
dbertoni    2003/07/16 18:54:51

  Modified:    c/src/xalanc/XMLSupport FormatterToXML_UTF8.cpp
                        FormatterToXML_UTF8.hpp
  Log:
  Use new overload of startsWith().  Changed string to wide string for efficiency.
  
  Revision  Changes    Path
  1.3       +21 -20    xml-xalan/c/src/xalanc/XMLSupport/FormatterToXML_UTF8.cpp
  
  Index: FormatterToXML_UTF8.cpp
  ===================================================================
  RCS file: /home/cvs/xml-xalan/c/src/xalanc/XMLSupport/FormatterToXML_UTF8.cpp,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- FormatterToXML_UTF8.cpp	15 Jul 2003 05:14:12 -0000	1.2
  +++ FormatterToXML_UTF8.cpp	17 Jul 2003 01:54:51 -0000	1.3
  @@ -183,7 +183,8 @@
   	{
   		if(startsWith(
   			m_doctypePublic,
  -			s_xhtmlDocTypeString) == true)
  +			s_xhtmlDocTypeString,
  +			s_xhtmlDocTypeStringLength) == true)
   		{
   			m_spaceBeforeClose = true;
   		}
  @@ -1456,26 +1457,26 @@
   		FXML_SIZE(s_cdataCloseString);
   
   
  -const char	FormatterToXML_UTF8::s_xhtmlDocTypeString[] =
  +const XalanDOMChar	FormatterToXML_UTF8::s_xhtmlDocTypeString[] =
   {
  -	char(XalanUnicode::charHyphenMinus),
  -	char(XalanUnicode::charSolidus),
  -	char(XalanUnicode::charSolidus),
  -	char(XalanUnicode::charLetter_W),
  -	char(XalanUnicode::charDigit_3),
  -	char(XalanUnicode::charLetter_C),
  -	char(XalanUnicode::charSolidus),
  -	char(XalanUnicode::charSolidus),
  -	char(XalanUnicode::charLetter_D),
  -	char(XalanUnicode::charLetter_T),
  -	char(XalanUnicode::charLetter_D),
  -	char(XalanUnicode::charSpace),
  -	char(XalanUnicode::charLetter_X),
  -	char(XalanUnicode::charLetter_H),
  -	char(XalanUnicode::charLetter_T),
  -	char(XalanUnicode::charLetter_M),
  -	char(XalanUnicode::charLetter_L),
  -	char(0)
  +	XalanUnicode::charHyphenMinus,
  +	XalanUnicode::charSolidus,
  +	XalanUnicode::charSolidus,
  +	XalanUnicode::charLetter_W,
  +	XalanUnicode::charDigit_3,
  +	XalanUnicode::charLetter_C,
  +	XalanUnicode::charSolidus,
  +	XalanUnicode::charSolidus,
  +	XalanUnicode::charLetter_D,
  +	XalanUnicode::charLetter_T,
  +	XalanUnicode::charLetter_D,
  +	XalanUnicode::charSpace,
  +	XalanUnicode::charLetter_X,
  +	XalanUnicode::charLetter_H,
  +	XalanUnicode::charLetter_T,
  +	XalanUnicode::charLetter_M,
  +	XalanUnicode::charLetter_L,
  +	XalanDOMChar(0)
   };
   
   const XalanDOMString::size_type		FormatterToXML_UTF8::s_xhtmlDocTypeStringLength =
  
  
  
  1.4       +1 -1      xml-xalan/c/src/xalanc/XMLSupport/FormatterToXML_UTF8.hpp
  
  Index: FormatterToXML_UTF8.hpp
  ===================================================================
  RCS file: /home/cvs/xml-xalan/c/src/xalanc/XMLSupport/FormatterToXML_UTF8.hpp,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -r1.3 -r1.4
  --- FormatterToXML_UTF8.hpp	15 Jul 2003 05:14:12 -0000	1.3
  +++ FormatterToXML_UTF8.hpp	17 Jul 2003 01:54:51 -0000	1.4
  @@ -569,7 +569,7 @@
   	/**
    	 * The string "-//W3C//DTD XHTML".
    	 */
  - 	static const char						s_xhtmlDocTypeString[];
  + 	static const XalanDOMChar				s_xhtmlDocTypeString[];
   
   	static const XalanDOMString::size_type	s_xhtmlDocTypeStringLength;
   
  
  
  

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


Mime
View raw message