tin  2.4.5
About: TIN is a threaded NNTP and spool based UseNet newsreader.
  Fossies Dox: tin-2.4.5.tar.xz  ("unofficial" and yet experimental doxygen-generated source code documentation)  

charset.c File Reference
#include "tin.h"
Include dependency graph for charset.c:

Go to the source code of this file.

Macros

#define SUB   "?"
 
#define ISO_EXTRA   0xa0 /* beginning of second range of printable chars */
 
#define TABSTOP(x)   (((x) - ((x)&7)) + 8)
 
#define TEX_SUBST   16
 
#define SPACES   " "
 

Functions

void convert_iso2asc (char *iso, char **asc_buffer, size_t *max_line_len, int t)
 
void convert_tex2iso (char *from, char *to)
 
t_bool is_art_tex_encoded (FILE *fp)
 
char * convert_to_printable (char *buf, t_bool keep_tab)
 

Variables

static constext *const iso2asc [7][256- 0xa0]
 
static const char *const tex_from [16]
 

Macro Definition Documentation

◆ ISO_EXTRA

#define ISO_EXTRA   0xa0 /* beginning of second range of printable chars */

Definition at line 52 of file charset.c.

◆ SPACES

#define SPACES   " "

Definition at line 151 of file charset.c.

◆ SUB

#define SUB   "?"

Definition at line 51 of file charset.c.

◆ TABSTOP

#define TABSTOP (   x)    (((x) - ((x)&7)) + 8)

Definition at line 59 of file charset.c.

◆ TEX_SUBST

#define TEX_SUBST   16

Definition at line 150 of file charset.c.

Function Documentation

◆ convert_iso2asc()

void convert_iso2asc ( char *  iso,
char **  asc_buffer,
size_t *  max_line_len,
int  t 
)

Definition at line 163 of file charset.c.

References EIGHT_BIT, FALSE, iso2asc, ISO_EXTRA, my_realloc, offset, TABSTOP, and TRUE.

Referenced by process_charsets().

◆ convert_tex2iso()

void convert_tex2iso ( char *  from,
char *  to 
)

Definition at line 263 of file charset.c.

References FALSE, IS_LOCAL_CHARSET, iso2asc_supported, SPACES, tex_from, TEX_SUBST, and TRUE.

Referenced by process_charsets().

◆ convert_to_printable()

char* convert_to_printable ( char *  buf,
t_bool  keep_tab 
)

◆ is_art_tex_encoded()

t_bool is_art_tex_encoded ( FILE *  fp)

Definition at line 345 of file charset.c.

References FALSE, LEN, and TRUE.

Referenced by art_open(), and show_page().

Variable Documentation

◆ iso2asc

constext* const iso2asc[7][256- 0xa0]
static

Definition at line 61 of file charset.c.

Referenced by convert_iso2asc().

◆ tex_from

const char* const tex_from[16]
static
Initial value:
=
{
"\"a","\\\"a","\"o","\\\"o","\"u","\\\"u","\"A","\\\"A","\"O","\\\"O","\"U","\\\"U","\"s","\\\"s","\\3",'\0'
}

Definition at line 153 of file charset.c.

Referenced by convert_tex2iso().