Lines Matching refs:utf8seq
229 if(outs->utf8seq[0] && rlen) { in tool_write_cb()
232 if(0xC0 <= outs->utf8seq[0] && outs->utf8seq[0] < 0xE0) { in tool_write_cb()
233 outs->utf8seq[1] = *rbuf++; in tool_write_cb()
238 else if(0xE0 <= outs->utf8seq[0] && outs->utf8seq[0] < 0xF0) { in tool_write_cb()
239 if(!outs->utf8seq[1]) { in tool_write_cb()
240 outs->utf8seq[1] = *rbuf++; in tool_write_cb()
243 if(rlen && !outs->utf8seq[2]) { in tool_write_cb()
244 outs->utf8seq[2] = *rbuf++; in tool_write_cb()
250 else if(0xF0 <= outs->utf8seq[0] && outs->utf8seq[0] < 0xF8) { in tool_write_cb()
251 if(!outs->utf8seq[1]) { in tool_write_cb()
252 outs->utf8seq[1] = *rbuf++; in tool_write_cb()
255 if(rlen && !outs->utf8seq[2]) { in tool_write_cb()
256 outs->utf8seq[2] = *rbuf++; in tool_write_cb()
259 if(rlen && !outs->utf8seq[3]) { in tool_write_cb()
260 outs->utf8seq[3] = *rbuf++; in tool_write_cb()
269 if(MultiByteToWideChar(CP_UTF8, 0, (LPCSTR)outs->utf8seq, -1, in tool_write_cb()
284 memset(outs->utf8seq, 0, sizeof(outs->utf8seq)); in tool_write_cb()
289 if(!outs->utf8seq[0] && rlen && (rbuf[rlen - 1] & 0x80)) { in tool_write_cb()
292 outs->utf8seq[0] = rbuf[rlen - 1]; 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()
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()