utf8
char *utf8;
utf8 = strdup(src);
return ( utf8 );
char *utf8;
utf8 = strdup(src);
return utf8;
utf8 = (char *) malloc( outLen + 1);
if( utf8 == NULL ) {
resultLen = ucnv_convert( "utf-8", ldaptool_charset, utf8, (outLen + 1), src,
free(utf8);
utf8 = _convertor(src, FALSE);
if( utf8 == NULL )
utf8 = strdup(src);
return utf8;
static size_t utf8(unsigned int, char [7]);
addsz = utf8(unicode, utfbuf);
if (utf82euc_tbl[i].utf8 == utf)
else if (utf82euc_tbl[l].utf8 == utf)
else if (utf82euc_tbl[h].utf8 == utf)
else if (utf82euc_tbl[i].utf8 < utf)
if (utf82euc_tbl[i].utf8 != utf)
if (utf82iso2022_tbl[i].utf8 == u)
else if (utf82iso2022_tbl[l].utf8 == u)
else if (utf82iso2022_tbl[h].utf8 == u)
else if (utf82iso2022_tbl[i].utf8 < u)
if (utf82iso2022_tbl[i].utf8 != u)
if (utf82johap92_tbl[i].utf8 == u)
else if (utf82johap92_tbl[l].utf8 == u)
else if (utf82johap92_tbl[h].utf8 == u)
else if (utf82johap92_tbl[i].utf8 < u)
if (utf82johap92_tbl[i].utf8 != u)
hcode_type utf8;
} utf8;
} utf8;
hcode_type unicode, utf8;
utf8.code = UTF_UDC_ERROR; /* over the UDC bound */
utf8 = _uni_to_utf8(unicode);
return(utf8);
hcode_type utf8;
utf8.code = 0;
utf8.code = unicode.code;
utf8.utf8.high8bits = 0x00;
utf8.utf8.sign1 = 0x00;
utf8.utf8.data1 = 0x00;
utf8.utf8.sign2 = 0x03;
utf8.utf8.data2 = unicode.unicode.data2;
utf8.utf8.sign3 = 0x02;
utf8.utf8.data3 = unicode.unicode.data3;
utf8.utf8.high8bits = 0x00;
utf8.utf8.sign1 = 0x0E;
utf8.utf8.data1 = unicode.unicode.data1;
utf8.utf8.sign2 = 0x02; /* 10xxxxxx */
utf8.utf8.data2 = unicode.unicode.data2;
utf8.utf8.sign3 = 0x02; /* 10xxxxxx */
utf8.utf8.data3 = unicode.unicode.data3;
return(utf8);
hcode_type _utf8_to_uni(hcode_type utf8)
if(utf8.byte.byte3 == 0 && utf8.byte.byte2 ==0)
unicode.byte.byte4 = utf8.byte.byte4;
if(utf8.byte.byte2 == 0){
unicode.byte.byte3 = (utf8.byte.byte3 & 0x3F) >> 2;
unicode.byte.byte4 = (utf8.byte.byte3 << 6) | (0x3F & utf8.byte.byte4);
unicode.unicode.data1 = utf8.utf8.data1;
unicode.unicode.data2 = utf8.utf8.data2;
unicode.unicode.data3 = utf8.utf8.data3;
return(node_ptr->utf8);
unsigned long utf8;
*chosung = johap922utf8_tbl[i].utf8;
return(node_ptr->utf8);
printf("*->%2x %2x %2x*",node_ptr->utf8.unicode.data1,node_ptr->utf8.unicode.data2,node_ptr->utf8.unicode.data3);
utf_code = _uni_to_utf8(node_ptr->utf8);
utf_code = node_ptr->utf8;
return((int)(((const hcode_table *)node1)->utf8.code) -
(int)(((const hcode_table *)node2)->utf8.code));
node.utf8 = utfcode;
if(utf8_to_johap92_tbl[mid].utf8 = utf_code){
} else if(utf8_to_johap92_tbl[mid].utf8 > utf_code){
} else if(utf8_to_johap92_tbl[mid].utf8 < utf_code){
return((int)(((const hcode_table *)node1)->utf8.code) -
(int)(((const hcode_table *)node2)->utf8.code));
node.utf8 = utfcode;
ret = (int)(((const hcode_table *)node1)->utf8.code) -(int)(((const hcode_table *)node2)->utf8.code);
return((int)(((const hcode_table *)node1)->utf8.code) -
(int)(((const hcode_table *)node2)->utf8.code));
node.utf8 = _utf8_to_uni(utfcode);
printf("*-> %2x %2x %2x*",node.utf8.unicode.data1,node.utf8.unicode.data2,node.utf8.unicode.data3);
*chosung = euc2utf8_tbl[i].utf8;
return(node_ptr->utf8);
return(node_ptr->utf8);
hcode_type utf8;
} utf8;
} utf8;
hcode_type utf8;
utf8.utf8.high8bits = 0;
utf8.utf8.sign1 = 0x0E; /* 1110xxxx */
utf8.utf8.data1 = unicode.unicode.data1;
utf8.utf8.sign2 = 0x02; /* 10xxxxxx */
utf8.utf8.data2 = unicode.unicode.data2;
utf8.utf8.sign3 = 0x02; /* 10xxxxxx */
utf8.utf8.data3 = unicode.unicode.data3;
return(utf8);
hcode_type _utf8_to_uni(hcode_type utf8)
unicode.unicode.data1 = utf8.utf8.data1;
unicode.unicode.data2 = utf8.utf8.data2;
unicode.unicode.data3 = utf8.utf8.data3;
hcode_type unicode, utf8;
utf8.code = UTF_UDC_ERROR; /* over the UDC bound */
utf8 = _uni_to_utf8(unicode);
return(utf8);
return(node_ptr->utf8);
return((int)(((const hcode_table *)node1)->utf8.code) -
(int)(((const hcode_table *)node2)->utf8.code));
node.utf8 = utfcode;
static boolean_t utf8;
utf8 = B_FALSE;
utf8 = B_TRUE;
utf8 = B_FALSE;
utf8 = B_TRUE;
if (utf8) {
pc_valid_long_fn(char *namep, int utf8)
if (utf8) {
uint8_t comp_id, utf8[6];
if ((c_tx_sz = ud_utf162utf8(w2_char, utf8)) == 0) {
(caddr_t)utf8, c_tx_sz);
lower->kbtrans_fltaccent_table[i].utf8);
*result_ptr = ptr->utf8;
static int8_t utf8_to_euckr(uint32_t utf8, uchar_t **inbuf, uchar_t *ibtail,
utf8_to_ko(uint32_t utf8, uchar_t *ob, uchar_t *obtail, size_t *ret_val,
if (KICONV_KO_IS_UDC_IN_UTF8(utf8)) {
kocode = (((utf8 & 0xF0000) >> 4) | ((utf8 & 0x3F00) >> 2) |
(utf8 & 0x3F)) - KICONV_KO_UDA_UCS4_START;
static int8_t utf8_to_uhc(uint32_t utf8, uchar_t **inbuf, uchar_t *ibtail,
index = kiconv_binsearch(utf8, table, nitems);
utf8_to_uhc(uint32_t utf8, uchar_t **inbuf, uchar_t *ibtail,
return (utf8_to_ko(utf8, ob, obtail, ret_val, kiconv_utf8_uhc,
utf8_to_euckr(uint32_t utf8, uchar_t **inbuf, uchar_t *ibtail,
return (utf8_to_ko(utf8, ob, obtail, ret_val, kiconv_utf8_euckr,
static int8_t utf8_to_gb2312(uint32_t utf8, uchar_t **inbuf, uchar_t *ibtail,
static int8_t utf8_to_gbk(uint32_t utf8, uchar_t **inbuf, uchar_t *ibtail,
static int8_t utf8_to_gb18030(uint32_t utf8, uchar_t **inbuf, uchar_t *ibtail,
utf8_to_gb18030(uint32_t utf8, uchar_t **inbuf, uchar_t *ibtail,
if (utf8 >= KICONV_SC_PLANE1_UTF8_START) {
u32 = (((utf8 & 0x07000000) >> 6) | ((utf8 & 0x3F0000) >> 4) |
((utf8 & 0x3F00) >> 2) | (utf8 & 0x3F)) -
index = kiconv_binsearch(utf8, kiconv_utf8_gb18030,
utf8_to_gbk(uint32_t utf8, uchar_t **inbuf, uchar_t *ibtail,
index = kiconv_binsearch(utf8, kiconv_utf8_gb18030,
utf8_to_gb2312(uint32_t utf8, uchar_t **inbuf, uchar_t *intail,
index = kiconv_binsearch(utf8, kiconv_utf8_gb2312,
utf8_to_big5(uint32_t utf8, uchar_t **inbuf, uchar_t *ibtail,
return (utf8_to_big5_common(utf8, ob, obtail, ret_val,
utf8_to_cp950hkscs(uint32_t utf8, uchar_t **inbuf, uchar_t *ibtail,
return (utf8_to_big5_common(utf8, ob, obtail, ret_val,
static int8_t utf8_to_big5(uint32_t utf8, uchar_t **inbuf, uchar_t *ibtail,
static int8_t utf8_to_euctw(uint32_t utf8, uchar_t **inbuf, uchar_t *ibtail,
static int8_t utf8_to_cp950hkscs(uint32_t utf8, uchar_t **inbuf,
static int8_t utf8_to_big5hkscs(uint32_t utf8, uchar_t **inbuf, uchar_t *ibtail,
utf8_to_euctw(uint32_t utf8, uchar_t **inbuf, uchar_t *ibtail,
if (utf8 >= KICONV_TC_UDA_UTF8_START &&
utf8 <= KICONV_TC_UDA_UTF8_END) {
index = (((utf8 & 0x7000000) >> 6) | ((utf8 & 0x3F0000) >> 4) |
((utf8 & 0x3F00) >> 2) | (utf8 & 0x3F)) -
index = kiconv_binsearch(utf8, kiconv_utf8_euctw,
utf8_to_big5hkscs(uint32_t utf8, uchar_t **inbuf, uchar_t *ibtail,
index = kiconv_binsearch(utf8, kiconv_utf8_hkscs,
utf8_to_big5_common(uint32_t utf8, uchar_t *ob, uchar_t *obtail,
index = kiconv_binsearch(utf8, table, nitems);
keymap_entry_t utf8; /* equivalent UTF-8 code */
keymap_entry_t utf8; /* equivalent UTF-8 code */
typedef int8_t (*kiconv_utf8tocck_t)(uint32_t utf8, uchar_t **ib,