HTML Tidy  5.9.15
The HTACG Tidy HTML Project
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

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

Data Structure Documentation

◆ _StreamIn

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

◆ _StreamOut

struct _StreamOut
Data Fields
int encoding
IOType iotype
uint nl
TidyOutputSink sink
ISO2022State state

Macro Definition Documentation

◆ ASCII

#define ASCII   1

◆ BIG5

#define BIG5   12

◆ CR

#define CR   0xD

◆ DEFAULT_NL_CONFIG

#define DEFAULT_NL_CONFIG   TidyLF

◆ IBM858

#define IBM858   8

◆ ISO2022

#define ISO2022   5

◆ LATIN0

#define LATIN0   2

◆ LATIN1

#define LATIN1   3

◆ LF

#define LF   0xA

◆ MACROMAN

#define MACROMAN   6

◆ RAW

#define RAW   0

◆ SHIFTJIS

#define SHIFTJIS   13

◆ UTF16

#define UTF16   11

◆ UTF16BE

#define UTF16BE   10

◆ UTF16LE

#define UTF16LE   9

◆ UTF8

#define UTF8   4

◆ WIN1252

#define WIN1252   7

Enumeration Type Documentation

◆ anonymous enum

anonymous enum
Enumerator
CHARBUF_SIZE 
LASTPOS_SIZE 

◆ IOType

enum IOType
Enumerator
FileIO 
BufferIO 
UserIO 

◆ ISO2022State

Enumerator
FSM_ASCII 
FSM_ESC 
FSM_ESCD 
FSM_ESCDP 
FSM_ESCP 
FSM_NONASCII 

Function Documentation

◆ TY_❪BufferInput❫()

TY_PRIVATE StreamIn* TY_❪BufferInput❫ ( TidyDocImpl *  doc,
TidyBuffer *  content,
int  encoding 
)

◆ TY_❪BufferOutput❫()

TY_PRIVATE StreamOut* TY_❪BufferOutput❫ ( TidyDocImpl *  doc,
TidyBuffer *  buf,
int  encoding,
uint  newln 
)

◆ TY_❪DecodeMacRoman❫()

TY_PRIVATE uint TY_❪DecodeMacRoman❫ ( uint  c)

◆ TY_❪DecodeWin1252❫()

TY_PRIVATE uint TY_❪DecodeWin1252❫ ( uint  c)

◆ TY_❪FileInput❫()

TY_PRIVATE StreamIn* TY_❪FileInput❫ ( TidyDocImpl *  doc,
FILE *  fp,
int  encoding 
)

◆ TY_❪FileOutput❫()

TY_PRIVATE StreamOut* TY_❪FileOutput❫ ( TidyDocImpl *  doc,
FILE *  fp,
int  encoding,
uint  newln 
)

◆ TY_❪freeStreamIn❫()

TY_PRIVATE void TY_❪freeStreamIn❫ ( StreamIn *  in)

◆ TY_❪GetCharEncodingFromOptName❫()

TY_PRIVATE int TY_❪GetCharEncodingFromOptName❫ ( ctmbstr  charenc)

◆ TY_❪GetEncodingNameFromTidyId❫()

TY_PRIVATE ctmbstr TY_❪GetEncodingNameFromTidyId❫ ( uint  id)

◆ TY_❪GetEncodingOptNameFromTidyId❫()

TY_PRIVATE ctmbstr TY_❪GetEncodingOptNameFromTidyId❫ ( uint  id)

◆ TY_❪initStreamIn❫()

TY_PRIVATE StreamIn* TY_❪initStreamIn❫ ( TidyDocImpl *  doc,
int  encoding 
)

◆ TY_❪IsEOF❫()

TY_PRIVATE Bool TY_❪IsEOF❫ ( StreamIn *  in)

◆ TY_❪outBOM❫()

TY_PRIVATE void TY_❪outBOM❫ ( StreamOut *  out)

◆ TY_❪ReadBOMEncoding❫()

TY_PRIVATE int TY_❪ReadBOMEncoding❫ ( StreamIn *  in)

◆ TY_❪ReadChar❫()

TY_PRIVATE uint TY_❪ReadChar❫ ( StreamIn *  in)

◆ TY_❪ReleaseStreamOut❫()

TY_PRIVATE void TY_❪ReleaseStreamOut❫ ( TidyDocImpl *  doc,
StreamOut *  out 
)

◆ TY_❪StdErrOutput❫()

TY_PRIVATE StreamOut* TY_❪StdErrOutput❫ ( void  )

◆ TY_❪UngetChar❫()

TY_PRIVATE void TY_❪UngetChar❫ ( uint  c,
StreamIn *  in 
)

◆ TY_❪UserInput❫()

TY_PRIVATE StreamIn* TY_❪UserInput❫ ( TidyDocImpl *  doc,
TidyInputSource source,
int  encoding 
)

◆ TY_❪UserOutput❫()

TY_PRIVATE StreamOut* TY_❪UserOutput❫ ( TidyDocImpl *  doc,
TidyOutputSink sink,
int  encoding,
uint  newln 
)

◆ TY_❪WriteChar❫()

TY_PRIVATE void TY_❪WriteChar❫ ( uint  c,
StreamOut *  out 
)