Lines Matching refs:rbuf
222 unsigned char *rbuf = (unsigned char *)buffer; in tool_write_cb() local
233 outs->utf8seq[1] = *rbuf++; in tool_write_cb()
240 outs->utf8seq[1] = *rbuf++; in tool_write_cb()
244 outs->utf8seq[2] = *rbuf++; in tool_write_cb()
252 outs->utf8seq[1] = *rbuf++; in tool_write_cb()
256 outs->utf8seq[2] = *rbuf++; in tool_write_cb()
260 outs->utf8seq[3] = *rbuf++; in tool_write_cb()
289 if(!outs->utf8seq[0] && rlen && (rbuf[rlen - 1] & 0x80)) { in tool_write_cb()
291 if(0xC0 <= rbuf[rlen - 1] && rbuf[rlen - 1] < 0xF8) { in tool_write_cb()
292 outs->utf8seq[0] = rbuf[rlen - 1]; in tool_write_cb()
295 else if(rlen >= 2 && IS_TRAILING_BYTE(rbuf[rlen - 1])) { in tool_write_cb()
297 if(0xE0 <= rbuf[rlen - 2] && rbuf[rlen - 2] < 0xF8) { in tool_write_cb()
298 outs->utf8seq[0] = rbuf[rlen - 2]; in tool_write_cb()
299 outs->utf8seq[1] = rbuf[rlen - 1]; in tool_write_cb()
302 else if(rlen >= 3 && IS_TRAILING_BYTE(rbuf[rlen - 2])) { in tool_write_cb()
304 if(0xF0 <= rbuf[rlen - 3] && rbuf[rlen - 3] < 0xF8) { in tool_write_cb()
305 outs->utf8seq[0] = rbuf[rlen - 3]; in tool_write_cb()
306 outs->utf8seq[1] = rbuf[rlen - 2]; in tool_write_cb()
307 outs->utf8seq[2] = rbuf[rlen - 1]; in tool_write_cb()
316 wc_len = (DWORD)MultiByteToWideChar(CP_UTF8, 0, (LPCSTR)rbuf, (int)rlen, in tool_write_cb()
325 wc_len = (DWORD)MultiByteToWideChar(CP_UTF8, 0, (LPCSTR)rbuf, (int)rlen, in tool_write_cb()