xerces-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From t..@apache.org
Subject cvs commit: xml-xerces/c/src/xercesc/validators/datatype AbstractStringValidator.cpp DatatypeValidator.hpp
Date Wed, 02 Oct 2002 13:29:12 GMT
tng         2002/10/02 06:29:12

  Modified:    c/src/xercesc/validators/datatype
                        AbstractStringValidator.cpp DatatypeValidator.hpp
  Log:
  Since the compare function return int, so use XMLString::compareString instead of XMLString::equals
there.
  
  Revision  Changes    Path
  1.5       +4 -1      xml-xerces/c/src/xercesc/validators/datatype/AbstractStringValidator.cpp
  
  Index: AbstractStringValidator.cpp
  ===================================================================
  RCS file: /home/cvs/xml-xerces/c/src/xercesc/validators/datatype/AbstractStringValidator.cpp,v
  retrieving revision 1.4
  retrieving revision 1.5
  diff -u -r1.4 -r1.5
  --- AbstractStringValidator.cpp	24 Sep 2002 19:44:40 -0000	1.4
  +++ AbstractStringValidator.cpp	2 Oct 2002 13:29:12 -0000	1.5
  @@ -56,6 +56,9 @@
   
   /*
    * $Log$
  + * Revision 1.5  2002/10/02 13:29:12  tng
  + * Since the compare function return int, so use XMLString::compareString instead of XMLString::equals
there.
  + *
    * Revision 1.4  2002/09/24 19:44:40  tng
    * Performance: use XMLString::equals instead of XMLString::compareString
    *
  @@ -567,7 +570,7 @@
   int AbstractStringValidator::compare(const XMLCh* const lValue
                                      , const XMLCh* const rValue)
   {
  -    return !XMLString::equals(lValue, rValue);
  +    return XMLString::compareString(lValue, rValue);
   }
   
   void AbstractStringValidator::validate( const XMLCh* const content)
  
  
  
  1.5       +3 -3      xml-xerces/c/src/xercesc/validators/datatype/DatatypeValidator.hpp
  
  Index: DatatypeValidator.hpp
  ===================================================================
  RCS file: /home/cvs/xml-xerces/c/src/xercesc/validators/datatype/DatatypeValidator.hpp,v
  retrieving revision 1.4
  retrieving revision 1.5
  diff -u -r1.4 -r1.5
  --- DatatypeValidator.hpp	24 Sep 2002 19:44:40 -0000	1.4
  +++ DatatypeValidator.hpp	2 Oct 2002 13:29:12 -0000	1.5
  @@ -188,7 +188,7 @@
       /**
         * Returns whether the type is atomic or not
         *
  -      * To be redefined in List/Union validators  
  +      * To be redefined in List/Union validators
         */
       virtual bool isAtomic() const;
   
  @@ -422,7 +422,7 @@
   inline int DatatypeValidator::compare(const XMLCh* const lValue,
                                         const XMLCh* const rValue)
   {
  -    return !XMLString::equals(lValue, rValue);
  +    return XMLString::compareString(lValue, rValue);
   }
   
   // ---------------------------------------------------------------------------
  
  
  

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


Mime
View raw message