version 1.1, 2012/02/21 22:57:48
|
version 1.1.1.2, 2021/03/17 13:38:46
|
Line 1
|
Line 1
|
/* |
/* |
* Copyright (C) 1999-2001, 2004 Free Software Foundation, Inc. | * Copyright (C) 1999-2001, 2004, 2016 Free Software Foundation, Inc. |
* This file is part of the GNU LIBICONV Library. |
* This file is part of the GNU LIBICONV Library. |
* |
* |
* The GNU LIBICONV Library is free software; you can redistribute it |
* The GNU LIBICONV Library is free software; you can redistribute it |
Line 14
|
Line 14
|
* |
* |
* You should have received a copy of the GNU Library General Public |
* You should have received a copy of the GNU Library General Public |
* License along with the GNU LIBICONV Library; see the file COPYING.LIB. |
* License along with the GNU LIBICONV Library; see the file COPYING.LIB. |
* If not, write to the Free Software Foundation, Inc., 51 Franklin Street, | * If not, see <https://www.gnu.org/licenses/>. |
* Fifth Floor, Boston, MA 02110-1301, USA. | |
*/ |
*/ |
|
|
/* |
/* |
Line 153 static const unsigned short cp1255_2uni[128] = {
|
Line 152 static const unsigned short cp1255_2uni[128] = {
|
0x00b8, 0x00b9, 0x00f7, 0x00bb, 0x00bc, 0x00bd, 0x00be, 0x00bf, |
0x00b8, 0x00b9, 0x00f7, 0x00bb, 0x00bc, 0x00bd, 0x00be, 0x00bf, |
/* 0xc0 */ |
/* 0xc0 */ |
0x05b0, 0x05b1, 0x05b2, 0x05b3, 0x05b4, 0x05b5, 0x05b6, 0x05b7, |
0x05b0, 0x05b1, 0x05b2, 0x05b3, 0x05b4, 0x05b5, 0x05b6, 0x05b7, |
0x05b8, 0x05b9, 0xfffd, 0x05bb, 0x05bc, 0x05bd, 0x05be, 0x05bf, | 0x05b8, 0x05b9, 0x05ba, 0x05bb, 0x05bc, 0x05bd, 0x05be, 0x05bf, |
/* 0xd0 */ |
/* 0xd0 */ |
0x05c0, 0x05c1, 0x05c2, 0x05c3, 0x05f0, 0x05f1, 0x05f2, 0x05f3, |
0x05c0, 0x05c1, 0x05c2, 0x05c3, 0x05f0, 0x05f1, 0x05f2, 0x05f3, |
0x05f4, 0xfffd, 0xfffd, 0xfffd, 0xfffd, 0xfffd, 0xfffd, 0xfffd, |
0x05f4, 0xfffd, 0xfffd, 0xfffd, 0xfffd, 0xfffd, 0xfffd, 0xfffd, |
Line 169 static const unsigned short cp1255_2uni[128] = {
|
Line 168 static const unsigned short cp1255_2uni[128] = {
|
character, or 0 if none. */ |
character, or 0 if none. */ |
|
|
static int |
static int |
cp1255_mbtowc (conv_t conv, ucs4_t *pwc, const unsigned char *s, int n) | cp1255_mbtowc (conv_t conv, ucs4_t *pwc, const unsigned char *s, size_t n) |
{ |
{ |
unsigned char c = *s; |
unsigned char c = *s; |
unsigned short wc; |
unsigned short wc; |
Line 276 static const unsigned char cp1255_page02[32] = {
|
Line 275 static const unsigned char cp1255_page02[32] = {
|
}; |
}; |
static const unsigned char cp1255_page05[72] = { |
static const unsigned char cp1255_page05[72] = { |
0xc0, 0xc1, 0xc2, 0xc3, 0xc4, 0xc5, 0xc6, 0xc7, /* 0xb0-0xb7 */ |
0xc0, 0xc1, 0xc2, 0xc3, 0xc4, 0xc5, 0xc6, 0xc7, /* 0xb0-0xb7 */ |
0xc8, 0xc9, 0x00, 0xcb, 0xcc, 0xcd, 0xce, 0xcf, /* 0xb8-0xbf */ | 0xc8, 0xc9, 0xca, 0xcb, 0xcc, 0xcd, 0xce, 0xcf, /* 0xb8-0xbf */ |
0xd0, 0xd1, 0xd2, 0xd3, 0x00, 0x00, 0x00, 0x00, /* 0xc0-0xc7 */ |
0xd0, 0xd1, 0xd2, 0xd3, 0x00, 0x00, 0x00, 0x00, /* 0xc0-0xc7 */ |
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, /* 0xc8-0xcf */ |
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, /* 0xc8-0xcf */ |
0xe0, 0xe1, 0xe2, 0xe3, 0xe4, 0xe5, 0xe6, 0xe7, /* 0xd0-0xd7 */ |
0xe0, 0xe1, 0xe2, 0xe3, 0xe4, 0xe5, 0xe6, 0xe7, /* 0xd0-0xd7 */ |
Line 296 static const unsigned char cp1255_page20[56] = {
|
Line 295 static const unsigned char cp1255_page20[56] = {
|
}; |
}; |
|
|
static int |
static int |
cp1255_wctomb (conv_t conv, unsigned char *r, ucs4_t wc, int n) | cp1255_wctomb (conv_t conv, unsigned char *r, ucs4_t wc, size_t n) |
{ |
{ |
unsigned char c = 0; |
unsigned char c = 0; |
if (wc < 0x0080) { |
if (wc < 0x0080) { |