Lines Matching refs:out
410 unsigned char *out, int boundlen) in uni2char() argument
416 if ((n = p_nls->uni2char(uni, out, boundlen)) < 0) in uni2char()
421 if (IS_SJIS_JISX0201KANA(out[0])) { in uni2char()
426 out[1] = out[0]; in uni2char()
427 out[0] = SS2; in uni2char()
432 sjisnec2sjisibm(out, out[0], out[1]); in uni2char()
434 if (IS_SJIS_UDC_LOW(out[0], out[1])) { in uni2char()
436 MAP_SJIS2EUC(out[0], out[1], 0xF0, out[0], out[1], 0xF5); in uni2char()
437 } else if (IS_SJIS_UDC_HI(out[0], out[1])) { in uni2char()
444 n = 3; ch = out[0]; cl = out[1]; in uni2char()
445 out[0] = SS3; in uni2char()
446 MAP_SJIS2EUC(ch, cl, 0xF5, out[1], out[2], 0xF5); in uni2char()
447 } else if (IS_SJIS_IBM(out[0], out[1])) { in uni2char()
451 n = sjisibm2euc(euc, out[0], out[1]); in uni2char()
455 out[i] = euc[i]; in uni2char()
456 } else if (IS_SJIS_JISX0208(out[0], out[1])) { in uni2char()
458 out[0] = (out[0]^0xA0)*2 + 0x5F; in uni2char()
459 if (out[1] > 0x9E) in uni2char()
460 out[0]++; in uni2char()
462 if (out[1] < 0x7F) in uni2char()
463 out[1] = out[1] + 0x61; in uni2char()
464 else if (out[1] < 0x9F) in uni2char()
465 out[1] = out[1] + 0x60; in uni2char()
467 out[1] = out[1] + 0x02; in uni2char()