2001-05-31 05:27:20 +04:00
|
|
|
#ifdef HAVE_CHARSET
|
|
|
|
#ifndef __CHARSETS_H__
|
|
|
|
#define __CHARSETS_H__
|
|
|
|
|
|
|
|
#define UNKNCHAR '\001'
|
|
|
|
|
2001-06-08 02:36:45 +04:00
|
|
|
#define CHARSETS_INDEX "mc.charsets"
|
2001-05-31 05:27:20 +04:00
|
|
|
|
|
|
|
typedef unsigned char uchar;
|
|
|
|
|
|
|
|
extern int n_codepages;
|
|
|
|
|
|
|
|
extern uchar conv_displ[256];
|
|
|
|
extern uchar conv_input[256];
|
|
|
|
extern uchar printable[256];
|
|
|
|
|
|
|
|
struct codepage_desc {
|
|
|
|
char *id;
|
|
|
|
char *name;
|
|
|
|
};
|
|
|
|
|
|
|
|
extern struct codepage_desc *codepages;
|
|
|
|
|
|
|
|
char *get_codepage_id( int n );
|
|
|
|
int get_codepage_index( const char *id );
|
2001-07-31 09:54:39 +04:00
|
|
|
int load_codepages_list(void);
|
2001-10-29 16:40:00 +03:00
|
|
|
void free_codepages_list(void);
|
2001-05-31 05:27:20 +04:00
|
|
|
char* init_translation_table( int cpsource, int cpdisplay );
|
|
|
|
void convert_to_display( char *str );
|
|
|
|
void convert_from_input( char *str );
|
|
|
|
void convert_string( uchar *str );
|
|
|
|
|
|
|
|
#endif /* __CHARSETS_H__ */
|
|
|
|
#endif /* HAVE_CHARSET */
|