summaryrefslogtreecommitdiffstats
path: root/charset.h
diff options
context:
space:
mode:
authorThomas Roessler <roessler@does-not-exist.org>1999-01-05 14:35:11 +0000
committerThomas Roessler <roessler@does-not-exist.org>1999-01-05 14:35:11 +0000
commit4a3e38f09949c92947e227122e227ef311a1e170 (patch)
tree7952c23bdba7a5a6c87bac5cbdc13a6c05364063 /charset.h
parent6033893cb58a49f3bcada5caa84ab4ffed08d534 (diff)
[unstable] Adding experimental new character set conversion code.
Diffstat (limited to 'charset.h')
-rw-r--r--charset.h31
1 files changed, 26 insertions, 5 deletions
diff --git a/charset.h b/charset.h
index fd67cf32..5a254768 100644
--- a/charset.h
+++ b/charset.h
@@ -1,6 +1,6 @@
/* $Id$ */
/*
- * Copyright (C) 1998 Ruslan Ermilov <ru@ucb.crimea.ua>
+ * Copyright (C) 1999 Thomas Roessler <roessler@guug.de>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
@@ -26,13 +26,34 @@
typedef int CHARSET_MAP[256];
-typedef struct
+typedef struct descr
{
- CHARSET_MAP *map;
-}
+ char *symbol;
+ int repr;
+}
+CHARDESC;
+
+typedef struct
+{
+ char *charset;
+ char escape_char;
+ char comment_char;
+ short multbyte;
+ LIST *aliases;
+}
+CHARMAP;
+
+typedef struct
+{
+ size_t n_symb;
+ size_t u_symb;
+
+ short multbyte;
+ HASH *symb_to_repr;
+ CHARDESC **description;
+}
CHARSET;
-#define mutt_unicode_char(cm,ch) (!cm ? -1 : (*cm)[ch])
CHARSET *mutt_get_charset(const char *);
CHARSET_MAP *mutt_get_translation(const char *, const char *);