ARB
|
Go to the source code of this file.
Classes | |
class | CharPtrArray |
class | FINAL_TYPE< SEQTYPE > |
xml element More... | |
class | ConstStrArray |
Typedefs | |
typedef int(* | CharPtrArray_compare_fun )(const void *p0, const void *p1, void *client_data) |
Enumerations | |
enum | SplitMode { SPLIT_DROPEMPTY, SPLIT_KEEPEMPTY } |
Functions | |
MARK_NONFINAL_CLASS (ConstStrArray) | |
void | GBT_splitNdestroy_string (ConstStrArray &names, char *&namelist, const char *separator, SplitMode mode) |
void | GBT_splitNdestroy_string (ConstStrArray &dest, char *&namelist, char separator) |
void | GBT_split_string (ConstStrArray &dest, const char *namelist, const char *separator, SplitMode mode) |
void | GBT_split_string (ConstStrArray &dest, const char *namelist, char separator) |
char * | GBT_join_strings (const CharPtrArray &strings, char separator) |
typedef int(* CharPtrArray_compare_fun)(const void *p0, const void *p1, void *client_data) |
Definition at line 29 of file arb_strarray.h.
enum SplitMode |
Enumerator | |
---|---|
SPLIT_DROPEMPTY | |
SPLIT_KEEPEMPTY |
Definition at line 218 of file arb_strarray.h.
MARK_NONFINAL_CLASS | ( | ConstStrArray | ) |
void GBT_splitNdestroy_string | ( | ConstStrArray & | names, |
char *& | namelist, | ||
const char * | separator, | ||
SplitMode | mode | ||
) |
Split 'namelist' into an array of substrings at each member of 'separator'.
names | pointers to split parts (into namelist) |
namelist | string containing separator delimited parts |
separator | contains all characters handled as separators |
mode | if SPLIT_DROPEMPTY, empty tokens will be skipped |
Example:
ownership of namelist is transferred to 'names'
Definition at line 47 of file arb_strarray.cxx.
References NULp, ConstStrArray::put(), s, ConstStrArray::set_memblock(), and SPLIT_KEEPEMPTY.
Referenced by AW_init_color_group_defaults(), clear_comment_cb(), create_probe_design_variables(), fill_boolrules_array_from_AWAR(), fill_with_source_sais(), GBT_load_colorset(), GBT_split_string(), GBT_splitNdestroy_string(), get_selected_configs_from_awar(), parseCSV(), PT_start_design(), read_references(), refresh_inputfield_selbox_cb(), split_ali_cb(), and string2WordSet().
void GBT_splitNdestroy_string | ( | ConstStrArray & | dest, |
char *& | namelist, | ||
char | separator | ||
) |
Definition at line 90 of file arb_strarray.cxx.
References GBT_splitNdestroy_string(), and SPLIT_KEEPEMPTY.
|
inline |
same as GBT_splitNdestroy_string, but w/o destroying namelist
Definition at line 223 of file arb_strarray.h.
References ARB_strdup(), and GBT_splitNdestroy_string().
Referenced by add_field_cb(), RefEntries::addRefsTo(), AW_create_fileselection_awars(), aw_help_history(), AWT_insert_DBcompression_selector(), AWT_trigger_remote_action(), correct_managed_configsets_cb(), LocationEditor::create_GEN_position_from_fields(), ArbImporter::detect_format(), export_nds_cb(), FieldTransfer::RuleSet::extractUsedFields(), File_selection::fill(), gb_hierarchy_location::gb_hierarchy_location(), get_existing_configs(), File_selection::get_newest_dir_modtime(), ListDisplayRow::ListDisplayRow(), move_field_cb(), new_input_window(), nt_build_sai_string(), parse_helix_list(), GBL_IMPL::print_trace(), probe_design_event(), FieldTransfer::ReadRule::readFrom(), remove_from_configs(), and FieldTransfer::RuleSet::saveTo().
|
inline |
Definition at line 228 of file arb_strarray.h.
References ARB_strdup(), and GBT_splitNdestroy_string().
char* GBT_join_strings | ( | const CharPtrArray & | strings, |
char | separator | ||
) |
Joins a NULp-terminated array of 'char*' into one string
strings | array of strings to join (maybe generated using GBT_split_string() or GBT_splitNdestroy_string) |
separator | is put between the concatenated strings (pass 0 to join w/o separator) |
Definition at line 96 of file arb_strarray.cxx.
References arb_assert, ARB_strdup(), GBS_strstruct::cat(), implicated, GBS_strstruct::put(), and GBS_strstruct::release().
Referenced by cbtype2readable(), clear_comment_cb(), concatenateAlignments(), correct_managed_configsets_cb(), create_list_of_loaded_species(), remove_from_configs(), sai_seletion_changed_cb(), update_rulesAwar(), updateChangedInputFields(), test_runtool::valgrinded_pipe_command(), write_configs_to_awar(), and write_references().