2001-05-23 15:26:42 +02:00
|
|
|
/*
|
|
|
|
* PROGRAM: JRD Access method
|
|
|
|
* MODULE: intl_proto.h
|
2003-10-08 10:42:48 +02:00
|
|
|
* DESCRIPTION: Prototype Header file for intl.cpp
|
2001-05-23 15:26:42 +02:00
|
|
|
*
|
|
|
|
* The contents of this file are subject to the Interbase 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.Inprise.com/IPL.html
|
|
|
|
*
|
|
|
|
* Software distributed under the License is distributed on an
|
|
|
|
* "AS IS" basis, WITHOUT WARRANTY OF ANY KIND, either express
|
|
|
|
* or implied. See the License for the specific language governing
|
|
|
|
* rights and limitations under the License.
|
|
|
|
*
|
|
|
|
* The Original Code was created by Inprise Corporation
|
|
|
|
* and its predecessors. Portions created by Inprise Corporation are
|
|
|
|
* Copyright (C) Inprise Corporation.
|
|
|
|
*
|
|
|
|
* All Rights Reserved.
|
|
|
|
* Contributor(s): ______________________________________.
|
|
|
|
*/
|
|
|
|
|
2003-10-03 03:53:34 +02:00
|
|
|
#ifndef JRD_INTL_PROTO_H
|
|
|
|
#define JRD_INTL_PROTO_H
|
2001-05-23 15:26:42 +02:00
|
|
|
|
2002-06-04 21:56:16 +02:00
|
|
|
#include "../jrd/intl_classes.h"
|
2001-05-23 15:26:42 +02:00
|
|
|
|
2004-03-11 06:04:26 +01:00
|
|
|
CHARSET_ID INTL_charset(thread_db*, USHORT, FPTR_ERROR);
|
|
|
|
int INTL_compare(thread_db*, const struct dsc*, const struct dsc*, FPTR_ERROR);
|
|
|
|
USHORT INTL_convert_bytes(thread_db*, CHARSET_ID, UCHAR*, USHORT, CHARSET_ID,
|
2004-03-07 08:58:55 +01:00
|
|
|
const BYTE*, USHORT, FPTR_ERROR);
|
2004-03-11 06:04:26 +01:00
|
|
|
CsConvert INTL_convert_lookup(thread_db*, CHARSET_ID, CHARSET_ID);
|
2003-11-05 10:02:33 +01:00
|
|
|
int INTL_convert_string(struct dsc*, const struct dsc*, FPTR_ERROR);
|
2003-10-08 10:42:48 +02:00
|
|
|
int INTL_data(const struct dsc*);
|
|
|
|
int INTL_data_or_binary(const struct dsc*);
|
2004-03-11 06:04:26 +01:00
|
|
|
int INTL_defined_type(thread_db*, ISC_STATUS*, SSHORT);
|
|
|
|
UCS2_CHAR INTL_getch(thread_db*, TextType*, SSHORT, const UCHAR**, USHORT*);
|
|
|
|
void INTL_init(thread_db*);
|
|
|
|
USHORT INTL_key_length(thread_db*, USHORT, USHORT);
|
|
|
|
CharSet INTL_charset_lookup(thread_db* tdbb, SSHORT parm1, ISC_STATUS* status);
|
|
|
|
TextType INTL_texttype_lookup(thread_db* tdbb, SSHORT parm1, FPTR_ERROR err,
|
2003-11-05 10:02:33 +01:00
|
|
|
ISC_STATUS* status);
|
2004-03-11 06:04:26 +01:00
|
|
|
void INTL_pad_spaces(thread_db*, struct dsc*, UCHAR*, USHORT);
|
|
|
|
USHORT INTL_string_to_key(thread_db*, USHORT, const struct dsc*, struct dsc*, bool);
|
|
|
|
int INTL_str_to_upper(thread_db*, struct dsc*);
|
|
|
|
UCHAR INTL_upper(thread_db*, USHORT, UCHAR);
|
2001-05-23 15:26:42 +02:00
|
|
|
|
2003-11-03 18:14:45 +01:00
|
|
|
// Built-in charsets interface
|
|
|
|
FPTR_SHORT INTL_builtin_lookup(USHORT, SSHORT, SSHORT);
|
|
|
|
SSHORT INTL_builtin_nc_mbtowc(TEXTTYPE obj,
|
2003-12-11 11:33:30 +01:00
|
|
|
UCS2_CHAR* wc, const UCHAR* ptr, USHORT count);
|
2003-11-03 18:14:45 +01:00
|
|
|
SSHORT INTL_builtin_mb_mbtowc(TEXTTYPE obj,
|
2003-12-11 11:33:30 +01:00
|
|
|
UCS2_CHAR* wc, const UCHAR* ptr, USHORT count);
|
2003-11-03 18:14:45 +01:00
|
|
|
SSHORT INTL_builtin_wc_mbtowc(TEXTTYPE obj,
|
2003-12-11 11:33:30 +01:00
|
|
|
UCS2_CHAR* wc, const UCHAR* ptr, USHORT count);
|
2003-11-03 18:14:45 +01:00
|
|
|
|
2003-10-03 03:53:34 +02:00
|
|
|
#endif // JRD_INTL_PROTO_H
|
2003-10-08 10:42:48 +02:00
|
|
|
|