Lines Matching refs:inbufptr
618 unsigned char *inbufptr = (unsigned char *)*from;
636 if (inbufptr[i] == ESC) { /* got an escape */
638 (const char *)inbufptr + i);
649 if ((inbufptr[i] == 0x0a || inbufptr[i] == 0x09 ||
650 inbufptr[i] >= 0x20) && ISASCII(inbufptr[i])) {
656 outbufptr[j++] = inbufptr[i];
676 iconv_buf[0] = (inbufptr[i] & 0x7f) | 0x80;
677 iconv_buf[1] = (inbufptr[i + 1] & 0x7f) | 0x80;
705 if (isgb18030_2(inbufptr + i)) {
711 outbufptr[j++] = inbufptr[i];
712 outbufptr[j++] = inbufptr[i + 1];
731 if (isgb18030_4(inbufptr + i)) {
737 outbufptr[j++] = inbufptr[i] & 0xff;
738 outbufptr[j++] = inbufptr[i+1] & 0xff;
739 outbufptr[j++] = inbufptr[i+2] & 0xff;
740 outbufptr[j++] = inbufptr[i+3] & 0xff;
756 } else if ((inbufptr[i] == 0x0a || inbufptr[i] == 0x09 ||
757 inbufptr[i] >= 0x20) && ISASCII(inbufptr[i])) {
764 outbufptr[j++] = inbufptr[i];
775 *from = (XPointer)(inbufptr + i);
838 unsigned char *inbufptr = (unsigned char *)*from;
846 if (isgb(&inbufptr[i])) { /* GB2312 character */
864 outbufptr[j++] = inbufptr[i++] & 0x7f;
865 outbufptr[j++] = inbufptr[i++] & 0x7f;
866 } else if (isgb18030_2(&inbufptr[i])) { /* 2 bytes GB 18030 */
884 outbufptr[j++] = inbufptr[i++] & 0xff;
885 outbufptr[j++] = inbufptr[i++] & 0xff;
886 } else if (isgb18030_4(&inbufptr[i])) { /* 4 bytes GB18030 */
904 outbufptr[j++] = inbufptr[i++];
905 outbufptr[j++] = inbufptr[i++];
906 outbufptr[j++] = inbufptr[i++];
907 outbufptr[j++] = inbufptr[i++];
908 } else if (ISASCII(inbufptr[i])) { /* ASCII */
926 outbufptr[j++] = inbufptr[i++];
933 *from = (XPointer)&inbufptr[i];
952 unsigned char inbufptr[10];
964 if (wctomb((char *)inbufptr, pwc[k++]) == -1)
969 if (isgb(&inbufptr[i])) { /* GB2312 */
987 outbufptr[j++] = inbufptr[i++];
988 outbufptr[j++] = inbufptr[i++];
989 } else if (isgb18030_2(&inbufptr[i])) {
1007 outbufptr[j++] = inbufptr[i++];
1008 outbufptr[j++] = inbufptr[i++];
1009 } else if (isgb18030_4(&inbufptr[i])) {
1027 outbufptr[j++] = inbufptr[i++];
1028 outbufptr[j++] = inbufptr[i++];
1029 outbufptr[j++] = inbufptr[i++];
1030 outbufptr[j++] = inbufptr[i++];
1031 } else if (ISASCII(inbufptr[i])) {
1047 outbufptr[j++] = inbufptr[i++];