You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@xerces.apache.org by pe...@apache.org on 2003/09/08 23:48:37 UTC

cvs commit: xml-xerces/c/src/xercesc/framework XMLFormatter.cpp XMLFormatter.hpp

peiyongz    2003/09/08 14:48:37

  Modified:    c/src/xercesc/framework XMLFormatter.cpp XMLFormatter.hpp
  Log:
  Restore pre2.3 constructors
  
  Revision  Changes    Path
  1.15      +30 -1     xml-xerces/c/src/xercesc/framework/XMLFormatter.cpp
  
  Index: XMLFormatter.cpp
  ===================================================================
  RCS file: /home/cvs/xml-xerces/c/src/xercesc/framework/XMLFormatter.cpp,v
  retrieving revision 1.14
  retrieving revision 1.15
  diff -u -r1.14 -r1.15
  --- XMLFormatter.cpp	4 Sep 2003 14:31:05 -0000	1.14
  +++ XMLFormatter.cpp	8 Sep 2003 21:48:36 -0000	1.15
  @@ -282,6 +282,35 @@
       fIsXML11 = XMLString::equals(docVersion, XMLUni::fgVersion1_1);
   }
   
  +XMLFormatter::XMLFormatter( const   char* const             outEncoding
  +                            ,       XMLFormatTarget* const  target
  +                            , const EscapeFlags             escapeFlags
  +                            , const UnRepFlags              unrepFlags
  +                            ,       MemoryManager* const    manager)
  +{
  +    XMLFormatter(outEncoding
  +               , "1.0"
  +               , target
  +               , escapeFlags
  +               , unrepFlags
  +               , manager);
  +}
  +
  +
  +XMLFormatter::XMLFormatter( const   XMLCh* const            outEncoding
  +                            ,       XMLFormatTarget* const  target
  +                            , const EscapeFlags             escapeFlags
  +                            , const UnRepFlags              unrepFlags
  +                            ,       MemoryManager* const    manager)
  +{
  +    XMLFormatter(outEncoding
  +               , XMLUni::fgVersion1_0
  +               , target
  +               , escapeFlags
  +               , unrepFlags
  +               , manager);
  +}
  +
   XMLFormatter::~XMLFormatter()
   {
       fMemoryManager->deallocate(fAposRef); //delete [] fAposRef;
  
  
  
  1.16      +21 -0     xml-xerces/c/src/xercesc/framework/XMLFormatter.hpp
  
  Index: XMLFormatter.hpp
  ===================================================================
  RCS file: /home/cvs/xml-xerces/c/src/xercesc/framework/XMLFormatter.hpp,v
  retrieving revision 1.15
  retrieving revision 1.16
  diff -u -r1.15 -r1.16
  --- XMLFormatter.hpp	30 May 2003 16:11:43 -0000	1.15
  +++ XMLFormatter.hpp	8 Sep 2003 21:48:36 -0000	1.16
  @@ -56,6 +56,9 @@
   
   /*
    * $Log$
  + * Revision 1.16  2003/09/08 21:48:36  peiyongz
  + * Restore pre2.3 constructors
  + *
    * Revision 1.15  2003/05/30 16:11:43  gareth
    * Fixes so we compile under VC7.1. Patch by Alberto Massari.
    *
  @@ -305,6 +308,24 @@
           ,       MemoryManager* const    manager = XMLPlatformUtils::fgMemoryManager
       );
   
  +    XMLFormatter
  +    (
  +        const   XMLCh* const            outEncoding
  +        ,       XMLFormatTarget* const  target
  +        , const EscapeFlags             escapeFlags = NoEscapes
  +        , const UnRepFlags              unrepFlags = UnRep_Fail
  +        ,       MemoryManager* const    manager = XMLPlatformUtils::fgMemoryManager
  +    );
  +
  +    XMLFormatter
  +    (
  +        const   char* const             outEncoding
  +        ,       XMLFormatTarget* const  target
  +        , const EscapeFlags             escapeFlags = NoEscapes
  +        , const UnRepFlags              unrepFlags = UnRep_Fail
  +        ,       MemoryManager* const    manager = XMLPlatformUtils::fgMemoryManager
  +    );
  +    
       ~XMLFormatter();
       //@}
   
  
  
  

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