Lines Matching refs:wc
92 wchar_t wc; in tstostr() local
104 while (wc = (wchar_t)((*ptc++)&TRIM)) { in tstostr()
105 if ((i1 = wctomb(junk, wc)) <= 0) { in tstostr()
117 while (wc = (wchar_t)((*ptc++)&TRIM)) { in tstostr()
118 if ((len = wctomb(pmb, wc)) <= 0) { in tstostr()
119 *pmb = (unsigned char)wc; in tstostr()
143 wchar_t wc; in mbstotcs() local
151 if ((j = mbtowc(&wc, pmb, MB_CUR_MAX)) <= 0) { in mbstotcs()
161 if ((j = mbtowc(&wc, pmb, MB_CUR_MAX)) <= 0) { in mbstotcs()
162 wc = (unsigned char)*pmb; in mbstotcs()
166 *(ptc++) = (tchar)wc; in mbstotcs()
432 wchar_t wc; in read_() local
527 if ((j = mbtowc(&wc, (char *)s, b_len)) <= 0) { in read_()
536 wc = (unsigned char)*s; in read_()
540 *t++ = wc; in read_()
551 if ((j = mbtowc(&wc, (char *)s, b_len)) <= 0) { in read_()
552 wc = (unsigned char)*s; in read_()
555 *t++ = wc; in read_()
577 if ((j = mbtowc(&wc, (char *)s, delta)) <= 0) in read_()
579 *t++ = wc; in read_()
598 if (mbtowc(&wc, (char *)s, delta) > 0) { in read_()
599 *t = wc; in read_()
614 if ((j = mbtowc(&wc, (char *)s, b_len)) <= 0) { in read_()
615 wc = (unsigned char)*s; in read_()
618 *t++ = wc; in read_()
682 wchar_t wc; in write_() local
698 wc = (wchar_t)((*pt++)&TRIM); in write_()
699 if (wc == (wchar_t)0) { in write_()
702 if ((j = wctomb((char *)pc, wc)) <= 0) { in write_()
703 *pc = (unsigned char)wc; in write_()