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

Go to the source code of this file.

Functions

charARB_strdup (const char *str)
 
charARB_strduplen (const char *p, unsigned len)
 
charARB_strpartdup (const char *start, const char *end)
 
charARB_strndup (const char *start, int len)
 
const charARB_date_string (void)
 
const charARB_dateTime_suffix (void)
 
const charARB_keep_string (char *str)
 
const charARB_strchrnul (const char *str, int chr)
 
template<typename NUM >
const charplural (NUM val)
 
template<>
const charplural (float)
 
template<>
const charplural (double)
 

Function Documentation

char* ARB_strdup ( const char str)
inline

Definition at line 27 of file arb_string.h.

References arb_mem::failed_to_allocate().

Referenced by add_species_to_merge_list(), addSpeciesToConcatenateList(), ALI_NORM_SEQUENCE::ALI_NORM_SEQUENCE(), ALI_PT::ALI_PT(), ALI_translate_marked(), an_add_short(), an_get_short(), AP_create_consensus_var(), AP_dump_index_event(), apply_ACI(), ARB_executable(), arb_gethostname(), arb_look_and_start_server(), ARB_main(), arb_open_socket(), arb_prm_menu(), arb_shell_expand(), arb_trace_argv(), ARB_zfopen(), avoid_empty_target_name(), AW_scalar::AW_scalar(), awt_add_sequences_to_list(), AWT_create_ascii_print_window(), AWT_create_mask_submenu(), Bakt_Info::Bakt_Info(), build_taxonomy_rek(), buildAllowedValuesString(), ST_Container::cache_Sonde(), calc_diff(), ST_ML::calc_st_ml(), check_for_case_error(), checkAndMergeFields(), compress_sequence_tree(), GBL_streams::concatenated(), AWT_config::config_string(), convert_case(), copy_rename_handler(), correct_extension(), correct_managed_configsets_cb(), create_awars(), create_new_species(), create_print_awars(), create_tree_name(), createCallOnSocketHost(), Data::Data(), dated_info(), ArbImporter::detectAvailableFields(), detectProperties(), di_calculate_tree_cb(), do_extract_words(), dump_internal(), ED4_create_search_awars(), ED4_pfold_calculate_secstruct_match(), ED4_SearchPosition::ED4_SearchPosition(), ed_submit_parse_event(), edit_SAI_description(), embl_correct_title(), encode_escaped_chars(), enter_stage_1_build_tree(), error_with_dbentry(), etog_author(), EXP_find_experiment_by_id(), EXP_select_experiment(), FastAlignReport::FastAlignReport(), FileWriter::FileWriter(), ALI_selection::fill(), filter_loadable_SAIs(), findAffectedKeys(), ArbDBWriter::finishSave(), fix_aligned_data(), format(), fullMacroname(), g_b_undo_info(), g_bs_read_tagged_hash(), gb_alloc_cache_index(), GB_command_interpreter_in_env(), gb_create_key(), GB_find_all_files(), GB_follow_unix_link(), GB_fopen_tempfile(), gb_full_path(), GB_get_subfields(), GB_getenvARB_GS(), GB_getenvARB_PDFVIEW(), GB_getenvARBMACRO(), GB_getenvDOCPATH(), GB_getenvHOME(), GB_getenvHTMLDOCPATH(), GB_login(), gb_parse_ascii_rek(), GB_read_as_string(), GB_read_key(), gb_recover_corrupt_file(), GB_save_in_arbprop(), gb_scan_directory(), GB_split_full_path(), gb_transactable_type(), gbcm_login(), gbcm_read_string(), GBK_singlequote(), gbl_mid_streams(), gbl_taxonomy(), gbs_build_replace_string(), GBS_compile_matcher(), gbs_compress_command(), GBS_incr_hash(), GBS_merge_tagged_strings(), GBS_modify_tagged_string_with_ACI(), GBS_ptserver_id_to_choice(), GBS_read_dir(), gbs_scan_db_insert(), GBS_string_2_key_with_exclusions(), GBS_string_eval_in_env(), GBT_add_new_changekey_to_keypath(), GBT_create_unique_item_identifier(), GBT_get_default_helix(), GBT_get_default_helix_nr(), GBT_get_default_ref(), GBT_join_strings(), gbt_read_tree_rek(), GBT_set_startup_alignment(), GBT_split_string(), GDE_menuitem_cb(), GDE_startaction_cb(), gen_extract_gene_2_pseudoSpecies(), gen_find_gene_by_id(), GEN_make_node_text_nds(), GEN_open_nds_window(), GEN_root::GEN_root(), GEN_select_gene(), genbank_comments(), genbank_verify_accession(), GroupBuilder::generate_group_name(), ED4_root::generate_window(), get_cached_taxonomy(), ED4_SearchPosition::get_comment(), FINAL_TYPE< SEQTYPE >::get_date(), get_default_alignment(), get_design_hinfo(), SEQIO::get_exportFormat_evalForm(), get_file_content_for_viewer(), get_gene_struct_by_arb_species_gene_name(), get_LOCS_ERROR(), get_match_hinfo_formatted(), get_SAI_description(), get_short(), get_taxonomy_string(), get_token_and_incr_lineno(), GetDisplayInfo(), getenv_executable(), getenv_existing_directory(), group_species(), ignore_arb_prop(), ALI_GLOBAL::init(), GEN_map_window::init(), inputMaskDir(), PHDATA::load(), LoadMenus(), lookup_an_revers(), lookup_an_shorts(), FINAL_TYPE< SEQTYPE >::Macke(), make_PT_family_list(), makeTitle(), MERGE_sequences_simple(), MG_create_remap(), MG_diff_strings(), MG_transfer_tree(), mp_file2list(), MP_get_probes(), mp_list2file(), MP_mark_probes_in_tree(), MP_modify_selected(), MP_show_probes_in_tree(), nas_remove_small_vocals(), nas_string_2_name(), nt_build_sai_string(), NT_createConcatenationAwars(), nt_start_2nd_arb(), ALI_ARBDB::open(), SAI_graphic::paint(), pars_create_all_awars(), ParsedProbeMatch::ParsedProbeMatch(), ParseMenus(), pattern2str(), probe_design_event(), probe_match(), ProbeMatch_impl::ProbeMatch_impl(), ProbeMatchParser::ProbeMatchParser(), ArbImporter::read_format(), read_import_format(), readable_pt_servername(), ReadGen(), readXmlTree(), renameQuicksaves(), run_command(), DI_MATRIX::save(), GB_MAIN_TYPE::save_quick_as(), ExportFieldScanner::scanFields(), ImportFieldScanner::scanFields(), SearchTree::SearchTree(), selected_config_changed_cb(), selectMnemonic(), server_load(), set_constant_fields(), set_current_as_diffRef(), ARB_seqtree_root::set_gb_tree_and_name(), set_protection_level(), Sonde::Sonde(), split_stat_filename(), standard_file2list(), standard_list2file(), ArbDBWriter::startSaveAs(), startup_gui(), test_accept_diff_lines(), to_paup(), transform_gbd_to_leaf(), update_format_description_and_suffix(), GroupBuilder::update_group(), test_runtool::valgrinded_system(), write_hash(), SpecSetRegistry::write_node_information(), and MackeReader::~MackeReader().

char* ARB_strduplen ( const char p,
unsigned  len 
)
inline
char* ARB_strpartdup ( const char start,
const char end 
)
inline
char* ARB_strndup ( const char start,
int  len 
)
inline
const char* ARB_date_string ( void  )
const char* ARB_dateTime_suffix ( void  )

returns "YYYYMMDD_HHMMSS"

Definition at line 54 of file arb_string.cxx.

References arb_assert, buffer, and get_current_time().

Referenced by nt_create_config_after_import().

const char* ARB_keep_string ( char str)

keep an allocated string until program termination useful to avoid valgrind reporting leaks e.g for callback parameters

Definition at line 72 of file arb_string.cxx.

References Keeper< T >::keep().

Referenced by QUERY::create_query_box(), and popup_new_main_window().

const char* ARB_strchrnul ( const char str,
int  chr 
)
inline

Definition at line 96 of file arb_string.h.

Referenced by detectBrowserCommand(), and GBS_string_matches().

template<typename NUM >
const char* plural ( NUM  val)
inline

Definition at line 108 of file arb_string.h.

Referenced by NT_reload_tree_event(), sec2disp(), and split_alignment().

template<>
const char* plural ( float  )
inline
template<>
const char* plural ( double  )
inline