2020-02-17 21:05:20 +00:00
|
|
|
/*
|
|
|
|
* Copyright (c) 2001-2006
|
|
|
|
* DecisionSoft Limited. All rights reserved.
|
|
|
|
* Copyright (c) 2004-2006
|
|
|
|
* Progress Software Corporation. All rights reserved.
|
|
|
|
* Copyright (c) 2004-2006
|
|
|
|
* Oracle. All rights reserved.
|
|
|
|
*
|
|
|
|
* See the file LICENSE for redistribution information.
|
|
|
|
*
|
2020-02-17 21:11:31 +00:00
|
|
|
* $Id: Collation.hpp,v 1.9 2007/07/10 16:28:57 jpcs Exp $
|
2020-02-17 21:05:20 +00:00
|
|
|
*/
|
|
|
|
|
2020-02-17 21:11:31 +00:00
|
|
|
#ifndef COLLATION_HPP
|
|
|
|
#define COLLATION_HPP
|
2020-02-17 21:05:20 +00:00
|
|
|
|
|
|
|
#include <xqilla/framework/XQillaExport.hpp>
|
|
|
|
#include <xercesc/util/XercesDefs.hpp>
|
|
|
|
|
|
|
|
class Sequence;
|
|
|
|
class DynamicContext;
|
|
|
|
|
|
|
|
class XQILLA_API Collation
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
virtual ~Collation() {};
|
|
|
|
|
|
|
|
virtual const XMLCh* getCollationName() const = 0;
|
|
|
|
virtual Sequence sort(Sequence data, const DynamicContext* context) const = 0;
|
|
|
|
virtual int compare(const XMLCh* const string1, const XMLCh* const string2) const = 0;
|
|
|
|
|
|
|
|
protected:
|
|
|
|
Collation() {}
|
|
|
|
};
|
|
|
|
|
2020-02-17 21:11:31 +00:00
|
|
|
#endif
|