You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@xerces.apache.org by tn...@apache.org on 2001/01/25 20:23:18 UTC

cvs commit: xml-xerces/c/src/util XMLUCSTranscoder.cpp

tng         01/01/25 11:23:17

  Modified:    c/src/dom DOMString.cpp ElementDefinitionImpl.cpp
                        ElementNSImpl.cpp
               c/src/util XMLUCSTranscoder.cpp
  Log:
  Some bug fixes + Cleanup.  Fixed by Khaled Noaman.
  
  Revision  Changes    Path
  1.19      +3 -1      xml-xerces/c/src/dom/DOMString.cpp
  
  Index: DOMString.cpp
  ===================================================================
  RCS file: /home/cvs/xml-xerces/c/src/dom/DOMString.cpp,v
  retrieving revision 1.18
  retrieving revision 1.19
  diff -u -r1.18 -r1.19
  --- DOMString.cpp	2000/08/03 20:39:53	1.18
  +++ DOMString.cpp	2001/01/25 19:22:50	1.19
  @@ -56,6 +56,9 @@
   
   /*
    * $Log: DOMString.cpp,v $
  + * Revision 1.19  2001/01/25 19:22:50  tng
  + * Some bug fixes + Cleanup.  Fixed by Khaled Noaman.
  + *
    * Revision 1.18  2000/08/03 20:39:53  jberry
    * Add prototype for getDomConverter(), eliminating compiler warning
    *
  @@ -496,7 +499,6 @@
       if (srcString != 0)
       {
           XMLLCPTranscoder*  uniConverter = getDomConverter();
  -        unsigned int    len = 0;
   
           unsigned int srcLen = strlen(srcString);
           if (srcLen == 0)
  
  
  
  1.9       +2 -2      xml-xerces/c/src/dom/ElementDefinitionImpl.cpp
  
  Index: ElementDefinitionImpl.cpp
  ===================================================================
  RCS file: /home/cvs/xml-xerces/c/src/dom/ElementDefinitionImpl.cpp,v
  retrieving revision 1.8
  retrieving revision 1.9
  diff -u -r1.8 -r1.9
  --- ElementDefinitionImpl.cpp	2000/04/07 20:58:36	1.8
  +++ ElementDefinitionImpl.cpp	2001/01/25 19:22:53	1.9
  @@ -55,7 +55,7 @@
    */
   
   /*
  - * $Id: ElementDefinitionImpl.cpp,v 1.8 2000/04/07 20:58:36 lehors Exp $
  + * $Id: ElementDefinitionImpl.cpp,v 1.9 2001/01/25 19:22:53 tng Exp $
    */
   
   #include "ElementDefinitionImpl.hpp"
  @@ -67,7 +67,7 @@
                                                const DOMString &nam)
       : NodeImpl(ownerDoc) 
   {
  -    name = name.clone();
  +    name = nam.clone();
       attributes = 0;
   };
   
  
  
  
  1.8       +2 -2      xml-xerces/c/src/dom/ElementNSImpl.cpp
  
  Index: ElementNSImpl.cpp
  ===================================================================
  RCS file: /home/cvs/xml-xerces/c/src/dom/ElementNSImpl.cpp,v
  retrieving revision 1.7
  retrieving revision 1.8
  diff -u -r1.7 -r1.8
  --- ElementNSImpl.cpp	2000/08/17 22:47:09	1.7
  +++ ElementNSImpl.cpp	2001/01/25 19:22:55	1.8
  @@ -55,7 +55,7 @@
    */
   
   /*
  - * $Id: ElementNSImpl.cpp,v 1.7 2000/08/17 22:47:09 lehors Exp $
  + * $Id: ElementNSImpl.cpp,v 1.8 2001/01/25 19:22:55 tng Exp $
    */
   
   #include <util/XMLUniDefs.hpp>
  @@ -64,7 +64,7 @@
   #include "DOM_DOMException.hpp"
   
   ElementNSImpl::ElementNSImpl(DocumentImpl *ownerDoc, const DOMString &nam) :
  -    ElementImpl(ownerDoc, name)
  +    ElementImpl(ownerDoc, nam)
   {
       this->namespaceURI=null;	//DOM Level 2
       this->localName=null;       //DOM Level 2
  
  
  
  1.6       +1 -0      xml-xerces/c/src/util/XMLUCSTranscoder.cpp
  
  Index: XMLUCSTranscoder.cpp
  ===================================================================
  RCS file: /home/cvs/xml-xerces/c/src/util/XMLUCSTranscoder.cpp,v
  retrieving revision 1.5
  retrieving revision 1.6
  diff -u -r1.5 -r1.6
  --- XMLUCSTranscoder.cpp	2000/05/15 22:31:23	1.5
  +++ XMLUCSTranscoder.cpp	2001/01/25 19:23:10	1.6
  @@ -245,6 +245,7 @@
               //  Then make sure its a legal trailing char. If not, throw
               //  an exception.
               //
  +            if ( !( (trailCh >= 0xDC00) && (trailCh <= 0xDFFF) ) )
               ThrowXML(TranscodingException, XMLExcepts::Trans_BadTrailingSurrogate);
   
               // And now combine the two into a single output char