Lines Matching refs:rlen

223     DWORD rlen = (DWORD)bytes;  in tool_write_cb()  local
229 if(outs->utf8seq[0] && rlen) { in tool_write_cb()
234 --rlen; in tool_write_cb()
241 --rlen; in tool_write_cb()
243 if(rlen && !outs->utf8seq[2]) { in tool_write_cb()
245 --rlen; in tool_write_cb()
253 --rlen; in tool_write_cb()
255 if(rlen && !outs->utf8seq[2]) { in tool_write_cb()
257 --rlen; in tool_write_cb()
259 if(rlen && !outs->utf8seq[3]) { in tool_write_cb()
261 --rlen; 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()
293 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()
300 rlen -= 2; 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()
308 rlen -= 3; in tool_write_cb()
314 if(rlen) { 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()