#include <httext.h>
Inheritance diagram for ht_text_sub:
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) |
|
Reimplemented from ht_sub. Definition at line 137 of file httext.cc. References FILEOFS. |
|
Reimplemented from ht_sub. Definition at line 129 of file httext.cc. References clear_line_id(), FILEOFS, LINE_ID::id1, and prev_line_id(). |
|
Reimplemented from ht_linear_sub. Definition at line 124 of file httext.cc. References ht_linear_sub::done(). |
|
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(). |
|
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(). |
|
Reimplemented from ht_sub. Definition at line 228 of file httext.cc. References clear_line_id(), and LINE_ID::id1. |
|
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. |
|
Reimplemented from ht_linear_sub. Definition at line 119 of file httext.cc. References file, FILEOFS, Object::init(), and size. Referenced by httext_init(). |
|
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. |
|
Definition at line 280 of file httext.cc. References buf, byte, memrchr(), NULL, and UINT. Referenced by find_linelen_backwd(). |
|
Definition at line 263 of file httext.cc. References buf, byte, NULL, and UINT. Referenced by find_linelen_forwd(). |
|
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. |
|
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(). |