Lines Matching refs:out
412 unsigned char *out, int boundlen) in uni2char() argument
418 if ((n = p_nls->uni2char(uni, out, boundlen)) < 0) in uni2char()
423 if (IS_SJIS_JISX0201KANA(out[0])) { in uni2char()
428 out[1] = out[0]; in uni2char()
429 out[0] = SS2; in uni2char()
434 sjisnec2sjisibm(out, out[0], out[1]); in uni2char()
436 if (IS_SJIS_UDC_LOW(out[0], out[1])) { in uni2char()
438 MAP_SJIS2EUC(out[0], out[1], 0xF0, out[0], out[1], 0xF5); in uni2char()
439 } else if (IS_SJIS_UDC_HI(out[0], out[1])) { in uni2char()
446 n = 3; ch = out[0]; cl = out[1]; in uni2char()
447 out[0] = SS3; in uni2char()
448 MAP_SJIS2EUC(ch, cl, 0xF5, out[1], out[2], 0xF5); in uni2char()
449 } else if (IS_SJIS_IBM(out[0], out[1])) { in uni2char()
453 n = sjisibm2euc(euc, out[0], out[1]); in uni2char()
457 out[i] = euc[i]; in uni2char()
458 } else if (IS_SJIS_JISX0208(out[0], out[1])) { in uni2char()
460 out[0] = (out[0]^0xA0)*2 + 0x5F; in uni2char()
461 if (out[1] > 0x9E) in uni2char()
462 out[0]++; in uni2char()
464 if (out[1] < 0x7F) in uni2char()
465 out[1] = out[1] + 0x61; in uni2char()
466 else if (out[1] < 0x9F) in uni2char()
467 out[1] = out[1] + 0x60; in uni2char()
469 out[1] = out[1] + 0x02; in uni2char()