ARB
|
#include <arb_strbuf.h>
Public Member Functions | |
GBS_strstruct () | |
GBS_strstruct (size_t buffersize) | |
~GBS_strstruct () | |
size_t | get_buffer_size () const |
size_t | get_position () const |
bool | filled () const |
bool | empty () const |
const char * | get_data () const |
char * | get_copy () const |
char * | release_mem (size_t &size) |
char * | release () |
void | erase () |
void | assign_mem (char *block, size_t blocksize) |
void | reassign_mem (GBS_strstruct &from) |
void | swap_content (GBS_strstruct &other) |
void | alloc_mem (size_t blocksize) |
void | realloc_mem (size_t newsize) |
void | ensure_mem (size_t needed_size) |
void | cut_tail (size_t byte_count) |
void | put (char c) |
void | nput (char c, size_t count) |
void | ncat (const char *from, size_t count) |
void | cat (const char *from) |
int | ncatTrimmed (const char *from, size_t count, size_t trimmedWidth) |
int | catTrimmed (const char *from, size_t trimmedWidth) |
void | vnprintf (size_t maxlen, const char *templat, va_list &parg) __ATTR__VFORMAT_MEMBER(2) |
void | nprintf (size_t maxlen, const char *templat,...) __ATTR__FORMAT_MEMBER(2) |
void | putlong (long l) |
void | putfloat (float f) |
Definition at line 37 of file arb_strbuf.h.
|
inline |
Definition at line 50 of file arb_strbuf.h.
|
inline |
Definition at line 55 of file arb_strbuf.h.
References alloc_mem().
|
inline |
Definition at line 62 of file arb_strbuf.h.
|
inline |
Definition at line 64 of file arb_strbuf.h.
Referenced by GBS_strforget(), and GBS_stropen().
|
inline |
Definition at line 65 of file arb_strbuf.h.
Referenced by AW_init_color_group_defaults(), filled(), GB_command_interpreter_in_env(), GBS_memoffset(), get_copy(), nt_create_configuration(), ReplaceArgs(), and ReplaceString().
|
inline |
|
inline |
Definition at line 68 of file arb_strbuf.h.
References filled().
Referenced by g_bs_read_final_hash(), and GBS_string_eval_in_env().
|
inline |
Definition at line 70 of file arb_strbuf.h.
Referenced by aw_refresh_tmp_message_display(), canvas_to_printer(), colorDefChanged_callback(), CON_export(), concatenateAlignments(), create_export_awars(), create_import_awars(), deleteColorTranslationTable(), BootstrapConfig::display_remark(), GB_command_interpreter_in_env(), GB_get_supported_compression_flags(), GB_xcmd(), GBS_mempntr(), GBS_string_eval_in_env(), GBT_save_colorset(), get_copy(), QueriedGroups::get_group_display(), main(), test_runtool::make_checked_piped_command(), StrUniquifier::make_unique_key(), MG_equal_alignments(), nt_create_configuration(), readXmlTree(), show_count(), st_remove_entries(), and NodeTextBuilder::work().
|
inline |
Definition at line 71 of file arb_strbuf.h.
References ARB_strndup(), get_data(), and get_position().
Referenced by GBS_strclose().
Definition at line 73 of file arb_strbuf.h.
Referenced by GBS_stropen(), reassign_mem(), and release().
|
inline |
Definition at line 80 of file arb_strbuf.h.
References release_mem(), and s.
Referenced by AP_probe_iterate_event(), AW_init_color_group_defaults(), GBK_doublequote(), GBK_singlequote(), GBS_string_eval_in_env(), GBT_tree_2_newick(), gb_hierarchy_location::get_db_path(), get_file_content_for_viewer(), ConsensusTreeBuilder::get_tree_remark(), nt_create_configuration(), readableUnknownNames(), ReplaceArgs(), ReplaceString(), EDB_root_bact::save_current_config(), sizetarray2string(), and TreeReader::takeComment().
|
inline |
Definition at line 82 of file arb_strbuf.h.
Referenced by assign_mem(), BootstrapConfig::display_remark(), GBS_string_eval_in_env(), QueriedGroups::get_group_display(), StrUniquifier::make_unique_key(), and NodeTextBuilder::work().
Definition at line 84 of file arb_strbuf.h.
References arb_assert, block, and erase().
Referenced by alloc_mem(), and reassign_mem().
|
inline |
Definition at line 94 of file arb_strbuf.h.
References assign_mem(), block, and release_mem().
Referenced by GBS_strforget(), and GBS_stropen().
|
inline |
Definition at line 100 of file arb_strbuf.h.
References swap().
Referenced by GBS_string_eval_in_env().
|
inline |
Definition at line 106 of file arb_strbuf.h.
References arb_assert, and assign_mem().
Referenced by GBS_stropen(), GBS_strstruct(), and realloc_mem().
|
inline |
Definition at line 112 of file arb_strbuf.h.
References alloc_mem(), arb_assert, and ARB_realloc().
Referenced by ensure_mem().
|
inline |
Definition at line 123 of file arb_strbuf.h.
References realloc_mem().
Referenced by ncat(), ncatTrimmed(), nput(), put(), and vnprintf().
|
inline |
Definition at line 134 of file arb_strbuf.h.
Referenced by GBS_str_cut_tail(), GBT_save_colorset(), gb_hierarchy_location::get_db_path(), and sizetarray2string().
|
inline |
Definition at line 138 of file arb_strbuf.h.
References ensure_mem().
Referenced by AP_probe_iterate_event(), AW_init_color_group_defaults(), aw_refresh_tmp_message_display(), canvas_to_printer(), colorDefChanged_callback(), CON_export(), create_export_awars(), create_import_awars(), deleteColorTranslationTable(), BootstrapConfig::display_remark(), dump_hexbyte(), g_bs_read_final_hash(), GB_command_interpreter_in_env(), GB_xcmd(), GBK_doublequote(), GBK_singlequote(), gbs_build_replace_string(), GBS_chrcat(), GBT_save_colorset(), GBT_tree_2_newick(), ED4_base::generate_configuration_string(), gb_hierarchy_location::get_db_path(), get_file_content_for_viewer(), QueriedGroups::get_group_display(), ConsensusTreeBuilder::get_tree_remark(), main(), MG_equal_alignments(), readXmlTree(), show_count(), sizetarray2string(), tree2newick(), and NodeTextBuilder::work().
Definition at line 143 of file arb_strbuf.h.
References ensure_mem().
Referenced by concatenateAlignments(), GB_command_interpreter_in_env(), GBS_chrncat(), ncatTrimmed(), and tree2newick().
Definition at line 151 of file arb_strbuf.h.
References ensure_mem().
Referenced by cat(), GBK_doublequote(), GBK_singlequote(), GBS_string_eval_in_env(), GBS_strncat(), ED4_base::generate_configuration_string(), get_file_content_for_viewer(), ncatTrimmed(), nt_create_configuration(), ReplaceArgs(), and ReplaceString().
|
inline |
Definition at line 158 of file arb_strbuf.h.
References ncat().
Referenced by AP_probe_iterate_event(), AW_init_color_group_defaults(), aw_refresh_tmp_message_display(), canvas_to_printer(), colorDefChanged_callback(), CON_export(), concatenateAlignments(), create_export_awars(), create_import_awars(), deleteColorTranslationTable(), g_bs_read_final_hash(), GB_command_interpreter_in_env(), GB_get_supported_compression_flags(), GB_xcmd(), GBK_doublequote(), GBK_singlequote(), gbs_build_replace_string(), GBS_strcat(), GBS_string_eval_in_env(), GBT_save_colorset(), ED4_base::generate_configuration_string(), gb_hierarchy_location::get_db_path(), QueriedGroups::get_group_display(), ConsensusTreeBuilder::get_tree_remark(), main(), test_runtool::make_checked_piped_command(), StrUniquifier::make_unique_key(), MG_equal_alignments(), readableUnknownNames(), readXmlTree(), ReplaceArgs(), ReplaceString(), show_count(), st_remove_entries(), and tree2newick().
Definition at line 160 of file arb_strbuf.h.
References ensure_mem(), long, max, ncat(), and nput().
Referenced by catTrimmed().
Definition at line 167 of file arb_strbuf.h.
References ncatTrimmed().
Definition at line 13 of file arb_strbuf.cxx.
References assert_or_exit, buffer, and ensure_mem().
Referenced by GBS_strnprintf(), and nprintf().
Definition at line 29 of file arb_strbuf.cxx.
References va_start(), and vnprintf().
Referenced by canvas_to_printer(), BootstrapConfig::display_remark(), QueriedGroups::get_group_display(), ConsensusTreeBuilder::get_tree_remark(), test_runtool::make_checked_piped_command(), putfloat(), putlong(), readableUnknownNames(), show_count(), st_remove_entries(), and tree2newick().
|
inline |
Definition at line 179 of file arb_strbuf.h.
References nprintf().
Referenced by StrUniquifier::make_unique_key(), and sizetarray2string().
|
inline |
Definition at line 180 of file arb_strbuf.h.
References nprintf().