/* $Id$ */ /* Copyright: This file may be distributed under version 2 of the GPL licence. */ #include "micq.h" #include "conv.h" #include "preferences.h" void ConvWinUnix (char *text) { if (!(prG->flags & FLAG_CONVRUSS) && !(prG->flags & FLAG_CONVEUC)) return; if (prG->flags & FLAG_CONVRUSS) ConvWinKoi (text); else ConvSjisEuc (text); } void ConvUnixWin (char *text) { if (!(prG->flags & FLAG_CONVRUSS) && !(prG->flags & FLAG_CONVEUC)) return; if (prG->flags & FLAG_CONVRUSS) ConvKoiWin (text); else ConvEucSjis (text); } char ConvSep () { static char conv[2] = "\0"; if (conv[0]) return conv[0]; conv[0] = '\xfe'; ConvWinUnix (conv); return conv[0]; }