/* internal (EUC/SJIS/UPTEX) to DVI (JIS/UCS) code conversion */ long toDVI (long kcode) { if (is_internalUPTEX()) return UPTEXtoUCS(kcode); if (is_internalSJIS()) return SJIStoJIS(kcode); /* EUC */ return EUCtoJIS(kcode); }
/* JIS to internal (EUC/SJIS/UPTEX) code conversion */ long fromJIS(long kcode) { if (is_internalUPTEX()) return UCStoUPTEX(JIStoUCS2(kcode)); if (is_internalSJIS()) return JIStoSJIS(kcode); /* EUC */ return JIStoEUC(kcode); }
/* check char range (kanji 2nd) */ boolean iskanji2(int c) { if (is_internalSJIS()) return isSJISkanji2(c); /* EUC */ return isEUCkanji2(c); }
/* internal (EUC/SJIS/UPTEX) to SJIS code conversion */ static long toSJIS(long kcode) { if (is_internalSJIS()) return kcode; return JIStoSJIS(toJIS(kcode)); }
/* SJIS to internal (EUC/SJIS/UPTEX) code conversion */ long fromSJIS(long kcode) { if (is_internalSJIS()) return kcode; return fromJIS(SJIStoJIS(kcode)); }
/* internal (EUC/SJIS/UPTEX) to EUC code conversion */ static long toEUC(long kcode) { if (!is_internalUPTEX() && !is_internalSJIS()) return kcode; return JIStoEUC(toJIS(kcode)); }
/* EUC to internal (EUC/SJIS/UPTEX) code conversion */ long fromEUC(long kcode) { if (!is_internalUPTEX() && !is_internalSJIS()) return kcode; return fromJIS(EUCtoJIS(kcode)); }