mirror of
https://github.com/FirebirdSQL/firebird.git
synced 2025-01-23 22:03:03 +01:00
Only code formatting changes
This commit is contained in:
parent
edad5f08d5
commit
b0aa2de8ac
@ -25,8 +25,8 @@
|
||||
#include "../intl/ldcommon.h"
|
||||
#include "../intl/cv_gb2312.h"
|
||||
|
||||
USHORT CVGB_gb2312_to_unicode(CSCONVERT obj, UCS2_CHAR *dest_ptr, USHORT dest_len, UCHAR *src_ptr
|
||||
, USHORT src_len, SSHORT *err_code, USHORT *err_position)
|
||||
USHORT CVGB_gb2312_to_unicode(CSCONVERT obj, UCS2_CHAR *dest_ptr, USHORT dest_len, UCHAR *src_ptr,
|
||||
USHORT src_len, SSHORT *err_code, USHORT *err_position)
|
||||
{
|
||||
UCS2_CHAR *start;
|
||||
UCS2_CHAR ch;
|
||||
@ -100,8 +100,8 @@ USHORT CVGB_gb2312_to_unicode(CSCONVERT obj, UCS2_CHAR *dest_ptr, USHORT dest_le
|
||||
}
|
||||
|
||||
|
||||
USHORT CVGB_unicode_to_gb2312(CSCONVERT obj, UCHAR *gb_str, USHORT gb_len, UCS2_CHAR *unicode_str
|
||||
, USHORT unicode_len, SSHORT *err_code, USHORT *err_position)
|
||||
USHORT CVGB_unicode_to_gb2312(CSCONVERT obj, UCHAR *gb_str, USHORT gb_len, UCS2_CHAR *unicode_str,
|
||||
USHORT unicode_len, SSHORT *err_code, USHORT *err_position)
|
||||
{
|
||||
UCHAR *start;
|
||||
UCS2_CHAR gb_ch;
|
||||
@ -197,8 +197,8 @@ USHORT CVGB_check_gb2312(UCHAR *gb_str, USHORT gb_len)
|
||||
}
|
||||
|
||||
|
||||
USHORT CVGB_gb2312_byte2short(CSCONVERT obj, UCHAR *dst, USHORT dst_len, UCHAR *src, USHORT src_len
|
||||
, SSHORT *err_code, USHORT *err_position)
|
||||
USHORT CVGB_gb2312_byte2short(CSCONVERT obj, UCHAR *dst, USHORT dst_len, UCHAR *src, USHORT src_len,
|
||||
SSHORT *err_code, USHORT *err_position)
|
||||
{
|
||||
/**************************************
|
||||
* Functional description
|
||||
|
@ -28,8 +28,8 @@
|
||||
#include "cv_jis.h"
|
||||
#include "cv_narrow.h"
|
||||
|
||||
USHORT CVJIS_eucj_to_unicode(CSCONVERT obj, UCS2_CHAR *dest_ptr, USHORT dest_len, UCHAR *src_ptr
|
||||
, USHORT src_len, SSHORT *err_code, USHORT *err_position)
|
||||
USHORT CVJIS_eucj_to_unicode(CSCONVERT obj, UCS2_CHAR *dest_ptr, USHORT dest_len, UCHAR *src_ptr,
|
||||
USHORT src_len, SSHORT *err_code, USHORT *err_position)
|
||||
{
|
||||
UCS2_CHAR *start;
|
||||
UCS2_CHAR ch;
|
||||
@ -114,8 +114,8 @@ USHORT CVJIS_eucj_to_unicode(CSCONVERT obj, UCS2_CHAR *dest_ptr, USHORT dest_len
|
||||
}
|
||||
|
||||
|
||||
USHORT CVJIS_sjis_to_unicode(CSCONVERT obj, UCS2_CHAR *dest_ptr, USHORT dest_len, UCHAR *sjis_str
|
||||
, USHORT sjis_len, SSHORT *err_code, USHORT *err_position)
|
||||
USHORT CVJIS_sjis_to_unicode(CSCONVERT obj, UCS2_CHAR *dest_ptr, USHORT dest_len, UCHAR *sjis_str,
|
||||
USHORT sjis_len, SSHORT *err_code, USHORT *err_position)
|
||||
{
|
||||
UCS2_CHAR *start;
|
||||
UCS2_CHAR ch;
|
||||
@ -600,8 +600,8 @@ static USHORT CVJIS_check_sjis(UCHAR *sjis_str, USHORT sjis_len)
|
||||
#endif
|
||||
|
||||
|
||||
static USHORT CVJIS_euc2sjis(CSCONVERT obj, UCHAR *sjis_str, USHORT sjis_len, UCHAR *euc_str
|
||||
, USHORT euc_len, SSHORT *err_code, USHORT *err_position)
|
||||
static USHORT CVJIS_euc2sjis(CSCONVERT obj, UCHAR *sjis_str, USHORT sjis_len, UCHAR *euc_str,
|
||||
USHORT euc_len, SSHORT *err_code, USHORT *err_position)
|
||||
{
|
||||
/**************************************
|
||||
*
|
||||
@ -690,8 +690,8 @@ static USHORT CVJIS_euc2sjis(CSCONVERT obj, UCHAR *sjis_str, USHORT sjis_len, UC
|
||||
|
||||
|
||||
|
||||
USHORT CVJIS_euc_byte2short(CSCONVERT obj, UCHAR *dst, USHORT dst_len, UCHAR *src, USHORT src_len
|
||||
, SSHORT *err_code, USHORT *err_position)
|
||||
USHORT CVJIS_euc_byte2short(CSCONVERT obj, UCHAR *dst, USHORT dst_len, UCHAR *src, USHORT src_len,
|
||||
SSHORT *err_code, USHORT *err_position)
|
||||
{
|
||||
/**************************************
|
||||
*
|
||||
@ -780,8 +780,8 @@ SSHORT CVJIS_euc_mbtowc(CSCONVERT obj, UCS2_CHAR *wc, UCHAR *src, USHORT src_len
|
||||
};
|
||||
}
|
||||
|
||||
static USHORT CVJIS_sjis2euc(CSCONVERT obj, UCHAR *euc_str, USHORT euc_len, UCHAR *sjis_str
|
||||
, USHORT sjis_len, SSHORT *err_code, USHORT *err_position)
|
||||
static USHORT CVJIS_sjis2euc(CSCONVERT obj, UCHAR *euc_str, USHORT euc_len, UCHAR *sjis_str,
|
||||
USHORT sjis_len, SSHORT *err_code, USHORT *err_position)
|
||||
{
|
||||
/**************************************
|
||||
*
|
||||
@ -862,8 +862,8 @@ static USHORT CVJIS_sjis2euc(CSCONVERT obj, UCHAR *euc_str, USHORT euc_len, UCHA
|
||||
|
||||
|
||||
|
||||
USHORT CVJIS_sjis_byte2short(CSCONVERT obj, UCHAR *dst, USHORT dst_len, UCHAR *src, USHORT src_len
|
||||
, SSHORT *err_code, USHORT *err_position)
|
||||
USHORT CVJIS_sjis_byte2short(CSCONVERT obj, UCHAR *dst, USHORT dst_len, UCHAR *src, USHORT src_len,
|
||||
SSHORT *err_code, USHORT *err_position)
|
||||
{
|
||||
/**************************************
|
||||
*
|
||||
|
@ -39,8 +39,8 @@ void CV_convert_init(CSCONVERT csptr, SSHORT to_cs, SSHORT from_cs,
|
||||
|
||||
|
||||
|
||||
USHORT CV_unicode_to_nc(CSCONVERT obj, BYTE *dest_ptr, USHORT dest_len, BYTE *src_ptr, USHORT src_len
|
||||
, SSHORT *err_code, USHORT *err_position)
|
||||
USHORT CV_unicode_to_nc(CSCONVERT obj, BYTE *dest_ptr, USHORT dest_len, BYTE *src_ptr, USHORT src_len,
|
||||
SSHORT *err_code, USHORT *err_position)
|
||||
{
|
||||
BYTE *start;
|
||||
USHORT src_start = src_len;
|
||||
@ -88,8 +88,8 @@ USHORT CV_unicode_to_nc(CSCONVERT obj, BYTE *dest_ptr, USHORT dest_len, BYTE *sr
|
||||
}
|
||||
|
||||
|
||||
USHORT CV_wc_to_wc(CSCONVERT obj, USHORT *dest_ptr, USHORT dest_len, USHORT *src_ptr, USHORT src_len
|
||||
, SSHORT *err_code, USHORT *err_position)
|
||||
USHORT CV_wc_to_wc(CSCONVERT obj, USHORT *dest_ptr, USHORT dest_len, USHORT *src_ptr, USHORT src_len,
|
||||
SSHORT *err_code, USHORT *err_position)
|
||||
{
|
||||
USHORT *start;
|
||||
USHORT ch;
|
||||
@ -138,8 +138,8 @@ USHORT CV_wc_to_wc(CSCONVERT obj, USHORT *dest_ptr, USHORT dest_len, USHORT *src
|
||||
}
|
||||
|
||||
|
||||
USHORT CV_nc_to_unicode(CSCONVERT obj, BYTE *dest_ptr, USHORT dest_len, BYTE *src_ptr, USHORT src_len
|
||||
, SSHORT *err_code, USHORT *err_position)
|
||||
USHORT CV_nc_to_unicode(CSCONVERT obj, BYTE *dest_ptr, USHORT dest_len, BYTE *src_ptr, USHORT src_len,
|
||||
SSHORT *err_code, USHORT *err_position)
|
||||
{
|
||||
BYTE *start;
|
||||
UNICODE ch;
|
||||
@ -180,8 +180,8 @@ USHORT CV_nc_to_unicode(CSCONVERT obj, BYTE *dest_ptr, USHORT dest_len, BYTE *sr
|
||||
}
|
||||
|
||||
|
||||
USHORT CV_wc_copy(CSCONVERT obj, BYTE *dest_ptr, USHORT dest_len, BYTE *src_ptr, USHORT src_len
|
||||
, SSHORT *err_code, USHORT *err_position)
|
||||
USHORT CV_wc_copy(CSCONVERT obj, BYTE *dest_ptr, USHORT dest_len, BYTE *src_ptr, USHORT src_len,
|
||||
SSHORT *err_code, USHORT *err_position)
|
||||
{
|
||||
BYTE *start;
|
||||
USHORT src_start = src_len;
|
||||
@ -216,8 +216,8 @@ USHORT CV_wc_copy(CSCONVERT obj, BYTE *dest_ptr, USHORT dest_len, BYTE *src_ptr,
|
||||
}
|
||||
|
||||
|
||||
USHORT eight_bit_convert(CSCONVERT obj, BYTE *dest_ptr, USHORT dest_len, BYTE *src_ptr
|
||||
, USHORT src_len, SSHORT *err_code, USHORT *err_position)
|
||||
USHORT eight_bit_convert(CSCONVERT obj, BYTE *dest_ptr, USHORT dest_len, BYTE *src_ptr,
|
||||
USHORT src_len, SSHORT *err_code, USHORT *err_position)
|
||||
{
|
||||
BYTE *start;
|
||||
UCHAR ch;
|
||||
|
@ -130,8 +130,6 @@ unsigned char gen_han[18][2] = {
|
||||
{ 0xc7, 0xce }
|
||||
};
|
||||
|
||||
/* These macros have a duplicate in cv_ksc.c */
|
||||
|
||||
|
||||
|
||||
STATIC USHORT LCKSC_string_to_key(TEXTTYPE obj, USHORT iInLen, BYTE *pInChar, USHORT iOutLen, BYTE *pOutChar)
|
||||
|
@ -25,8 +25,8 @@
|
||||
#include "../intlcpp/ldcommon.h"
|
||||
#include "../intlcpp/cv_gb2312.h"
|
||||
|
||||
USHORT CVGB_gb2312_to_unicode(CSCONVERT obj, UCS2_CHAR *dest_ptr, USHORT dest_len, UCHAR *src_ptr
|
||||
, USHORT src_len, SSHORT *err_code, USHORT *err_position)
|
||||
USHORT CVGB_gb2312_to_unicode(CSCONVERT obj, UCS2_CHAR *dest_ptr, USHORT dest_len, UCHAR *src_ptr,
|
||||
USHORT src_len, SSHORT *err_code, USHORT *err_position)
|
||||
{
|
||||
UCS2_CHAR *start;
|
||||
UCS2_CHAR ch;
|
||||
@ -100,8 +100,8 @@ USHORT CVGB_gb2312_to_unicode(CSCONVERT obj, UCS2_CHAR *dest_ptr, USHORT dest_le
|
||||
}
|
||||
|
||||
|
||||
USHORT CVGB_unicode_to_gb2312(CSCONVERT obj, UCHAR *gb_str, USHORT gb_len, UCS2_CHAR *unicode_str
|
||||
, USHORT unicode_len, SSHORT *err_code, USHORT *err_position)
|
||||
USHORT CVGB_unicode_to_gb2312(CSCONVERT obj, UCHAR *gb_str, USHORT gb_len, UCS2_CHAR *unicode_str,
|
||||
USHORT unicode_len, SSHORT *err_code, USHORT *err_position)
|
||||
{
|
||||
UCHAR *start;
|
||||
UCS2_CHAR gb_ch;
|
||||
@ -197,8 +197,8 @@ USHORT CVGB_check_gb2312(UCHAR *gb_str, USHORT gb_len)
|
||||
}
|
||||
|
||||
|
||||
USHORT CVGB_gb2312_byte2short(CSCONVERT obj, UCHAR *dst, USHORT dst_len, UCHAR *src, USHORT src_len
|
||||
, SSHORT *err_code, USHORT *err_position)
|
||||
USHORT CVGB_gb2312_byte2short(CSCONVERT obj, UCHAR *dst, USHORT dst_len, UCHAR *src, USHORT src_len,
|
||||
SSHORT *err_code, USHORT *err_position)
|
||||
{
|
||||
/**************************************
|
||||
* Functional description
|
||||
|
@ -28,8 +28,8 @@
|
||||
#include "cv_jis.h"
|
||||
#include "cv_narrow.h"
|
||||
|
||||
USHORT CVJIS_eucj_to_unicode(CSCONVERT obj, UCS2_CHAR *dest_ptr, USHORT dest_len, UCHAR *src_ptr
|
||||
, USHORT src_len, SSHORT *err_code, USHORT *err_position)
|
||||
USHORT CVJIS_eucj_to_unicode(CSCONVERT obj, UCS2_CHAR *dest_ptr, USHORT dest_len, UCHAR *src_ptr,
|
||||
USHORT src_len, SSHORT *err_code, USHORT *err_position)
|
||||
{
|
||||
UCS2_CHAR *start;
|
||||
UCS2_CHAR ch;
|
||||
@ -114,8 +114,8 @@ USHORT CVJIS_eucj_to_unicode(CSCONVERT obj, UCS2_CHAR *dest_ptr, USHORT dest_len
|
||||
}
|
||||
|
||||
|
||||
USHORT CVJIS_sjis_to_unicode(CSCONVERT obj, UCS2_CHAR *dest_ptr, USHORT dest_len, UCHAR *sjis_str
|
||||
, USHORT sjis_len, SSHORT *err_code, USHORT *err_position)
|
||||
USHORT CVJIS_sjis_to_unicode(CSCONVERT obj, UCS2_CHAR *dest_ptr, USHORT dest_len, UCHAR *sjis_str,
|
||||
USHORT sjis_len, SSHORT *err_code, USHORT *err_position)
|
||||
{
|
||||
UCS2_CHAR *start;
|
||||
UCS2_CHAR ch;
|
||||
@ -600,8 +600,8 @@ static USHORT CVJIS_check_sjis(UCHAR *sjis_str, USHORT sjis_len)
|
||||
#endif
|
||||
|
||||
|
||||
static USHORT CVJIS_euc2sjis(CSCONVERT obj, UCHAR *sjis_str, USHORT sjis_len, UCHAR *euc_str
|
||||
, USHORT euc_len, SSHORT *err_code, USHORT *err_position)
|
||||
static USHORT CVJIS_euc2sjis(CSCONVERT obj, UCHAR *sjis_str, USHORT sjis_len, UCHAR *euc_str,
|
||||
USHORT euc_len, SSHORT *err_code, USHORT *err_position)
|
||||
{
|
||||
/**************************************
|
||||
*
|
||||
@ -690,8 +690,8 @@ static USHORT CVJIS_euc2sjis(CSCONVERT obj, UCHAR *sjis_str, USHORT sjis_len, UC
|
||||
|
||||
|
||||
|
||||
USHORT CVJIS_euc_byte2short(CSCONVERT obj, UCHAR *dst, USHORT dst_len, UCHAR *src, USHORT src_len
|
||||
, SSHORT *err_code, USHORT *err_position)
|
||||
USHORT CVJIS_euc_byte2short(CSCONVERT obj, UCHAR *dst, USHORT dst_len, UCHAR *src, USHORT src_len,
|
||||
SSHORT *err_code, USHORT *err_position)
|
||||
{
|
||||
/**************************************
|
||||
*
|
||||
@ -780,8 +780,8 @@ SSHORT CVJIS_euc_mbtowc(CSCONVERT obj, UCS2_CHAR *wc, UCHAR *src, USHORT src_len
|
||||
};
|
||||
}
|
||||
|
||||
static USHORT CVJIS_sjis2euc(CSCONVERT obj, UCHAR *euc_str, USHORT euc_len, UCHAR *sjis_str
|
||||
, USHORT sjis_len, SSHORT *err_code, USHORT *err_position)
|
||||
static USHORT CVJIS_sjis2euc(CSCONVERT obj, UCHAR *euc_str, USHORT euc_len, UCHAR *sjis_str,
|
||||
USHORT sjis_len, SSHORT *err_code, USHORT *err_position)
|
||||
{
|
||||
/**************************************
|
||||
*
|
||||
@ -862,8 +862,8 @@ static USHORT CVJIS_sjis2euc(CSCONVERT obj, UCHAR *euc_str, USHORT euc_len, UCHA
|
||||
|
||||
|
||||
|
||||
USHORT CVJIS_sjis_byte2short(CSCONVERT obj, UCHAR *dst, USHORT dst_len, UCHAR *src, USHORT src_len
|
||||
, SSHORT *err_code, USHORT *err_position)
|
||||
USHORT CVJIS_sjis_byte2short(CSCONVERT obj, UCHAR *dst, USHORT dst_len, UCHAR *src, USHORT src_len,
|
||||
SSHORT *err_code, USHORT *err_position)
|
||||
{
|
||||
/**************************************
|
||||
*
|
||||
|
@ -39,8 +39,8 @@ void CV_convert_init(CSCONVERT csptr, SSHORT to_cs, SSHORT from_cs,
|
||||
|
||||
|
||||
|
||||
USHORT CV_unicode_to_nc(CSCONVERT obj, BYTE *dest_ptr, USHORT dest_len, BYTE *src_ptr, USHORT src_len
|
||||
, SSHORT *err_code, USHORT *err_position)
|
||||
USHORT CV_unicode_to_nc(CSCONVERT obj, BYTE *dest_ptr, USHORT dest_len, BYTE *src_ptr, USHORT src_len,
|
||||
SSHORT *err_code, USHORT *err_position)
|
||||
{
|
||||
BYTE *start;
|
||||
USHORT src_start = src_len;
|
||||
@ -88,8 +88,8 @@ USHORT CV_unicode_to_nc(CSCONVERT obj, BYTE *dest_ptr, USHORT dest_len, BYTE *sr
|
||||
}
|
||||
|
||||
|
||||
USHORT CV_wc_to_wc(CSCONVERT obj, USHORT *dest_ptr, USHORT dest_len, USHORT *src_ptr, USHORT src_len
|
||||
, SSHORT *err_code, USHORT *err_position)
|
||||
USHORT CV_wc_to_wc(CSCONVERT obj, USHORT *dest_ptr, USHORT dest_len, USHORT *src_ptr, USHORT src_len,
|
||||
SSHORT *err_code, USHORT *err_position)
|
||||
{
|
||||
USHORT *start;
|
||||
USHORT ch;
|
||||
@ -138,8 +138,8 @@ USHORT CV_wc_to_wc(CSCONVERT obj, USHORT *dest_ptr, USHORT dest_len, USHORT *src
|
||||
}
|
||||
|
||||
|
||||
USHORT CV_nc_to_unicode(CSCONVERT obj, BYTE *dest_ptr, USHORT dest_len, BYTE *src_ptr, USHORT src_len
|
||||
, SSHORT *err_code, USHORT *err_position)
|
||||
USHORT CV_nc_to_unicode(CSCONVERT obj, BYTE *dest_ptr, USHORT dest_len, BYTE *src_ptr, USHORT src_len,
|
||||
SSHORT *err_code, USHORT *err_position)
|
||||
{
|
||||
BYTE *start;
|
||||
UNICODE ch;
|
||||
@ -180,8 +180,8 @@ USHORT CV_nc_to_unicode(CSCONVERT obj, BYTE *dest_ptr, USHORT dest_len, BYTE *sr
|
||||
}
|
||||
|
||||
|
||||
USHORT CV_wc_copy(CSCONVERT obj, BYTE *dest_ptr, USHORT dest_len, BYTE *src_ptr, USHORT src_len
|
||||
, SSHORT *err_code, USHORT *err_position)
|
||||
USHORT CV_wc_copy(CSCONVERT obj, BYTE *dest_ptr, USHORT dest_len, BYTE *src_ptr, USHORT src_len,
|
||||
SSHORT *err_code, USHORT *err_position)
|
||||
{
|
||||
BYTE *start;
|
||||
USHORT src_start = src_len;
|
||||
@ -216,8 +216,8 @@ USHORT CV_wc_copy(CSCONVERT obj, BYTE *dest_ptr, USHORT dest_len, BYTE *src_ptr,
|
||||
}
|
||||
|
||||
|
||||
USHORT eight_bit_convert(CSCONVERT obj, BYTE *dest_ptr, USHORT dest_len, BYTE *src_ptr
|
||||
, USHORT src_len, SSHORT *err_code, USHORT *err_position)
|
||||
USHORT eight_bit_convert(CSCONVERT obj, BYTE *dest_ptr, USHORT dest_len, BYTE *src_ptr,
|
||||
USHORT src_len, SSHORT *err_code, USHORT *err_position)
|
||||
{
|
||||
BYTE *start;
|
||||
UCHAR ch;
|
||||
|
@ -131,8 +131,6 @@ unsigned char gen_han[18][2] = {
|
||||
{ 0xc7, 0xce }
|
||||
};
|
||||
|
||||
/* These macros have a duplicate in cv_ksc.c */
|
||||
|
||||
|
||||
|
||||
STATIC USHORT LCKSC_string_to_key(TEXTTYPE obj, USHORT iInLen, BYTE *pInChar, USHORT iOutLen, BYTE *pOutChar)
|
||||
|
Loading…
Reference in New Issue
Block a user