HTML Tidy  5.6.0
The HTACG Tidy HTML Project
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
streamio.h File Reference

Go to the source code of this file.

Data Structures

struct  StreamIn
 
struct  StreamOut
 

Macros

#define ASCII   1
 
#define BIG5   12
 
#define CR   0xD
 
#define DEFAULT_NL_CONFIG   TidyLF
 
#define IBM858   8
 
#define ISO2022   5
 
#define LATIN0   2
 
#define LATIN1   3
 
#define LF   0xA
 
#define MACROMAN   6
 
#define RAW   0
 
#define SHIFTJIS   13
 
#define UTF16   11
 
#define UTF16BE   10
 
#define UTF16LE   9
 
#define UTF8   4
 
#define WIN1252   7
 

Enumerations

enum  {
  CHARBUF_SIZE =5,
  LASTPOS_SIZE =64
}
 
enum  IOType {
  FileIO,
  BufferIO,
  UserIO
}
 
enum  ISO2022State {
  FSM_ASCII,
  FSM_ESC,
  FSM_ESCD,
  FSM_ESCDP,
  FSM_ESCP,
  FSM_NONASCII
}
 

Functions

StreamIn * TY_❪BufferInput❫ (TidyDocImpl *doc, TidyBuffer *content, int encoding)
 
StreamOut * TY_❪BufferOutput❫ (TidyDocImpl *doc, TidyBuffer *buf, int encoding, uint newln)
 
uint TY_❪DecodeMacRoman❫ (uint c)
 
uint TY_❪DecodeWin1252❫ (uint c)
 
StreamIn * TY_❪FileInput❫ (TidyDocImpl *doc, FILE *fp, int encoding)
 
StreamOut * TY_❪FileOutput❫ (TidyDocImpl *doc, FILE *fp, int encoding, uint newln)
 
void TY_❪freeStreamIn❫ (StreamIn *in)
 
int TY_❪GetCharEncodingFromOptName❫ (ctmbstr charenc)
 
ctmbstr TY_❪GetEncodingNameFromTidyId❫ (uint id)
 
ctmbstr TY_❪GetEncodingOptNameFromTidyId❫ (uint id)
 
StreamIn * TY_❪initStreamIn❫ (TidyDocImpl *doc, int encoding)
 
Bool TY_❪IsEOF❫ (StreamIn *in)
 
void TY_❪outBOM❫ (StreamOut *out)
 
int TY_❪ReadBOMEncoding❫ (StreamIn *in)
 
uint TY_❪ReadChar❫ (StreamIn *in)
 
void TY_❪ReleaseStreamOut❫ (TidyDocImpl *doc, StreamOut *out)
 
StreamOut * TY_❪StdErrOutput❫ (void)
 
void TY_❪UngetChar❫ (uint c, StreamIn *in)
 
StreamIn * TY_❪UserInput❫ (TidyDocImpl *doc, TidyInputSource *source, int encoding)
 
StreamOut * TY_❪UserOutput❫ (TidyDocImpl *doc, TidyOutputSink *sink, int encoding, uint newln)
 
void TY_❪WriteChar❫ (uint c, StreamOut *out)
 

Data Structure Documentation

struct _StreamIn
Data Fields
TidyAllocator * allocator
uint bufpos
uint bufsize
tchar * charbuf
int curcol
unsigned short curlastpos
int curline
TidyDocImpl * doc
int encoding
unsigned short firstlastpos
IOType iotype
int lastcols[LASTPOS_SIZE]
Bool pushed
TidyInputSource source
ISO2022State state
int tabs
struct _StreamOut
Data Fields
int encoding
IOType iotype
uint nl
TidyOutputSink sink
ISO2022State state

Macro Definition Documentation

#define ASCII   1
#define BIG5   12
#define CR   0xD
#define DEFAULT_NL_CONFIG   TidyLF
#define IBM858   8
#define ISO2022   5
#define LATIN0   2
#define LATIN1   3
#define LF   0xA
#define MACROMAN   6
#define RAW   0
#define SHIFTJIS   13
#define UTF16   11
#define UTF16BE   10
#define UTF16LE   9
#define UTF8   4
#define WIN1252   7

Enumeration Type Documentation

anonymous enum
Enumerator
CHARBUF_SIZE 
LASTPOS_SIZE 
enum IOType
Enumerator
FileIO 
BufferIO 
UserIO 
Enumerator
FSM_ASCII 
FSM_ESC 
FSM_ESCD 
FSM_ESCDP 
FSM_ESCP 
FSM_NONASCII 

Function Documentation

StreamIn* TY_❪BufferInput❫ ( TidyDocImpl *  doc,
TidyBuffer *  content,
int  encoding 
)
StreamOut* TY_❪BufferOutput❫ ( TidyDocImpl *  doc,
TidyBuffer *  buf,
int  encoding,
uint  newln 
)
uint TY_❪DecodeMacRoman❫ ( uint  c)
uint TY_❪DecodeWin1252❫ ( uint  c)
StreamIn* TY_❪FileInput❫ ( TidyDocImpl *  doc,
FILE *  fp,
int  encoding 
)
StreamOut* TY_❪FileOutput❫ ( TidyDocImpl *  doc,
FILE *  fp,
int  encoding,
uint  newln 
)
void TY_❪freeStreamIn❫ ( StreamIn *  in)
int TY_❪GetCharEncodingFromOptName❫ ( ctmbstr  charenc)
ctmbstr TY_❪GetEncodingNameFromTidyId❫ ( uint  id)
ctmbstr TY_❪GetEncodingOptNameFromTidyId❫ ( uint  id)
StreamIn* TY_❪initStreamIn❫ ( TidyDocImpl *  doc,
int  encoding 
)
Bool TY_❪IsEOF❫ ( StreamIn *  in)
void TY_❪outBOM❫ ( StreamOut *  out)
int TY_❪ReadBOMEncoding❫ ( StreamIn *  in)
uint TY_❪ReadChar❫ ( StreamIn *  in)
void TY_❪ReleaseStreamOut❫ ( TidyDocImpl *  doc,
StreamOut *  out 
)
StreamOut* TY_❪StdErrOutput❫ ( void  )
void TY_❪UngetChar❫ ( uint  c,
StreamIn *  in 
)
StreamIn* TY_❪UserInput❫ ( TidyDocImpl *  doc,
TidyInputSource source,
int  encoding 
)
StreamOut* TY_❪UserOutput❫ ( TidyDocImpl *  doc,
TidyOutputSink sink,
int  encoding,
uint  newln 
)
void TY_❪WriteChar❫ ( uint  c,
StreamOut *  out 
)