dbertoni    2002/09/25 22:13:21

  Modified:    c/src/PlatformSupport DOMStringHelper.hpp
  Log:
  New function object for XalanDOMString pointer comparisons.
  
  Revision  Changes    Path
  1.63      +25 -0     xml-xalan/c/src/PlatformSupport/DOMStringHelper.hpp
  
  Index: DOMStringHelper.hpp
  ===================================================================
  RCS file: /home/cvs/xml-xalan/c/src/PlatformSupport/DOMStringHelper.hpp,v
  retrieving revision 1.62
  retrieving revision 1.63
  diff -u -r1.62 -r1.63
  --- DOMStringHelper.hpp       26 Sep 2002 00:13:31 -0000      1.62
  +++ DOMStringHelper.hpp       26 Sep 2002 05:13:21 -0000      1.63
  @@ -2619,6 +2619,31 @@
   
   
   /**
  + * Less than functor for DOMStrings
  + * 
  + * @param theLHS first string to compare
  + * @param theRHS second string to compare
  + * @return true if the theLHS is less than theRHSl
  + */
  +#if defined(XALAN_NO_NAMESPACES)
  +struct DOMStringPointerLessThanFunction : public binary_function<const 
XalanDOMString*, const XalanDOMString*, bool>
  +#else
  +struct DOMStringPointerLessThanFunction : public std::binary_function<const 
XalanDOMString*, const XalanDOMString*, bool>
  +#endif
  +{
  +     result_type
  +     operator() (first_argument_type         theLHS,
  +                             second_argument_type    theRHS) const
  +     {
  +             assert(theLHS != 0 && theRHS != 0);
  +
  +             return compare(*theLHS, *theRHS) < 0 ? true : false;
  +     }
  +};
  +
  +
  +
  +/**
    * Less than functor for DOMStrings which ignores case for the characters 
a-z and A-Z
    * 
    * @param theLHS first string to compare
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to