2002-06-04 21:36:48 +02:00
|
|
|
/*
|
|
|
|
* PROGRAM: JRD International support
|
|
|
|
* MODULE: intl_classes.h
|
|
|
|
* DESCRIPTION: International text handling definitions
|
|
|
|
*
|
2004-06-30 03:45:18 +02:00
|
|
|
* The contents of this file are subject to the Initial
|
|
|
|
* Developer's Public License Version 1.0 (the "License");
|
|
|
|
* you may not use this file except in compliance with the
|
|
|
|
* License. You may obtain a copy of the License at
|
|
|
|
* http://www.ibphoenix.com/main.nfs?a=ibphoenix&page=ibp_idpl.
|
2002-06-04 21:36:48 +02:00
|
|
|
*
|
2004-06-30 03:45:18 +02:00
|
|
|
* Software distributed under the License is distributed AS IS,
|
|
|
|
* WITHOUT WARRANTY OF ANY KIND, either express or implied.
|
|
|
|
* See the License for the specific language governing rights
|
|
|
|
* and limitations under the License.
|
2002-06-04 21:36:48 +02:00
|
|
|
*
|
2004-06-30 03:45:18 +02:00
|
|
|
* The Original Code was created by Nickolay Samofatov
|
|
|
|
* for the Firebird Open Source RDBMS project.
|
|
|
|
*
|
|
|
|
* Copyright (c) 2004 Nickolay Samofatov <nickolay@broadviewsoftware.com>
|
|
|
|
* and all contributors signed below.
|
|
|
|
*
|
|
|
|
* All Rights Reserved.
|
|
|
|
* Contributor(s): ______________________________________.
|
2002-06-04 21:36:48 +02:00
|
|
|
*
|
|
|
|
*/
|
|
|
|
|
2003-10-03 03:53:34 +02:00
|
|
|
#ifndef JRD_INTL_CLASSES_H
|
|
|
|
#define JRD_INTL_CLASSES_H
|
2002-06-04 21:36:48 +02:00
|
|
|
|
2003-11-03 18:14:45 +01:00
|
|
|
#include "firebird.h"
|
|
|
|
#include "../jrd/jrd.h"
|
2005-05-28 00:45:31 +02:00
|
|
|
#include "../jrd/intlobj_new.h"
|
|
|
|
#include "../jrd/constants.h"
|
|
|
|
#include "../jrd/unicode_util.h"
|
|
|
|
|
|
|
|
typedef SSHORT CHARSET_ID;
|
|
|
|
typedef SSHORT COLLATE_ID;
|
|
|
|
typedef USHORT TTYPE_ID;
|
2002-06-04 21:36:48 +02:00
|
|
|
|
2004-03-20 15:57:40 +01:00
|
|
|
namespace Jrd {
|
|
|
|
|
2004-04-25 04:30:32 +02:00
|
|
|
class LikeObject {
|
2002-06-04 21:36:48 +02:00
|
|
|
public:
|
2004-04-25 04:30:32 +02:00
|
|
|
virtual void reset() = 0;
|
2005-05-28 00:45:31 +02:00
|
|
|
virtual bool process(thread_db*, TextType*, const UCHAR*, SLONG) = 0;
|
2004-04-25 04:30:32 +02:00
|
|
|
virtual bool result() = 0;
|
2004-11-06 08:20:44 +01:00
|
|
|
virtual ~LikeObject() {}
|
2004-04-25 04:30:32 +02:00
|
|
|
};
|
2003-12-27 05:37:23 +01:00
|
|
|
|
2004-04-25 04:30:32 +02:00
|
|
|
class ContainsObject {
|
|
|
|
public:
|
|
|
|
virtual void reset() = 0;
|
2005-05-28 00:45:31 +02:00
|
|
|
virtual bool process(Jrd::thread_db*, Jrd::TextType*, const UCHAR*, SLONG) = 0;
|
2004-04-25 04:30:32 +02:00
|
|
|
virtual bool result() = 0;
|
2004-11-06 08:20:44 +01:00
|
|
|
virtual ~ContainsObject() {}
|
2004-04-25 04:30:32 +02:00
|
|
|
};
|
2003-12-27 05:37:23 +01:00
|
|
|
|
2006-10-10 21:40:33 +02:00
|
|
|
} //namespace Jrd
|
2003-11-04 00:59:24 +01:00
|
|
|
|
2006-08-07 18:39:21 +02:00
|
|
|
|
2006-10-10 21:40:33 +02:00
|
|
|
#include "CsConvert.h"
|
|
|
|
#include "Charset.h"
|
|
|
|
#include "TextType.h"
|
|
|
|
#include "Collation.h"
|
2002-06-04 21:36:48 +02:00
|
|
|
|
2004-03-20 15:57:40 +01:00
|
|
|
|
2006-08-08 04:42:10 +02:00
|
|
|
#endif // JRD_INTL_CLASSES_H
|