Lines Matching defs:buf
72 static void wc_to_mb_write_replacement (const char *buf, size_t buflen,
81 const char* bufptr = buf;
88 /* Invalid buf contents. */
112 static void wc_to_mb_write_replacement (const char *buf, size_t buflen,
123 memcpy(plocals->l_outbuf, buf, buflen);
143 char buf[BUF_SIZE];
148 size_t count = wcrtomb(buf+bufcount,*inptr,&state);
156 /* Drop the contents of buf[] accumulated so far, and instead
199 const char* bufptr = buf;
246 char buf[BUF_SIZE];
247 size_t bufcount = wcrtomb(buf,(wchar_t)0,&state);
248 if (bufcount == (size_t)(-1) || bufcount == 0 || buf[bufcount-1] != '\0')
251 const char* bufptr = buf;
296 static void mb_to_wc_write_replacement (const wchar_t *buf, size_t buflen,
307 for (; buflen > 0; buf++, buflen--) {
308 *(wchar_t*) plocals->l_outbuf = *buf;
327 char buf[BUF_SIZE];
330 char* bufptr = buf;
346 size_t bufcount = bufptr-buf; /* = BUF_SIZE-bufleft */
349 res = mbrtowc(&wc,buf,bufcount,&state);
359 /* Drop the contents of buf[] accumulated so far, and instead