X-Git-Url: http://mj.ucw.cz/gitweb/?a=blobdiff_plain;f=charset%2Fcharconv.h;h=d3482438b3484bfa3eb59ec024fefa572b34e53d;hb=d1a5b69d490ce61a0f41db08263580487720bf2f;hp=9685e77f55878ae5d72af7f9bca42affcd2ffd14;hpb=fece0021c9d669b6e0175906d0137a857b4bf4a9;p=libucw.git diff --git a/charset/charconv.h b/charset/charconv.h index 9685e77f..d3482438 100644 --- a/charset/charconv.h +++ b/charset/charconv.h @@ -1,7 +1,7 @@ /* * Character Set Conversion Library 1.2 * - * (c) 1998--2004 Martin Mares + * (c) 1998--2005 Martin Mares * * This software may be freely distributed and used according to the terms * of the GNU Lesser General Public License. @@ -53,6 +53,7 @@ enum charset_id { CONV_CHARSET_ISO_8859_15, CONV_CHARSET_ISO_8859_16, CONV_CHARSET_WIN1250, + CONV_CHARSET_WIN1251, CONV_CHARSET_WIN1252, CONV_CHARSET_KAMCS, CONV_CHARSET_CSN369103, @@ -63,6 +64,10 @@ enum charset_id { CONV_NUM_CHARSETS }; +/* Conversion of a single character between current non-UTF8 charset and Unicode */ +int conv_in_to_ucs(struct conv_context *c, unsigned int y); +int conv_ucs_to_out(struct conv_context *c, unsigned int ucs); + /* For those brave ones who want to mess with charconv internals */ unsigned int conv_x_to_ucs(unsigned int x); unsigned int conv_ucs_to_x(unsigned int ucs);