8
0
mirror of https://github.com/FirebirdSQL/firebird.git synced 2025-01-29 06:43:03 +01:00
firebird-mirror/src/jrd/intl_proto.h
robocop 35396625f5 const correctness
function signatures
variables in local scope
BOOLEAN -> bool
TEXT[32] as SqlIdentifier for DYN
Stop random garbage in firebird.msg's bytes 8 to 11
some cleanup
2003-11-05 09:02:33 +00:00

61 lines
2.3 KiB
C

/*
* PROGRAM: JRD Access method
* MODULE: intl_proto.h
* DESCRIPTION: Prototype Header file for intl.cpp
*
* 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): ______________________________________.
*/
#ifndef JRD_INTL_PROTO_H
#define JRD_INTL_PROTO_H
#include "../jrd/intl_classes.h"
CHARSET_ID INTL_charset(TDBB, USHORT, FPTR_ERROR);
int INTL_compare(TDBB, const struct dsc*, const struct dsc*, FPTR_ERROR);
USHORT INTL_convert_bytes(TDBB, CHARSET_ID, UCHAR*, USHORT, CHARSET_ID,
BYTE*, USHORT, FPTR_ERROR);
CsConvert INTL_convert_lookup(TDBB, CHARSET_ID, CHARSET_ID);
int INTL_convert_string(struct dsc*, const struct dsc*, FPTR_ERROR);
int INTL_data(const struct dsc*);
int INTL_data_or_binary(const struct dsc*);
int INTL_defined_type(TDBB, ISC_STATUS*, SSHORT);
unsigned short INTL_getch(TDBB, TextType*, SSHORT,
UCHAR**, USHORT*);
void INTL_init(TDBB);
USHORT INTL_key_length(TDBB, USHORT, USHORT);
CharSet INTL_charset_lookup(TDBB tdbb, SSHORT parm1, ISC_STATUS* status);
TextType INTL_texttype_lookup(TDBB tdbb, SSHORT parm1, FPTR_ERROR err,
ISC_STATUS* status);
void INTL_pad_spaces(TDBB, struct dsc*, UCHAR*, USHORT);
USHORT INTL_string_to_key(TDBB, USHORT, const struct dsc*, struct dsc*, USHORT);
int INTL_str_to_upper(TDBB, struct dsc*);
UCHAR INTL_upper(TDBB, USHORT, UCHAR);
// Built-in charsets interface
FPTR_SHORT INTL_builtin_lookup(USHORT, SSHORT, SSHORT);
SSHORT INTL_builtin_nc_mbtowc(TEXTTYPE obj,
UCS2_CHAR* wc, UCHAR* ptr, USHORT count);
SSHORT INTL_builtin_mb_mbtowc(TEXTTYPE obj,
UCS2_CHAR* wc, UCHAR* ptr, USHORT count);
SSHORT INTL_builtin_wc_mbtowc(TEXTTYPE obj,
UCS2_CHAR* wc, UCHAR* ptr, USHORT count);
#endif // JRD_INTL_PROTO_H