Main Page | Class List | File List | Class Members | File Members

encoding.c File Reference

#include <sys/types.h>
#include "config.h"
#include "screen.h"
#include "extern.h"

Classes

struct  encoding
struct  recodetab
struct  combchar

Defines

#define RECODETAB_ALLOCED   1
#define RECODETAB_BUILTIN   2
#define RECODETAB_TRIED   4

Functions

void InitBuiltinTabs ()
mcharrecode_mchar (struct mchar *mc, int from, int to)
mlinerecode_mline (struct mline *ml, int w, int from, int to)
void AddUtf8 (int c)
int ToUtf8_comb (char *p, int c)
int ToUtf8 (char *p, int c)
int FromUtf8 (int c, int *utf8charp)
void WinSwitchEncoding (struct win *p, int encoding)
int utf8_isdouble (int c)
int utf8_iscomb (int c)
void utf8_handle_comb (int c, struct mchar *mc)
int FindEncoding (char *name)
char * EncodingName (int encoding)
int EncodingDefFont (int encoding)
void ResetEncoding (struct win *p)
int DecodeChar (int c, int encoding, int *statep)
int EncodeChar (char *bp, int c, int encoding, int *fontp)
int CanEncodeFont (int encoding, int f)
int PrepareEncodedChar (int c)
int RecodeBuf (unsigned char *fbuf, int flen, int fenc, int tenc, unsigned char *tbuf)
int ContainsSpecialDeffont (struct mline *ml, int xs, int xe, int encoding)
int LoadFontTranslation (int font, char *file)
void LoadFontTranslationsForEncoding (int encoding)

Variables

unsigned char * null
displaydisplay
displaydisplays
layerflayer
char * screenencodings
encoding encodings []
combchar ** combchars

Define Documentation

#define RECODETAB_ALLOCED   1
 

#define RECODETAB_BUILTIN   2
 

#define RECODETAB_TRIED   4
 


Function Documentation

void AddUtf8 int  c  ) 
 

int CanEncodeFont int  encoding,
int  f
 

int ContainsSpecialDeffont struct mline ml,
int  xs,
int  xe,
int  encoding
 

int DecodeChar int  c,
int  encoding,
int *  statep
 

int EncodeChar char *  bp,
int  c,
int  encoding,
int *  fontp
 

int EncodingDefFont int  encoding  ) 
 

char* EncodingName int  encoding  ) 
 

int FindEncoding char *  name  ) 
 

int FromUtf8 int  c,
int *  utf8charp
 

void InitBuiltinTabs  ) 
 

int LoadFontTranslation int  font,
char *  file
 

void LoadFontTranslationsForEncoding int  encoding  ) 
 

int PrepareEncodedChar int  c  ) 
 

struct mchar* recode_mchar struct mchar mc,
int  from,
int  to
 

struct mline* recode_mline struct mline ml,
int  w,
int  from,
int  to
 

int RecodeBuf unsigned char *  fbuf,
int  flen,
int  fenc,
int  tenc,
unsigned char *  tbuf
 

void ResetEncoding struct win p  ) 
 

int ToUtf8 char *  p,
int  c
 

int ToUtf8_comb char *  p,
int  c
 

void utf8_handle_comb int  c,
struct mchar mc
 

int utf8_iscomb int  c  ) 
 

int utf8_isdouble int  c  ) 
 

void WinSwitchEncoding struct win p,
int  encoding
 


Variable Documentation

struct combchar** combchars
 

struct display* display
 

struct display * displays
 

struct encoding encodings[]
 

Initial value:

 {
  { "C",                0,              0,              0, 0, 0 },
  { "eucJP",            "B\002I\00401", 0,              1, 0, "\002\004I" },
  { "SJIS",             "BIBB01",       0,              1, 1, "\002I" },
  { "eucKR",            "B\003BB01",    0,              1, 0, "\003" },
  { "eucCN",            "B\001BB01",    0,              1, 0, "\001" },
  { "Big5",             "B\030BB01",    0,              1, 0, "\030" },
  { "KOI8-R",           0,              0x80|'!',       0, 1, 0 },
  { "CP1251",           0,              0x80|'?',       0, 1, 0 },
  { "UTF-8",            0,              -1,             0, 0, 0 },
  { "ISO8859-2",        0,              0x80|'B',       0, 0, 0 },
  { "ISO8859-3",        0,              0x80|'C',       0, 0, 0 },
  { "ISO8859-4",        0,              0x80|'D',       0, 0, 0 },
  { "ISO8859-5",        0,              0x80|'L',       0, 0, 0 },
  { "ISO8859-6",        0,              0x80|'G',       0, 0, 0 },
  { "ISO8859-7",        0,              0x80|'F',       0, 0, 0 },
  { "ISO8859-8",        0,              0x80|'H',       0, 0, 0 },
  { "ISO8859-9",        0,              0x80|'M',       0, 0, 0 },
  { "ISO8859-10",       0,              0x80|'V',       0, 0, 0 },
  { "ISO8859-15",       0,              0x80|'b',       0, 0, 0 },
  { "jis",              0,              0,              0, 0, "\002\004I" },
  { "GBK",              "B\031BB01",    0x80|'b',       1, 1, "\031" }
}

struct layer* flayer
 

unsigned char* null
 

char* screenencodings
 


Generated on Sat Jul 2 20:56:16 2005 for GNU Screen by  doxygen 1.4.3