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

httag.cc File Reference

#include "global.h"
#include "htdebug.h"
#include "htstring.h"
#include "httag.h"
#include "tools.h"
#include <stdarg.h>
#include <stdlib.h>
#include <string.h>

Go to the source code of this file.

Functions

TAGSTRINGtag_make_sel (TAGSTRING *buf, char *string)
TAGSTRINGtag_make_ref_len (TAGSTRING *buf, dword id128_1, dword id128_2, dword id128_3, dword id128_4, char *string, int strlen)
TAGSTRINGtag_make_ref (TAGSTRING *buf, dword id128_1, dword id128_2, dword id128_3, dword id128_4, char *string)
TAGSTRINGtag_make_flags (TAGSTRING *buf, dword ofs32, dword id)
TAGSTRINGtag_make_group (TAGSTRING *buf)
TAGSTRINGtag_make_color (TAGSTRING *buf, dword color)
TAGSTRINGtag_make_default_color (TAGSTRING *buf)
TAGSTRINGtag_make_edit_byte (TAGSTRING *buf, FILEOFS ofs32)
TAGSTRINGtag_make_edit_word (TAGSTRING *buf, FILEOFS ofs32, tag_endian e)
TAGSTRINGtag_make_edit_dword (TAGSTRING *buf, FILEOFS ofs32, tag_endian e)
TAGSTRINGtag_make_edit_qword (TAGSTRING *buf, FILEOFS ofs32, tag_endian e)
TAGSTRINGtag_make_edit_time (TAGSTRING *buf, FILEOFS ofs32)
TAGSTRINGtag_make_edit_char (TAGSTRING *buf, FILEOFS ofs32)
TAGSTRINGtag_make_edit_bit (TAGSTRING *buf, FILEOFS ofs32, int bitidx)
TAGSTRINGtag_make_edit_selvis (TAGSTRING *buf, FILEOFS offset, char ch)
TAGSTRINGtag_make_desc_byte (TAGSTRING *buf, FILEOFS ofs32, dword id32)
TAGSTRINGtag_make_desc_word (TAGSTRING *buf, FILEOFS ofs32, dword id32, tag_endian e)
TAGSTRINGtag_make_desc_dword (TAGSTRING *buf, FILEOFS ofs32, dword id32, tag_endian e)
TAGSTRINGtag_make_desc_qword (TAGSTRING *buf, FILEOFS ofs32, dword id32, tag_endian e)
void statictag_to_tag (char *statictag_str, TAGSTRING *tag_str, dword relocation, bool std_bigendian)
TAGSTRINGtag_findnext (const TAGSTRING *tagstring)
int tag_get_len (const TAGSTRING *tagstring)
int tag_get_vlen (const TAGSTRING *tagstring)
int tag_get_micropos (const TAGSTRING *tagstring, int i)
int tag_get_microsize (const TAGSTRING *tagstring)
int tag_get_size (const TAGSTRING *tagstring)
dword tag_get_offset (const TAGSTRING *tagstring)
void tag_get_id (const TAGSTRING *tagstring, dword *id128_1, dword *id128_2, dword *id128_3, dword *id128_4)
TAGSTRINGtag_get_seltext (const TAGSTRING *tagstring)
int tag_get_seltextlen (const TAGSTRING *tagstring)
vcp tag_get_color (const TAGSTRING *tagstring)
bool tag_get_desc_id (const TAGSTRING *tagstring, dword *id)
void tag_set_offset (const TAGSTRING *tagstring, dword offset)
int tag_is_editable (const TAGSTRING *tagstring)
void tag_strcat (TAGSTRING *dest, const TAGSTRING *src)
void tag_strcpy (TAGSTRING *dest, const TAGSTRING *src)
TAGSTRINGtag_strdup (const TAGSTRING *tagstring)
int tag_strlen (const TAGSTRING *tagstring)
int tag_strvlen (const TAGSTRING *tagstring)
int tag_count_selectable_tags_in_group (const TAGSTRING *tagstring, int group)
int tag_count_selectable_tags (const TAGSTRING *tagstring)
int tag_count_groups (const TAGSTRING *tagstring)
TAGSTRINGtag_get_selectable_tag (const TAGSTRING *tagstring, int n, int group)
TAGSTRINGtag_get_group (const TAGSTRING *tagstring, int group)
int tag_get_class (const TAGSTRING *tagstring)
char * tag_striptags (char *dest, const TAGSTRING *src)

Variables

int time_mp [14] = {0,1,3,4,6,7,9,10,12,13,15,16,17,18}


Function Documentation

void statictag_to_tag char *  statictag_str,
TAGSTRING tag_str,
dword  relocation,
bool  std_bigendian
 

Definition at line 306 of file httag.cc.

References byte, dword, FILEOFS, HT_ERROR, HT_STATICTAG_COLOR, HT_STATICTAG_DESC_BYTE, HT_STATICTAG_DESC_DWORD_BE, HT_STATICTAG_DESC_DWORD_LE, HT_STATICTAG_DESC_DWORD_VE, HT_STATICTAG_DESC_QWORD_BE, HT_STATICTAG_DESC_QWORD_LE, HT_STATICTAG_DESC_QWORD_VE, HT_STATICTAG_DESC_WORD_BE, HT_STATICTAG_DESC_WORD_LE, HT_STATICTAG_DESC_WORD_VE, HT_STATICTAG_EDIT_BIT, HT_STATICTAG_EDIT_BYTE, HT_STATICTAG_EDIT_CHAR, HT_STATICTAG_EDIT_DWORD_BE, HT_STATICTAG_EDIT_DWORD_LE, HT_STATICTAG_EDIT_DWORD_VE, HT_STATICTAG_EDIT_QWORD_BE, HT_STATICTAG_EDIT_QWORD_LE, HT_STATICTAG_EDIT_QWORD_VE, HT_STATICTAG_EDIT_SELVIS, HT_STATICTAG_EDIT_TIME, HT_STATICTAG_EDIT_WORD_BE, HT_STATICTAG_EDIT_WORD_LE, HT_STATICTAG_EDIT_WORD_VE, HT_STATICTAG_FLAGS, HT_STATICTAG_GROUP, HT_STATICTAG_SEL, len, tag_endian_big, tag_endian_little, tag_make_color(), tag_make_desc_byte(), tag_make_desc_dword(), tag_make_desc_qword(), tag_make_desc_word(), tag_make_edit_bit(), tag_make_edit_byte(), tag_make_edit_char(), tag_make_edit_dword(), tag_make_edit_qword(), tag_make_edit_selvis(), tag_make_edit_time(), tag_make_edit_word(), tag_make_flags(), tag_make_group(), tag_make_ref_len(), and TAGSTRING.

Referenced by ht_mask_sub::add_staticmask().

int tag_count_groups const TAGSTRING tagstring  ) 
 

Definition at line 1153 of file httag.cc.

References HT_TAG_GROUP, HT_TAG_GROUP_LEN, tag_findnext(), tag_get_len(), and TAGSTRING.

Referenced by ht_uformat_viewer::adjust_cursor_group(), ht_uformat_viewer::cursor_down(), and ht_uformat_viewer::cursor_up().

int tag_count_selectable_tags const TAGSTRING tagstring  ) 
 

Definition at line 1040 of file httag.cc.

References HT_TAG_DESC_BYTE, HT_TAG_DESC_BYTE_LEN, HT_TAG_DESC_DWORD_BE, HT_TAG_DESC_DWORD_BE_LEN, HT_TAG_DESC_DWORD_LE, HT_TAG_DESC_DWORD_LE_LEN, HT_TAG_DESC_DWORD_VE, HT_TAG_DESC_DWORD_VE_LEN, HT_TAG_DESC_QWORD_BE, HT_TAG_DESC_QWORD_BE_LEN, HT_TAG_DESC_QWORD_LE, HT_TAG_DESC_QWORD_LE_LEN, HT_TAG_DESC_QWORD_VE, HT_TAG_DESC_QWORD_VE_LEN, HT_TAG_DESC_WORD_BE, HT_TAG_DESC_WORD_BE_LEN, HT_TAG_DESC_WORD_LE, HT_TAG_DESC_WORD_LE_LEN, HT_TAG_DESC_WORD_VE, HT_TAG_DESC_WORD_VE_LEN, HT_TAG_EDIT_BIT, HT_TAG_EDIT_BIT_LEN, HT_TAG_EDIT_BYTE, HT_TAG_EDIT_BYTE_LEN, HT_TAG_EDIT_CHAR, HT_TAG_EDIT_CHAR_LEN, HT_TAG_EDIT_DWORD_BE, HT_TAG_EDIT_DWORD_BE_LEN, HT_TAG_EDIT_DWORD_LE, HT_TAG_EDIT_DWORD_LE_LEN, HT_TAG_EDIT_DWORD_VE, HT_TAG_EDIT_DWORD_VE_LEN, HT_TAG_EDIT_QWORD_BE, HT_TAG_EDIT_QWORD_BE_LEN, HT_TAG_EDIT_QWORD_LE, HT_TAG_EDIT_QWORD_LE_LEN, HT_TAG_EDIT_QWORD_VE, HT_TAG_EDIT_QWORD_VE_LEN, HT_TAG_EDIT_TIME, HT_TAG_EDIT_TIME_LEN, HT_TAG_EDIT_WORD_BE, HT_TAG_EDIT_WORD_BE_LEN, HT_TAG_EDIT_WORD_LE, HT_TAG_EDIT_WORD_LE_LEN, HT_TAG_EDIT_WORD_VE, HT_TAG_EDIT_WORD_VE_LEN, HT_TAG_FLAGS, HT_TAG_FLAGS_LEN, HT_TAG_SEL, HT_TAG_SEL_LEN, tag_findnext(), tag_get_len(), and TAGSTRING.

Referenced by ht_uformat_viewer::complete_init(), ht_uformat_viewer::edit_input_correctpos(), and ht_uformat_viewer::find_first_edit_tag_with_offset().

int tag_count_selectable_tags_in_group const TAGSTRING tagstring,
int  group
 

Definition at line 924 of file httag.cc.

References HT_TAG_DESC_BYTE, HT_TAG_DESC_BYTE_LEN, HT_TAG_DESC_DWORD_BE, HT_TAG_DESC_DWORD_BE_LEN, HT_TAG_DESC_DWORD_LE, HT_TAG_DESC_DWORD_LE_LEN, HT_TAG_DESC_DWORD_VE, HT_TAG_DESC_DWORD_VE_LEN, HT_TAG_DESC_QWORD_BE, HT_TAG_DESC_QWORD_BE_LEN, HT_TAG_DESC_QWORD_LE, HT_TAG_DESC_QWORD_LE_LEN, HT_TAG_DESC_QWORD_VE, HT_TAG_DESC_QWORD_VE_LEN, HT_TAG_DESC_WORD_BE, HT_TAG_DESC_WORD_BE_LEN, HT_TAG_DESC_WORD_LE, HT_TAG_DESC_WORD_LE_LEN, HT_TAG_DESC_WORD_VE, HT_TAG_DESC_WORD_VE_LEN, HT_TAG_EDIT_BIT, HT_TAG_EDIT_BIT_LEN, HT_TAG_EDIT_BYTE, HT_TAG_EDIT_BYTE_LEN, HT_TAG_EDIT_CHAR, HT_TAG_EDIT_CHAR_LEN, HT_TAG_EDIT_DWORD_BE, HT_TAG_EDIT_DWORD_BE_LEN, HT_TAG_EDIT_DWORD_LE, HT_TAG_EDIT_DWORD_LE_LEN, HT_TAG_EDIT_DWORD_VE, HT_TAG_EDIT_DWORD_VE_LEN, HT_TAG_EDIT_QWORD_BE, HT_TAG_EDIT_QWORD_BE_LEN, HT_TAG_EDIT_QWORD_LE, HT_TAG_EDIT_QWORD_LE_LEN, HT_TAG_EDIT_QWORD_VE, HT_TAG_EDIT_QWORD_VE_LEN, HT_TAG_EDIT_TIME, HT_TAG_EDIT_TIME_LEN, HT_TAG_EDIT_WORD_BE, HT_TAG_EDIT_WORD_BE_LEN, HT_TAG_EDIT_WORD_LE, HT_TAG_EDIT_WORD_LE_LEN, HT_TAG_EDIT_WORD_VE, HT_TAG_EDIT_WORD_VE_LEN, HT_TAG_FLAGS, HT_TAG_FLAGS_LEN, HT_TAG_GROUP, HT_TAG_SEL, HT_TAG_SEL_LEN, tag_findnext(), tag_get_group(), tag_get_len(), and TAGSTRING.

Referenced by ht_uformat_viewer::adjust_cursor_idx(), ht_uformat_viewer::cursor_down(), ht_uformat_viewer::cursor_end(), ht_uformat_viewer::cursor_right(), ht_uformat_viewer::cursor_up(), ht_uformat_viewer::cursormicroedit_forward(), ht_uformat_viewer::draw(), and ht_uformat_viewer::edit_input_correctpos().

TAGSTRING* tag_findnext const TAGSTRING tagstring  ) 
 

Definition at line 484 of file httag.cc.

References TAGSTRING.

Referenced by tag_count_groups(), tag_count_selectable_tags(), tag_count_selectable_tags_in_group(), tag_get_group(), tag_get_selectable_tag(), and ht_uformat_viewer::update_visual_info().

int tag_get_class const TAGSTRING tagstring  ) 
 

Definition at line 1329 of file httag.cc.

References HT_TAG_DESC_BYTE, HT_TAG_DESC_DWORD_BE, HT_TAG_DESC_DWORD_LE, HT_TAG_DESC_DWORD_VE, HT_TAG_DESC_QWORD_BE, HT_TAG_DESC_QWORD_LE, HT_TAG_DESC_QWORD_VE, HT_TAG_DESC_WORD_BE, HT_TAG_DESC_WORD_LE, HT_TAG_DESC_WORD_VE, HT_TAG_EDIT_BIT, HT_TAG_EDIT_BYTE, HT_TAG_EDIT_CHAR, HT_TAG_EDIT_DWORD_BE, HT_TAG_EDIT_DWORD_LE, HT_TAG_EDIT_DWORD_VE, HT_TAG_EDIT_QWORD_BE, HT_TAG_EDIT_QWORD_LE, HT_TAG_EDIT_QWORD_VE, HT_TAG_EDIT_TIME, HT_TAG_EDIT_WORD_BE, HT_TAG_EDIT_WORD_LE, HT_TAG_EDIT_WORD_VE, HT_TAG_FLAGS, HT_TAG_SEL, tag_class_edit, tag_class_no, tag_class_sel, and TAGSTRING.

Referenced by ht_uformat_viewer::cursormicroedit_forward(), ht_uformat_viewer::edit_input_correctpos(), ht_uformat_viewer::find_first_edit_tag_with_offset(), ht_uformat_viewer::ref(), ht_uformat_viewer::update_misc_info(), and ht_uformat_viewer::update_visual_info().

vcp tag_get_color const TAGSTRING tagstring  ) 
 

Definition at line 781 of file httag.cc.

References TAGSTRING, UNALIGNED_MOVE, and vcp.

Referenced by ht_uformat_viewer::render_tagstring().

bool tag_get_desc_id const TAGSTRING tagstring,
dword *  id
 

Definition at line 788 of file httag.cc.

References HT_TAG_DESC_BYTE, HT_TAG_DESC_DWORD_BE, HT_TAG_DESC_DWORD_LE, HT_TAG_DESC_DWORD_VE, HT_TAG_DESC_QWORD_BE, HT_TAG_DESC_QWORD_LE, HT_TAG_DESC_QWORD_VE, HT_TAG_DESC_WORD_BE, HT_TAG_DESC_WORD_LE, HT_TAG_DESC_WORD_VE, TAGSTRING, and UNALIGNED_MOVE.

Referenced by ht_uformat_viewer::render_tagstring_desc().

TAGSTRING* tag_get_group const TAGSTRING tagstring,
int  group
 

Definition at line 1311 of file httag.cc.

References HT_TAG_GROUP, HT_TAG_GROUP_LEN, tag_findnext(), tag_get_len(), and TAGSTRING.

Referenced by tag_count_selectable_tags_in_group(), and tag_get_selectable_tag().

void tag_get_id const TAGSTRING tagstring,
dword *  id128_1,
dword *  id128_2,
dword *  id128_3,
dword *  id128_4
 

Definition at line 758 of file httag.cc.

References HT_TAG_SEL, TAGSTRING, and UNALIGNED_MOVE.

Referenced by ht_uformat_viewer::update_misc_info().

int tag_get_len const TAGSTRING tagstring  ) 
 

Definition at line 489 of file httag.cc.

References assert, HT_TAG_COLOR, HT_TAG_COLOR_LEN, HT_TAG_DESC_BYTE, HT_TAG_DESC_BYTE_LEN, HT_TAG_DESC_DWORD_BE, HT_TAG_DESC_DWORD_BE_LEN, HT_TAG_DESC_DWORD_LE, HT_TAG_DESC_DWORD_LE_LEN, HT_TAG_DESC_DWORD_VE, HT_TAG_DESC_DWORD_VE_LEN, HT_TAG_DESC_QWORD_BE, HT_TAG_DESC_QWORD_BE_LEN, HT_TAG_DESC_QWORD_LE, HT_TAG_DESC_QWORD_LE_LEN, HT_TAG_DESC_QWORD_VE, HT_TAG_DESC_QWORD_VE_LEN, HT_TAG_DESC_WORD_BE, HT_TAG_DESC_WORD_BE_LEN, HT_TAG_DESC_WORD_LE, HT_TAG_DESC_WORD_LE_LEN, HT_TAG_DESC_WORD_VE, HT_TAG_DESC_WORD_VE_LEN, HT_TAG_EDIT_BIT, HT_TAG_EDIT_BIT_LEN, HT_TAG_EDIT_BYTE, HT_TAG_EDIT_BYTE_LEN, HT_TAG_EDIT_CHAR, HT_TAG_EDIT_CHAR_LEN, HT_TAG_EDIT_DWORD_BE, HT_TAG_EDIT_DWORD_BE_LEN, HT_TAG_EDIT_DWORD_LE, HT_TAG_EDIT_DWORD_LE_LEN, HT_TAG_EDIT_DWORD_VE, HT_TAG_EDIT_DWORD_VE_LEN, HT_TAG_EDIT_QWORD_BE, HT_TAG_EDIT_QWORD_BE_LEN, HT_TAG_EDIT_QWORD_LE, HT_TAG_EDIT_QWORD_LE_LEN, HT_TAG_EDIT_QWORD_VE, HT_TAG_EDIT_QWORD_VE_LEN, HT_TAG_EDIT_SELVIS, HT_TAG_EDIT_SELVIS_LEN, HT_TAG_EDIT_TIME, HT_TAG_EDIT_TIME_LEN, HT_TAG_EDIT_WORD_BE, HT_TAG_EDIT_WORD_BE_LEN, HT_TAG_EDIT_WORD_LE, HT_TAG_EDIT_WORD_LE_LEN, HT_TAG_EDIT_WORD_VE, HT_TAG_EDIT_WORD_VE_LEN, HT_TAG_FLAGS, HT_TAG_FLAGS_LEN, HT_TAG_GROUP, HT_TAG_GROUP_LEN, HT_TAG_SEL, HT_TAG_SEL_LEN, and TAGSTRING.

Referenced by ht_uformat_viewer::find_first_edit_tag_with_offset(), AnalyserHTOutput::putElement(), tag_count_groups(), tag_count_selectable_tags(), tag_count_selectable_tags_in_group(), tag_get_group(), tag_get_selectable_tag(), tag_striptags(), tag_strlen(), tag_strvlen(), and ht_uformat_viewer::update_visual_info().

int tag_get_micropos const TAGSTRING tagstring,
int  i
 

Definition at line 594 of file httag.cc.

References HT_TAG_EDIT_BIT, HT_TAG_EDIT_BYTE, HT_TAG_EDIT_CHAR, HT_TAG_EDIT_DWORD_BE, HT_TAG_EDIT_DWORD_LE, HT_TAG_EDIT_DWORD_VE, HT_TAG_EDIT_QWORD_BE, HT_TAG_EDIT_QWORD_LE, HT_TAG_EDIT_QWORD_VE, HT_TAG_EDIT_TIME, HT_TAG_EDIT_WORD_BE, HT_TAG_EDIT_WORD_LE, HT_TAG_EDIT_WORD_VE, TAGSTRING, and time_mp.

Referenced by ht_uformat_viewer::draw().

int tag_get_microsize const TAGSTRING tagstring  ) 
 

Definition at line 617 of file httag.cc.

References HT_TAG_EDIT_BIT, HT_TAG_EDIT_BIT_VLEN, HT_TAG_EDIT_BYTE, HT_TAG_EDIT_BYTE_VLEN, HT_TAG_EDIT_CHAR, HT_TAG_EDIT_CHAR_VLEN, HT_TAG_EDIT_DWORD_BE, HT_TAG_EDIT_DWORD_BE_VLEN, HT_TAG_EDIT_DWORD_LE, HT_TAG_EDIT_DWORD_LE_VLEN, HT_TAG_EDIT_DWORD_VE, HT_TAG_EDIT_DWORD_VE_VLEN, HT_TAG_EDIT_QWORD_BE, HT_TAG_EDIT_QWORD_BE_VLEN, HT_TAG_EDIT_QWORD_LE, HT_TAG_EDIT_QWORD_LE_VLEN, HT_TAG_EDIT_QWORD_VE, HT_TAG_EDIT_QWORD_VE_VLEN, HT_TAG_EDIT_TIME, HT_TAG_EDIT_WORD_BE, HT_TAG_EDIT_WORD_BE_VLEN, HT_TAG_EDIT_WORD_LE, HT_TAG_EDIT_WORD_LE_VLEN, HT_TAG_EDIT_WORD_VE, HT_TAG_EDIT_WORD_VE_VLEN, and TAGSTRING.

Referenced by ht_uformat_viewer::cursor_end(), ht_uformat_viewer::cursormicro_backward(), ht_uformat_viewer::cursormicro_forward(), ht_uformat_viewer::cursormicroedit_forward(), and ht_uformat_viewer::update_micropos().

dword tag_get_offset const TAGSTRING tagstring  ) 
 

Definition at line 685 of file httag.cc.

References assert, dword, FILEOFS, HT_TAG_DESC_BYTE, HT_TAG_DESC_DWORD_BE, HT_TAG_DESC_DWORD_LE, HT_TAG_DESC_DWORD_VE, HT_TAG_DESC_QWORD_BE, HT_TAG_DESC_QWORD_LE, HT_TAG_DESC_QWORD_VE, HT_TAG_DESC_WORD_BE, HT_TAG_DESC_WORD_LE, HT_TAG_DESC_WORD_VE, HT_TAG_EDIT_BIT, HT_TAG_EDIT_BYTE, HT_TAG_EDIT_CHAR, HT_TAG_EDIT_DWORD_BE, HT_TAG_EDIT_DWORD_LE, HT_TAG_EDIT_DWORD_VE, HT_TAG_EDIT_QWORD_BE, HT_TAG_EDIT_QWORD_LE, HT_TAG_EDIT_QWORD_VE, HT_TAG_EDIT_SELVIS, HT_TAG_EDIT_TIME, HT_TAG_EDIT_WORD_BE, HT_TAG_EDIT_WORD_LE, HT_TAG_EDIT_WORD_VE, HT_TAG_FLAGS, TAGSTRING, and UNALIGNED_MOVE.

Referenced by ht_uformat_viewer::cursormicroedit_forward(), ht_uformat_viewer::edit_input_correctpos(), ht_uformat_viewer::find_first_edit_tag_with_offset(), ht_uformat_viewer::render_tagstring(), ht_uformat_viewer::render_tagstring_desc(), and ht_uformat_viewer::update_misc_info().

TAGSTRING* tag_get_selectable_tag const TAGSTRING tagstring,
int  n,
int  group
 

Definition at line 1167 of file httag.cc.

References HT_TAG_DESC_BYTE, HT_TAG_DESC_BYTE_LEN, HT_TAG_DESC_DWORD_BE, HT_TAG_DESC_DWORD_BE_LEN, HT_TAG_DESC_DWORD_LE, HT_TAG_DESC_DWORD_LE_LEN, HT_TAG_DESC_DWORD_VE, HT_TAG_DESC_DWORD_VE_LEN, HT_TAG_DESC_QWORD_BE, HT_TAG_DESC_QWORD_BE_LEN, HT_TAG_DESC_QWORD_LE, HT_TAG_DESC_QWORD_LE_LEN, HT_TAG_DESC_QWORD_VE, HT_TAG_DESC_QWORD_VE_LEN, HT_TAG_DESC_WORD_BE, HT_TAG_DESC_WORD_BE_LEN, HT_TAG_DESC_WORD_LE, HT_TAG_DESC_WORD_LE_LEN, HT_TAG_DESC_WORD_VE, HT_TAG_DESC_WORD_VE_LEN, HT_TAG_EDIT_BIT, HT_TAG_EDIT_BIT_LEN, HT_TAG_EDIT_BYTE, HT_TAG_EDIT_BYTE_LEN, HT_TAG_EDIT_CHAR, HT_TAG_EDIT_CHAR_LEN, HT_TAG_EDIT_DWORD_BE, HT_TAG_EDIT_DWORD_BE_LEN, HT_TAG_EDIT_DWORD_LE, HT_TAG_EDIT_DWORD_LE_LEN, HT_TAG_EDIT_DWORD_VE, HT_TAG_EDIT_DWORD_VE_LEN, HT_TAG_EDIT_QWORD_BE, HT_TAG_EDIT_QWORD_BE_LEN, HT_TAG_EDIT_QWORD_LE, HT_TAG_EDIT_QWORD_LE_LEN, HT_TAG_EDIT_QWORD_VE, HT_TAG_EDIT_QWORD_VE_LEN, HT_TAG_EDIT_TIME, HT_TAG_EDIT_TIME_LEN, HT_TAG_EDIT_WORD_BE, HT_TAG_EDIT_WORD_BE_LEN, HT_TAG_EDIT_WORD_LE, HT_TAG_EDIT_WORD_LE_LEN, HT_TAG_EDIT_WORD_VE, HT_TAG_EDIT_WORD_VE_LEN, HT_TAG_FLAGS, HT_TAG_FLAGS_LEN, HT_TAG_GROUP, HT_TAG_GROUP_LEN, HT_TAG_SEL, HT_TAG_SEL_LEN, NULL, tag_findnext(), tag_get_group(), tag_get_len(), and TAGSTRING.

Referenced by ht_uformat_viewer::cursor_end(), ht_uformat_viewer::cursormicro_backward(), ht_uformat_viewer::cursormicro_forward(), ht_uformat_viewer::cursormicroedit_forward(), ht_uformat_viewer::draw(), ht_uformat_viewer::edit_input(), ht_uformat_viewer::edit_input_correctpos(), ht_uformat_viewer::find_first_edit_tag_with_offset(), ht_uformat_viewer::find_first_tag(), ht_uformat_viewer::get_current_tag(), ht_uformat_viewer::get_current_tag_size(), ht_uformat_viewer::ref(), ht_uformat_viewer::set_cursor(), ht_uformat_viewer::update_micropos(), and ht_uformat_viewer::update_misc_info().

TAGSTRING* tag_get_seltext const TAGSTRING tagstring  ) 
 

Definition at line 768 of file httag.cc.

References TAGSTRING.

int tag_get_seltextlen const TAGSTRING tagstring  ) 
 

Definition at line 773 of file httag.cc.

References HT_TAG_SEL, and TAGSTRING.

Referenced by ht_uformat_viewer::render_tagstring().

int tag_get_size const TAGSTRING tagstring  ) 
 

Definition at line 651 of file httag.cc.

References HT_TAG_EDIT_BIT, HT_TAG_EDIT_BIT_SIZE, HT_TAG_EDIT_BYTE, HT_TAG_EDIT_BYTE_SIZE, HT_TAG_EDIT_CHAR, HT_TAG_EDIT_CHAR_SIZE, HT_TAG_EDIT_DWORD_BE, HT_TAG_EDIT_DWORD_BE_SIZE, HT_TAG_EDIT_DWORD_LE, HT_TAG_EDIT_DWORD_LE_SIZE, HT_TAG_EDIT_DWORD_VE, HT_TAG_EDIT_DWORD_VE_SIZE, HT_TAG_EDIT_QWORD_BE, HT_TAG_EDIT_QWORD_BE_SIZE, HT_TAG_EDIT_QWORD_LE, HT_TAG_EDIT_QWORD_LE_SIZE, HT_TAG_EDIT_QWORD_VE, HT_TAG_EDIT_QWORD_VE_SIZE, HT_TAG_EDIT_TIME, HT_TAG_EDIT_TIME_SIZE, HT_TAG_EDIT_WORD_BE, HT_TAG_EDIT_WORD_BE_SIZE, HT_TAG_EDIT_WORD_LE, HT_TAG_EDIT_WORD_LE_SIZE, HT_TAG_EDIT_WORD_VE, HT_TAG_EDIT_WORD_VE_SIZE, and TAGSTRING.

Referenced by ht_uformat_viewer::get_current_tag_size().

int tag_get_vlen const TAGSTRING tagstring  ) 
 

Definition at line 553 of file httag.cc.

References HT_TAG_EDIT_BIT, HT_TAG_EDIT_BIT_VLEN, HT_TAG_EDIT_BYTE, HT_TAG_EDIT_BYTE_VLEN, HT_TAG_EDIT_CHAR, HT_TAG_EDIT_CHAR_VLEN, HT_TAG_EDIT_DWORD_BE, HT_TAG_EDIT_DWORD_BE_VLEN, HT_TAG_EDIT_DWORD_LE, HT_TAG_EDIT_DWORD_LE_VLEN, HT_TAG_EDIT_DWORD_VE, HT_TAG_EDIT_DWORD_VE_VLEN, HT_TAG_EDIT_QWORD_BE, HT_TAG_EDIT_QWORD_BE_VLEN, HT_TAG_EDIT_QWORD_LE, HT_TAG_EDIT_QWORD_LE_VLEN, HT_TAG_EDIT_QWORD_VE, HT_TAG_EDIT_QWORD_VE_VLEN, HT_TAG_EDIT_SELVIS, HT_TAG_EDIT_SELVIS_VLEN, HT_TAG_EDIT_TIME, HT_TAG_EDIT_TIME_VLEN, HT_TAG_EDIT_WORD_BE, HT_TAG_EDIT_WORD_BE_VLEN, HT_TAG_EDIT_WORD_LE, HT_TAG_EDIT_WORD_LE_VLEN, HT_TAG_EDIT_WORD_VE, HT_TAG_EDIT_WORD_VE_VLEN, HT_TAG_SEL, HT_TAG_SEL_VLEN, and TAGSTRING.

Referenced by tag_strvlen(), and ht_uformat_viewer::update_visual_info().

int tag_is_editable const TAGSTRING tagstring  ) 
 

Definition at line 846 of file httag.cc.

References assert, HT_TAG_EDIT_BIT, HT_TAG_EDIT_BYTE, HT_TAG_EDIT_CHAR, HT_TAG_EDIT_DWORD_BE, HT_TAG_EDIT_DWORD_LE, HT_TAG_EDIT_DWORD_VE, HT_TAG_EDIT_QWORD_BE, HT_TAG_EDIT_QWORD_LE, HT_TAG_EDIT_QWORD_VE, HT_TAG_EDIT_TIME, HT_TAG_EDIT_WORD_BE, HT_TAG_EDIT_WORD_LE, HT_TAG_EDIT_WORD_VE, and TAGSTRING.

TAGSTRING* tag_make_color TAGSTRING buf,
dword  color
 

Definition at line 100 of file httag.cc.

References buf, HT_TAG_COLOR, TAGSTRING, and UNALIGNED_MOVE.

Referenced by AnalyserHTOutput::putElement(), statictag_to_tag(), and palette_entry::strvalue().

TAGSTRING* tag_make_default_color TAGSTRING buf  ) 
 

Definition at line 109 of file httag.cc.

References buf, dword, HT_TAG_COLOR, TAGSTRING, and UNALIGNED_MOVE_CONST.

Referenced by palette_entry::strvalue().

TAGSTRING* tag_make_desc_byte TAGSTRING buf,
FILEOFS  ofs32,
dword  id32
 

Definition at line 228 of file httag.cc.

References buf, FILEOFS, HT_TAG_DESC_BYTE, TAGSTRING, and UNALIGNED_MOVE.

Referenced by statictag_to_tag().

TAGSTRING* tag_make_desc_dword TAGSTRING buf,
FILEOFS  ofs32,
dword  id32,
tag_endian  e
 

Definition at line 260 of file httag.cc.

References buf, byte, FILEOFS, HT_TAG_DESC_DWORD_BE, HT_TAG_DESC_DWORD_LE, HT_TAG_DESC_DWORD_VE, tag_endian_big, tag_endian_little, tag_endian_var, TAGSTRING, and UNALIGNED_MOVE.

Referenced by statictag_to_tag().

TAGSTRING* tag_make_desc_qword TAGSTRING buf,
FILEOFS  ofs32,
dword  id32,
tag_endian  e
 

Definition at line 282 of file httag.cc.

References buf, byte, FILEOFS, HT_TAG_DESC_QWORD_BE, HT_TAG_DESC_QWORD_LE, HT_TAG_DESC_QWORD_VE, tag_endian_big, tag_endian_little, tag_endian_var, TAGSTRING, and UNALIGNED_MOVE.

Referenced by statictag_to_tag().

TAGSTRING* tag_make_desc_word TAGSTRING buf,
FILEOFS  ofs32,
dword  id32,
tag_endian  e
 

Definition at line 238 of file httag.cc.

References buf, byte, FILEOFS, HT_TAG_DESC_WORD_BE, HT_TAG_DESC_WORD_LE, HT_TAG_DESC_WORD_VE, tag_endian_big, tag_endian_little, tag_endian_var, TAGSTRING, and UNALIGNED_MOVE.

Referenced by statictag_to_tag().

TAGSTRING* tag_make_edit_bit TAGSTRING buf,
FILEOFS  ofs32,
int  bitidx
 

Definition at line 208 of file httag.cc.

References buf, FILEOFS, HT_TAG_EDIT_BIT, TAGSTRING, and UNALIGNED_MOVE.

Referenced by ht_uformat_viewer::ref_flags(), and statictag_to_tag().

TAGSTRING* tag_make_edit_byte TAGSTRING buf,
FILEOFS  ofs32
 

Definition at line 118 of file httag.cc.

References buf, FILEOFS, HT_TAG_EDIT_BYTE, TAGSTRING, and UNALIGNED_MOVE.

Referenced by AnalyserHTOutput::endLine(), ht_disasm_sub::getline(), ht_hex_sub::getline(), and statictag_to_tag().

TAGSTRING* tag_make_edit_char TAGSTRING buf,
FILEOFS  ofs32
 

Definition at line 199 of file httag.cc.

References buf, FILEOFS, HT_TAG_EDIT_CHAR, TAGSTRING, and UNALIGNED_MOVE.

Referenced by ht_hex_sub::getline(), and statictag_to_tag().

TAGSTRING* tag_make_edit_dword TAGSTRING buf,
FILEOFS  ofs32,
tag_endian  e
 

Definition at line 148 of file httag.cc.

References buf, byte, FILEOFS, HT_TAG_EDIT_DWORD_BE, HT_TAG_EDIT_DWORD_LE, HT_TAG_EDIT_DWORD_VE, tag_endian_big, tag_endian_little, tag_endian_var, TAGSTRING, and UNALIGNED_MOVE.

Referenced by statictag_to_tag().

TAGSTRING* tag_make_edit_qword TAGSTRING buf,
FILEOFS  ofs32,
tag_endian  e
 

Definition at line 169 of file httag.cc.

References buf, byte, FILEOFS, HT_TAG_EDIT_QWORD_BE, HT_TAG_EDIT_QWORD_LE, HT_TAG_EDIT_QWORD_VE, tag_endian_big, tag_endian_little, tag_endian_var, TAGSTRING, and UNALIGNED_MOVE.

Referenced by statictag_to_tag().

TAGSTRING* tag_make_edit_selvis TAGSTRING buf,
FILEOFS  offset,
char  ch
 

Definition at line 218 of file httag.cc.

References buf, FILEOFS, HT_TAG_EDIT_SELVIS, TAGSTRING, and UNALIGNED_MOVE.

Referenced by ht_hex_sub::getline(), and statictag_to_tag().

TAGSTRING* tag_make_edit_time TAGSTRING buf,
FILEOFS  ofs32
 

Definition at line 190 of file httag.cc.

References buf, FILEOFS, HT_TAG_EDIT_TIME, TAGSTRING, and UNALIGNED_MOVE.

Referenced by statictag_to_tag().

TAGSTRING* tag_make_edit_word TAGSTRING buf,
FILEOFS  ofs32,
tag_endian  e
 

Definition at line 127 of file httag.cc.

References buf, byte, FILEOFS, HT_TAG_EDIT_WORD_BE, HT_TAG_EDIT_WORD_LE, HT_TAG_EDIT_WORD_VE, tag_endian_big, tag_endian_little, tag_endian_var, TAGSTRING, and UNALIGNED_MOVE.

Referenced by statictag_to_tag().

TAGSTRING* tag_make_flags TAGSTRING buf,
dword  ofs32,
dword  id
 

Definition at line 82 of file httag.cc.

References buf, HT_TAG_FLAGS, TAGSTRING, and UNALIGNED_MOVE.

Referenced by statictag_to_tag().

TAGSTRING* tag_make_group TAGSTRING buf  ) 
 

Definition at line 92 of file httag.cc.

References buf, HT_TAG_GROUP, and TAGSTRING.

Referenced by ht_hex_sub::getline(), and statictag_to_tag().

TAGSTRING* tag_make_ref TAGSTRING buf,
dword  id128_1,
dword  id128_2,
dword  id128_3,
dword  id128_4,
char *  string
 

Definition at line 77 of file httag.cc.

References buf, string, tag_make_ref_len(), and TAGSTRING.

Referenced by AnalyserHTOutput::externalLink(), ht_collapsable_sub::getline(), AnalyserHTOutput::link(), and tag_make_sel().

TAGSTRING* tag_make_ref_len TAGSTRING buf,
dword  id128_1,
dword  id128_2,
dword  id128_3,
dword  id128_4,
char *  string,
int  strlen
 

Definition at line 61 of file httag.cc.

References buf, HT_TAG_SEL, string, TAGSTRING, and UNALIGNED_MOVE.

Referenced by statictag_to_tag(), and tag_make_ref().

TAGSTRING* tag_make_sel TAGSTRING buf,
char *  string
 

Definition at line 56 of file httag.cc.

References buf, string, tag_make_ref(), and TAGSTRING.

Referenced by AnalyserHTOutput::beginLine().

void tag_set_offset const TAGSTRING tagstring,
dword  offset
 

Definition at line 813 of file httag.cc.

References HT_TAG_EDIT_BIT, HT_TAG_EDIT_BYTE, HT_TAG_EDIT_CHAR, HT_TAG_EDIT_DWORD_BE, HT_TAG_EDIT_DWORD_LE, HT_TAG_EDIT_DWORD_VE, HT_TAG_EDIT_QWORD_BE, HT_TAG_EDIT_QWORD_LE, HT_TAG_EDIT_QWORD_VE, HT_TAG_EDIT_TIME, HT_TAG_EDIT_WORD_BE, HT_TAG_EDIT_WORD_LE, HT_TAG_EDIT_WORD_VE, TAGSTRING, and UNALIGNED_MOVE.

void tag_strcat TAGSTRING dest,
const TAGSTRING src
 

Definition at line 870 of file httag.cc.

References tag_strcpy(), tag_strlen(), and TAGSTRING.

void tag_strcpy TAGSTRING dest,
const TAGSTRING src
 

Definition at line 876 of file httag.cc.

References tag_strlen(), and TAGSTRING.

Referenced by ht_disasm_sub::getline(), ht_mask_sub::getline(), and tag_strcat().

TAGSTRING* tag_strdup const TAGSTRING tagstring  ) 
 

Definition at line 883 of file httag.cc.

References malloc(), tag_strlen(), and TAGSTRING.

Referenced by ht_data_tagstring::ht_data_tagstring().

char* tag_striptags char *  dest,
const TAGSTRING src
 

Definition at line 1364 of file httag.cc.

References HT_TAG_SEL, NULL, tag_get_len(), and TAGSTRING.

int tag_strlen const TAGSTRING tagstring  ) 
 

Definition at line 892 of file httag.cc.

References tag_get_len(), and TAGSTRING.

Referenced by AnalyserHTOutput::elementLength(), AnalyserHTOutput::endLine(), ht_collapsable_sub::getline(), tag_strcat(), tag_strcpy(), and tag_strdup().

int tag_strvlen const TAGSTRING tagstring  ) 
 

Definition at line 907 of file httag.cc.

References tag_get_len(), tag_get_vlen(), and TAGSTRING.


Variable Documentation

int time_mp[14] = {0,1,3,4,6,7,9,10,12,13,15,16,17,18}
 

Definition at line 592 of file httag.cc.

Referenced by tag_get_micropos().


Generated on Fri May 7 21:15:50 2004 by doxygen 1.3.5