/titanic_41/usr/src/uts/common/kiconv/kiconv_sc/ |
H A D | kiconv_sc.c | 51 static int8_t utf8_to_gb2312(uint32_t utf8, uchar_t **inbuf, uchar_t *ibtail, 53 static int8_t utf8_to_gbk(uint32_t utf8, uchar_t **inbuf, uchar_t *ibtail, 55 static int8_t utf8_to_gb18030(uint32_t utf8, uchar_t **inbuf, uchar_t *ibtail, 122 uchar_t *ibtail; in kiconv_fr_gb18030() local 143 ibtail = ib + *inbytesleft; in kiconv_fr_gb18030() 146 while (ib < ibtail) { in kiconv_fr_gb18030() 164 isgbk4 = (ibtail - ib < 2) ? B_FALSE : in kiconv_fr_gb18030() 168 if (ibtail - ib < 4) { in kiconv_fr_gb18030() 182 if (ibtail - ib < 2) { in kiconv_fr_gb18030() 203 *inbytesleft = ibtail - ib; in kiconv_fr_gb18030() [all …]
|
H A D | kiconv_cck_common.c | 82 uchar_t *ibtail; in kiconv_utf8_to_cck() local 105 ibtail = ib + *inbytesleft; in kiconv_utf8_to_cck() 108 KICONV_CHECK_UTF8_BOM(ib, ibtail); in kiconv_utf8_to_cck() 110 while (ib < ibtail) { in kiconv_utf8_to_cck() 144 if (ibtail - ib < sz) { in kiconv_utf8_to_cck() 173 sz = ptr_utf8tocck(u8, &ib, ibtail, ob, obtail, &ret_val); in kiconv_utf8_to_cck() 184 *inbytesleft = ibtail - ib; in kiconv_utf8_to_cck() 195 uchar_t *ibtail; in kiconvstr_utf8_to_cck() local 205 ibtail = ib + *inlen; in kiconvstr_utf8_to_cck() 209 KICONV_CHECK_UTF8_BOM_WITHOUT_STATE(ib, ibtail); in kiconvstr_utf8_to_cck() [all …]
|
/titanic_41/usr/src/uts/common/kiconv/kiconv_ko/ |
H A D | kiconv_ko.c | 48 static int8_t utf8_to_euckr(uint32_t utf8, uchar_t **inbuf, uchar_t *ibtail, 50 static int8_t utf8_to_uhc(uint32_t utf8, uchar_t **inbuf, uchar_t *ibtail, 90 uchar_t *ibtail; in kiconv_fr_euckr() local 110 ibtail = ib + *inbufleft; in kiconv_fr_euckr() 113 while (ib < ibtail) { in kiconv_fr_euckr() 135 if (ibtail - ib < 2) { in kiconv_fr_euckr() 160 *inbufleft = ibtail - ib; in kiconv_fr_euckr() 176 uchar_t *ibtail; in kiconvstr_fr_euckr() local 187 ibtail = ib + *inlen; in kiconvstr_fr_euckr() 191 while (ib < ibtail) { in kiconvstr_fr_euckr() [all …]
|
/titanic_41/usr/src/uts/common/kiconv/kiconv_tc/ |
H A D | kiconv_tc.c | 72 static int8_t utf8_to_big5(uint32_t utf8, uchar_t **inbuf, uchar_t *ibtail, 74 static int8_t utf8_to_euctw(uint32_t utf8, uchar_t **inbuf, uchar_t *ibtail, 77 uchar_t *ibtail, uchar_t *ob, uchar_t *obtail, size_t *ret_val); 78 static int8_t utf8_to_big5hkscs(uint32_t utf8, uchar_t **inbuf, uchar_t *ibtail, 140 uchar_t *ibtail; in kiconv_fr_big5_common() local 160 ibtail = ib + *inbytesleft; in kiconv_fr_big5_common() 163 while (ib < ibtail) { in kiconv_fr_big5_common() 185 if (ibtail - ib < 2) { in kiconv_fr_big5_common() 210 *inbytesleft = ibtail - ib; in kiconv_fr_big5_common() 227 uchar_t *ibtail; in kiconvstr_fr_big5_common() local [all …]
|
/titanic_41/usr/src/uts/common/sys/ |
H A D | kiconv_cck_common.h | 65 #define KICONV_CHECK_UTF8_BOM(ib, ibtail) \ argument 67 ((ibtail) - (ib)) >= 3 && *(ib) == 0xef && \ 76 #define KICONV_CHECK_UTF8_BOM_WITHOUT_STATE(ib, ibtail) \ argument 77 if (((ibtail) - (ib)) >= 3 && *(ib) == 0xef && \ 117 uchar_t *ibtail, uchar_t *ob, uchar_t *obtail, size_t *ret_val);
|
/titanic_41/usr/src/uts/common/os/ |
H A D | kiconv.c | 191 uchar_t *ibtail; in kiconv_to_sb() local 226 ibtail = ib + *inbytesleft; in kiconv_to_sb() 241 if (((kiconv_state_t)kcd)->bom_processed == 0 && (ibtail - ib) >= 3 && in kiconv_to_sb() 246 while (ib < ibtail) { in kiconv_to_sb() 284 if ((ibtail - ib) < sz) { in kiconv_to_sb() 348 *inbytesleft = ibtail - ib; in kiconv_to_sb() 366 uchar_t *ibtail; in kiconv_fr_sb() local 388 ibtail = ib + *inbytesleft; in kiconv_fr_sb() 391 while (ib < ibtail) { in kiconv_fr_sb() 442 *inbytesleft = ibtail - ib; in kiconv_fr_sb() [all …]
|
/titanic_41/usr/src/uts/common/kiconv/kiconv_emea/ |
H A D | kiconv_emea.c | 609 uchar_t *ibtail; in kiconv_to_sb() local 642 ibtail = ib + *inbytesleft; in kiconv_to_sb() 666 if (((kiconv_state_t)kcd)->bom_processed == 0 && (ibtail - ib) >= 3 && in kiconv_to_sb() 671 while (ib < ibtail) { in kiconv_to_sb() 709 if ((ibtail - ib) < sz) { in kiconv_to_sb() 781 *inbytesleft = ibtail - ib; in kiconv_to_sb() 800 uchar_t *ibtail; in kiconv_fr_sb() local 824 ibtail = ib + *inbytesleft; in kiconv_fr_sb() 831 while (ib < ibtail) { in kiconv_fr_sb() 881 *inbytesleft = ibtail - ib; in kiconv_fr_sb() [all …]
|
/titanic_41/usr/src/common/unicode/ |
H A D | u8_textprep.c | 340 uchar_t *ibtail; in u8_validate() local 357 ibtail = ib + n; in u8_validate() 365 while (ib < ibtail) { in u8_validate() 389 if ((ibtail - ib) < sz) { in u8_validate() 1920 uchar_t *ibtail; in u8_textprep_str() local 1964 ibtail = ib + *inlen; in u8_textprep_str() 1982 while (ib < ibtail) { in u8_textprep_str() 2014 } else if ((ib + sz) > ibtail) { in u8_textprep_str() 2021 if ((obtail - ob) < (ibtail - ib)) { in u8_textprep_str() 2033 while (ib < ibtail) in u8_textprep_str() [all …]
|