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

ht_text_sub Class Reference

#include <httext.h>

Inheritance diagram for ht_text_sub:

ht_linear_sub ht_sub Object List of all members.

Public Member Functions

void init (ht_streamfile *file, FILEOFS offset, int size)
virtual void done ()
virtual bool convert_ofs_to_id (const FILEOFS offset, LINE_ID *line_id)
virtual bool convert_id_to_ofs (const LINE_ID line_id, FILEOFS *offset)
virtual void first_line_id (LINE_ID *line_id)
virtual bool getline (char *line, const LINE_ID line_id)
virtual void last_line_id (LINE_ID *line_id)
virtual int next_line_id (LINE_ID *line_id, int n)
virtual int prev_line_id (LINE_ID *line_id, int n)

Protected Member Functions

UINT find_linelen_backwd (byte *buf, UINT maxbuflen, FILEOFS ofs, int *le_len)
UINT find_linelen_forwd (byte *buf, UINT maxbuflen, FILEOFS ofs, int *le_len)
virtual byte * match_lineend_forwd (byte *buf, UINT buflen, int *le_len)
virtual byte * match_lineend_backwd (byte *buf, UINT buflen, int *le_len)

Member Function Documentation

bool ht_text_sub::convert_id_to_ofs const LINE_ID  line_id,
FILEOFS offset
[virtual]
 

Reimplemented from ht_sub.

Definition at line 137 of file httext.cc.

References FILEOFS.

bool ht_text_sub::convert_ofs_to_id const FILEOFS  offset,
LINE_ID line_id
[virtual]
 

Reimplemented from ht_sub.

Definition at line 129 of file httext.cc.

References clear_line_id(), FILEOFS, LINE_ID::id1, and prev_line_id().

void ht_text_sub::done  )  [virtual]
 

Reimplemented from ht_linear_sub.

Definition at line 124 of file httext.cc.

References ht_linear_sub::done().

UINT ht_text_sub::find_linelen_backwd byte *  buf,
UINT  maxbuflen,
FILEOFS  ofs,
int *  le_len
[protected]
 

Definition at line 142 of file httext.cc.

References buf, byte, FILEOFS, len, match_lineend_backwd(), ht_stream::read(), ht_streamfile::seek(), TEXT_SUB_MAX_LINEENDLEN, TEXT_SUB_MAX_LINELEN, TEXT_SUB_READSIZE, and UINT.

Referenced by last_line_id(), and prev_line_id().

UINT ht_text_sub::find_linelen_forwd byte *  buf,
UINT  maxbuflen,
FILEOFS  ofs,
int *  le_len
[protected]
 

Definition at line 192 of file httext.cc.

References buf, byte, FILEOFS, len, match_lineend_forwd(), ht_stream::read(), ht_streamfile::seek(), TEXT_SUB_MAX_LINEENDLEN, TEXT_SUB_MAX_LINELEN, TEXT_SUB_READSIZE, and UINT.

Referenced by getline(), and next_line_id().

void ht_text_sub::first_line_id LINE_ID line_id  )  [virtual]
 

Reimplemented from ht_sub.

Definition at line 228 of file httext.cc.

References clear_line_id(), and LINE_ID::id1.

bool ht_text_sub::getline char *  line,
const LINE_ID  line_id
[virtual]
 

Reimplemented from ht_sub.

Definition at line 234 of file httext.cc.

References byte, FILEOFS, find_linelen_forwd(), ht_text_sub_line, LINE_ID::id1, ht_stream::read(), ht_streamfile::seek(), and UINT.

void ht_text_sub::init ht_streamfile file,
FILEOFS  offset,
int  size
 

Reimplemented from ht_linear_sub.

Definition at line 119 of file httext.cc.

References file, FILEOFS, Object::init(), and size.

Referenced by httext_init().

void ht_text_sub::last_line_id LINE_ID line_id  )  [virtual]
 

Reimplemented from ht_sub.

Definition at line 255 of file httext.cc.

References clear_line_id(), FILEOFS, find_linelen_backwd(), ht_text_sub_line, LINE_ID::id1, NULL, and UINT.

byte * ht_text_sub::match_lineend_backwd byte *  buf,
UINT  buflen,
int *  le_len
[protected, virtual]
 

Definition at line 280 of file httext.cc.

References buf, byte, memrchr(), NULL, and UINT.

Referenced by find_linelen_backwd().

byte * ht_text_sub::match_lineend_forwd byte *  buf,
UINT  buflen,
int *  le_len
[protected, virtual]
 

Definition at line 263 of file httext.cc.

References buf, byte, NULL, and UINT.

Referenced by find_linelen_forwd().

int ht_text_sub::next_line_id LINE_ID line_id,
int  n
[virtual]
 

Reimplemented from ht_sub.

Definition at line 297 of file httext.cc.

References FILEOFS, find_linelen_forwd(), ht_text_sub_line, LINE_ID::id1, NULL, and UINT.

int ht_text_sub::prev_line_id LINE_ID line_id,
int  n
[virtual]
 

Reimplemented from ht_sub.

Definition at line 311 of file httext.cc.

References FILEOFS, find_linelen_backwd(), ht_text_sub_line, LINE_ID::id1, NULL, and UINT.

Referenced by convert_ofs_to_id().


The documentation for this class was generated from the following files:
Generated on Fri May 7 21:16:04 2004 by doxygen 1.3.5