library/src/blockclass/subclasses/BP_StringUtils.cc
//! String utility class constructor.  Initializes member variables to zero and
//  creates allocators/base datasets.
String utility class constructor.  Initializes member variables to zero and
creates allocators/base datasets.
String utility class constructor . Initializes member variables to zero and creates allocators / base datasets .
BP_StringUtils::BP_StringUtils(char * string)
{
	this->find_strs       = NULL;
	this->replace_strs    = NULL;
	this->find_item_count = 0;
	this->mod_string      = NULL;
	this->mod_string_pcre      = NULL;
	this->find_strs_pcre       = NULL;
	this->replace_strs_pcre    = NULL;
	this->find_item_count_pcre = NULL;
	this->csv_parsing_hint = BP_STRINGUTILS_BUILD_ERROR;
	this->csv_num_rows = 0;
	this->csv = NULL;
	this->exploded = NULL;
	this->exploded_count = 0;
	this->dont_explode_between_doublequotes = true;
	this->dont_explode_between_singlequotes = true;;
	this->build_str = NULL;
	this->unique_strings = NULL;
	this->unique_str_cnt = NULL;
	this->unique_string_index_counts = NULL;
	size_t random_id = BP_GenRandomUnsignedLong(1, 0xffffffff);
	this->tq = BP_CreateLinkL("BP_StringUtils", BP_TRUE);
	this->duplicate_unique_strings = true;
	this->xml_file_name = NULL;
	this->xml_doc       = NULL;
	this->xml_root_node = NULL;
	this->xml_curr_node = NULL;
	this->xml_curr_prop         = NULL;
	this->xml_curr_prop_name    = NULL;
	this->xml_curr_prop_content = NULL;
	this->xml_parsed_ok = false;
	if(string)
		this->string = tq_strdup(this->tq, string, BPLN);
	else
		this->string = NULL;
}
BP_StringUtils :: BP_StringUtils ( char * string ) { this -> find_strs = NULL ; this -> replace_strs = NULL ; this -> find_item_count = 0 ; this -> mod_string = NULL ; this -> mod_string_pcre = NULL ; this -> find_strs_pcre = NULL ; this -> replace_strs_pcre = NULL ; this -> find_item_count_pcre = NULL ; this -> csv_parsing_hint = BP_STRINGUTILS_BUILD_ERROR ; this -> csv_num_rows = 0 ; this -> csv = NULL ; this -> exploded = NULL ; this -> exploded_count = 0 ; this -> dont_explode_between_doublequotes = true ; this -> dont_explode_between_singlequotes = true ; ; this -> build_str = NULL ; this -> unique_strings = NULL ; this -> unique_str_cnt = NULL ; this -> unique_string_index_counts = NULL ; size_t random_id = BP_GenRandomUnsignedLong ( 1 , 0xffffffff ) ; this -> tq = BP_CreateLinkL ( " " , BP_TRUE ) ; this -> duplicate_unique_strings = true ; this -> xml_file_name = NULL ; this -> xml_doc = NULL ; this -> xml_root_node = NULL ; this -> xml_curr_node = NULL ; this -> xml_curr_prop = NULL ; this -> xml_curr_prop_name = NULL ; this -> xml_curr_prop_content = NULL ; this -> xml_parsed_ok = false ; if ( string ) this -> string = tq_strdup ( this -> tq , string , BPLN ) ; else this -> string = NULL ; }
String utility class constructor.
String utility class constructor .
// array of strings to use as input to find and replace // perl compatible regular expression member initializations. // set initial parsing hint to error (aka zero). // set defaults to 0 // set flags to true // set builder string to null // contains unique strings // set index as null // generate a random arbitrary id to assign the tail queue allocator // initialze local linked list // set duplication of strings to true // set null file name // set xml information here // current properties // xml parsed flag // Duplicate string if it's passed in.  Allocate it within the class // tail queue memory allocator.