Changeset 698:b0ea4bca27ad for charset.h

Show
Ignore:
Timestamp:
1999-01-05 06:35:11 (10 years ago)
Author:
Thomas Roessler <roessler@…>
Branch:
HEAD
Message:

[unstable] Adding experimental new character set conversion code.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • charset.h

    r636 r698  
    11/* $Id$ */ 
    22/* 
    3  * Copyright (C) 1998 Ruslan Ermilov <ru@ucb.crimea.ua> 
     3 * Copyright (C) 1999 Thomas Roessler <roessler@guug.de> 
    44 * 
    55 *     This program is free software; you can redistribute it and/or modify 
     
    2727typedef int CHARSET_MAP[256]; 
    2828 
    29 typedef struct  
     29typedef struct descr 
    3030{ 
    31   CHARSET_MAP *map; 
    32 }  
     31  char *symbol; 
     32  int repr; 
     33} 
     34CHARDESC; 
     35 
     36typedef struct 
     37{ 
     38  char *charset; 
     39  char escape_char; 
     40  char comment_char; 
     41  short multbyte; 
     42  LIST *aliases; 
     43} 
     44CHARMAP; 
     45 
     46typedef struct 
     47{ 
     48  size_t n_symb; 
     49  size_t u_symb; 
     50 
     51  short multbyte; 
     52  HASH *symb_to_repr; 
     53  CHARDESC **description; 
     54} 
    3355CHARSET; 
    3456 
    35 #define mutt_unicode_char(cm,ch) (!cm ? -1 : (*cm)[ch]) 
    3657 
    3758CHARSET *mutt_get_charset(const char *);