Lines Matching defs:buf
39 unsigned char buf[2];
40 buf[0] = c-0x80; buf[1] = c2-0x80;
41 return cns11643_1_mbtowc(conv,pwc,buf,2);
56 unsigned char buf[2];
58 buf[0] = c3-0x80; buf[1] = c4-0x80;
60 case 1: ret = cns11643_1_mbtowc(conv,pwc,buf,2); break;
61 case 2: ret = cns11643_2_mbtowc(conv,pwc,buf,2); break;
62 case 3: ret = cns11643_3_mbtowc(conv,pwc,buf,2); break;
63 case 4: ret = cns11643_4_mbtowc(conv,pwc,buf,2); break;
64 case 5: ret = cns11643_5_mbtowc(conv,pwc,buf,2); break;
65 case 6: ret = cns11643_6_mbtowc(conv,pwc,buf,2); break;
66 case 7: ret = cns11643_7_mbtowc(conv,pwc,buf,2); break;
67 case 15: ret = cns11643_15_mbtowc(conv,pwc,buf,2); break;
84 unsigned char buf[3];
92 ret = cns11643_wctomb(conv,buf,wc,3);
97 if (buf[0] == 1) {
100 r[0] = buf[1]+0x80;
101 r[1] = buf[2]+0x80;
109 r[1] = buf[0]+0xa0;
110 r[2] = buf[1]+0x80;
111 r[3] = buf[2]+0x80;