ARB
Classes | Functions
arb_strbuf.h File Reference
#include <arbtools.h>
#include <arb_assert.h>
#include "arb_mem.h"
#include <attributes.h>
#include "arb_string.h"
#include <algorithm>
Include dependency graph for arb_strbuf.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  GBS_strstruct
 

Functions

GBS_strstructGBS_stropen (long init_size)
 
charGBS_strclose (GBS_strstruct *strstr)
 
void GBS_strforget (GBS_strstruct *strstr)
 
charGBS_mempntr (GBS_strstruct *strstr)
 
long GBS_memoffset (GBS_strstruct *strstr)
 
void GBS_str_cut_tail (GBS_strstruct *strstr, size_t byte_count)
 
void GBS_strncat (GBS_strstruct *strstr, const char *ptr, size_t len)
 
void GBS_strcat (GBS_strstruct *strstr, const char *ptr)
 
void GBS_strnprintf (GBS_strstruct *strstr, long maxlen, const char *templat,...) __ATTR__FORMAT(3)
 
void GBS_chrcat (GBS_strstruct *strstr, char ch)
 
void GBS_chrncat (GBS_strstruct *strstr, char ch, size_t n)
 
void GBS_intcat (GBS_strstruct *strstr, long val)
 
void GBS_floatcat (GBS_strstruct *strstr, double val)
 

Function Documentation

GBS_strstruct* GBS_stropen ( long  init_size)

create a new memory file

Parameters
init_sizeestimated used size

Definition at line 39 of file arb_strbuf.cxx.

References GBS_strstruct::alloc_mem(), arb_assert, GBS_strstruct::get_buffer_size(), GBS_strstruct::reassign_mem(), and GBS_strstruct::release_mem().

Referenced by aed_start_naligning(), AP_probe_design_event(), ARB_main(), arb_shell_expand(), awt_create_select_filter_window_aw_cb(), awtc_nn_search_all_listed(), collectIntFunResults(), complete_newick_comment(), GBL_streams::concatenated(), do_extract_words(), ED4_init_notFoundMessage(), ed_submit_info_event(), filter_columnstat_SAIs(), filter_seq(), g_b_undo_info(), g_bs_get_string_of_tag_hash(), g_bs_read_tagged_hash(), GB_find_executable(), GB_read_fp(), gbl_exec(), gbl_merge(), gbl_readdb(), gbl_translate(), GBS_eval_env(), GBS_fread_string(), GBS_hashtab_2_string(), GBS_log_action_to(), GBS_regreplace(), GBS_replace_tabs_by_spaces(), GBT_commit_rename_session(), GBT_join_strings(), GBT_store_marked_species(), GEN_write_position(), AW_selection_list::get_content_as_string(), get_match_hinfo_formatted(), get_match_info_formatted(), match_string(), MG_diff_strings(), MP_all_species_string(), MP_match_string(), Package::Package(), pd_get_the_gene_names(), pd_get_the_names(), PT_find_exProb(), ptpd_read_names(), ArbImporter::read_data(), MG_remap::remap(), remove_by_tab(), PT_FamilyFinder::results2string(), AP_pos_var::save_aliEntry_to_SAI(), SEC_xstring_to_foldedHelixList(), set_field_of_queried_cb(), set_suffix(), sina_start(), st_ml_add_quality_string_to_species(), stream2str(), GBL_IMPL::trace_params(), TreeAdmin::tree_append_remark(), and write_entry().

char* GBS_strclose ( GBS_strstruct strstr)
void GBS_strforget ( GBS_strstruct strstr)
char* GBS_mempntr ( GBS_strstruct strstr)
long GBS_memoffset ( GBS_strstruct strstr)
void GBS_str_cut_tail ( GBS_strstruct strstr,
size_t  byte_count 
)
void GBS_strncat ( GBS_strstruct strstr,
const char ptr,
size_t  len 
)
void GBS_strcat ( GBS_strstruct strstr,
const char ptr 
)
void GBS_strnprintf ( GBS_strstruct strstr,
long  maxlen,
const char templat,
  ... 
)
void GBS_chrcat ( GBS_strstruct strstr,
char  ch 
)
void GBS_chrncat ( GBS_strstruct strstr,
char  ch,
size_t  n 
)

Definition at line 123 of file arb_strbuf.cxx.

References GBS_strstruct::nput().

Referenced by MG_remap::remap().

void GBS_intcat ( GBS_strstruct strstr,
long  val 
)
void GBS_floatcat ( GBS_strstruct strstr,
double  val 
)

Definition at line 133 of file arb_strbuf.cxx.

References buffer, and GBS_strncat().

Referenced by aed_start_naligning(), AP_pos_var::save_aliEntry_to_SAI(), and sina_start().