#include "global.h"#include "htatom.h"#include "htdebug.h"#include "htstring.h"#include "snprintf.h"#include "stream.h"#include "tools.h"#include <ctype.h>#include <stdarg.h>#include <stdlib.h>#include <string.h>Go to the source code of this file.
Defines | |
| #define | ATOM_HT_DATA_STRING MAGICD("STR\x00") |
| #define | ATOM_COMPARE_KEYS_STRING MAGICD("STR\x10") |
| #define | ATOM_ICOMPARE_KEYS_STRING MAGICD("STR\x11") |
Functions | |
| char * | ht_strdup (const char *str) |
| char * | ht_strndup (const char *str, int maxlen) |
| int | ht_strncpy (char *s1, const char *s2, int maxlen) |
| int | ht_strncmp (const char *s1, const char *s2, size_t max) |
| int | ht_strnicmp (const char *s1, const char *s2, size_t max) |
| int | ht_stricmp (const char *s1, const char *s2) |
| int | strccomm (const char *s1, const char *s2) |
| int | strcicomm (const char *s1, const char *s2) |
| int | escape_special_str (char *result, int resultmaxlen, const char *s, const char *specialchars, bool bit7) |
| int | escape_special (char *result, int resultmaxlen, const void *S, int len, const char *specialchars, bool bit7) |
| int | unescape_special_str (char *result, int resultmaxlen, const char *s) |
| int | unescape_special (void *Result, int resultmaxlen, const char *s) |
| int | bin2str (char *result, const void *S, int len) |
| void | wide_char_to_multi_byte (char *result, const byte *Unicode, int maxlen) |
| void | whitespaces (char **str) |
| void | non_whitespaces (char **str) |
| bool | waitforchar (char **str, char b) |
| bool | bnstr (char **str, qword *q, int defaultbase) |
| bool | bnstr (char **str, dword *v, int defaultbase) |
| int | hexdigit (char a) |
| bool | hexb_ex (uint8 &result, const char *s) |
| bool | hexw_ex (uint16 &result, const char *s) |
| bool | hexd_ex (uint32 &result, const char *s) |
| char * | mkhexb (char *buf, byte d) |
| char * | mkhexw (char *buf, word d) |
| char * | mkhexd (char *buf, dword d) |
| char * | mkhexq (char *buf, qword q) |
| int | compare_keys_string (Object *key_a, Object *key_b) |
| int | icompare_keys_string (Object *key_a, Object *key_b) |
| BUILDER (ATOM_HT_DATA_STRING, ht_data_string) | |
| bool | init_string () |
| void | done_string () |
Variables | |
| char | hexchars [17] = "0123456789abcdef" |
|
|
Definition at line 35 of file htstring.cc. Referenced by done_string(), and init_string(). |
|
|
Definition at line 34 of file htstring.cc. Referenced by done_string(), init_string(), and ht_data_string::object_id(). |
|
|
Definition at line 36 of file htstring.cc. Referenced by done_string(), and init_string(). |
|
||||||||||||||||
|
||||||||||||||||
|
Definition at line 436 of file htstring.cc. |
|
||||||||||||||||
|
Definition at line 385 of file htstring.cc. |
|
||||||||||||
|
|
|
||||||||||||
|
Definition at line 621 of file htstring.cc. References value. Referenced by ht_registry::create_subdir(), ht_string_list::init(), ht_registry::init(), init_analy_names(), and init_string(). |
|
|
Definition at line 656 of file htstring.cc. References ATOM_COMPARE_KEYS_STRING, ATOM_HT_DATA_STRING, ATOM_ICOMPARE_KEYS_STRING, UNREGISTER, and unregister_atom(). |
|
||||||||||||||||||||||||||||
|
Definition at line 165 of file htstring.cc. References byte, hexchars, len, and S. Referenced by create_desc_evalstr(), create_desc_expr(), create_desc_hexascii(), create_desc_vregex(), escape_special_str(), and AnalyserOutput::generateAddr(). |
|
||||||||||||||||||||||||
|
Definition at line 160 of file htstring.cc. References escape_special(). Referenced by ht_object_stream_txt::putString(), and token_translate(). |
|
||||||||||||
|
Definition at line 458 of file htstring.cc. References hexdigit(). Referenced by hexw_ex(), load_fileconfig(), and load_systemconfig(). |
|
||||||||||||
|
Definition at line 476 of file htstring.cc. |
|
|
Definition at line 446 of file htstring.cc. Referenced by ht_object_stream_txt::getBinary(), hexb_ex(), and unescape_special(). |
|
||||||||||||
|
Definition at line 468 of file htstring.cc. References hexb_ex(), and uint8. Referenced by hexd_ex(), load_fileconfig(), and load_systemconfig(). |
|
|
||||||||||||
|
Definition at line 126 of file htstring.cc. Referenced by LocalFs::compareFilenames(), ht_app::create_window_file_text(), and icompare_keys_string(). |
|
||||||||||||||||
|
Definition at line 91 of file htstring.cc. Referenced by ht_text_listbox::compare_strn(), ht_project_listbox::quickfind(), ht_history_listbox::quickfind(), SymbolBox::quickfindCompletition(), ht_project_listbox::quickfindCompletition(), and ht_history_listbox::quickfindCompletition(). |
|
||||||||||||||||
|
Like strcpy but copies a maximum of |maxlen| characters (including trainling zero). The operation is performed in a way that the trailing zero is always written if maxlen is > 0.
Definition at line 77 of file htstring.cc. |
|
||||||||||||
|
Like ht_strdup but dups a maximum of |maxlen| characters of |str|.
Definition at line 56 of file htstring.cc. |
|
||||||||||||||||
|
Definition at line 108 of file htstring.cc. Referenced by ht_itext_listbox::compare_strn(), and parse_info_node(). |
|
||||||||||||
|
Definition at line 633 of file htstring.cc. References ht_stricmp(), and value. Referenced by init_string(). |
|
|
Definition at line 644 of file htstring.cc. References ATOM_COMPARE_KEYS_STRING, ATOM_HT_DATA_STRING, ATOM_ICOMPARE_KEYS_STRING, compare_keys_string(), icompare_keys_string(), REGISTER, and register_atom(). |
|
||||||||||||
|
Definition at line 484 of file htstring.cc. Referenced by ht_uformat_viewer::render_tagstring(). |
|
||||||||||||
|
Definition at line 500 of file htstring.cc. Referenced by ht_disasm_sub::getline(), ht_hex_sub::getline(), and ht_uformat_viewer::render_tagstring(). |
|
||||||||||||
|
Definition at line 513 of file htstring.cc. Referenced by ht_uformat_viewer::render_tagstring(). |
|
||||||||||||
|
Definition at line 491 of file htstring.cc. Referenced by ht_uformat_viewer::render_tagstring(). |
|
|
Definition at line 340 of file htstring.cc. |
|
||||||||||||
|
Definition at line 144 of file htstring.cc. Referenced by ht_text_listbox::compare_ccomm(), SymbolBox::quickfindCompletition(), ht_project_listbox::quickfindCompletition(), and ht_history_listbox::quickfindCompletition(). |
|
||||||||||||
|
Definition at line 152 of file htstring.cc. Referenced by ht_itext_listbox::compare_ccomm(). |
|
||||||||||||||||
|
Definition at line 239 of file htstring.cc. References byte, and hexdigit(). Referenced by unescape_special_str(). |
|
||||||||||||||||
|
Definition at line 232 of file htstring.cc. References unescape_special(). Referenced by ht_object_stream_txt::getString(). |
|
||||||||||||
|
Definition at line 347 of file htstring.cc. |
|
|
Definition at line 332 of file htstring.cc. Referenced by ht_info_viewer::find_node(), and parse_xref_body(). |
|
||||||||||||||||
|
Definition at line 310 of file htstring.cc. |
|
|
Definition at line 38 of file htstring.cc. Referenced by escape_special(), mkhexb(), mkhexd(), mkhexq(), and mkhexw(). |
1.3.5