library/src/utility/BP-StringFormattingSessions.cc
// Add string entry to a column using raw character string data.  This
// routine performs an auto-conversion to a P_BP_SFS_STRING_ENTRY.  This
// is more of a utility routine than anything else, as it just frontends
// into BP_AddStringEntryToColumn (found below).
Add string entry to a column using raw character string data.  This
routine performs an auto-conversion to a P_BP_SFS_STRING_ENTRY.  This
is more of a utility routine than anything else, as it just frontends
into BP_AddStringEntryToColumn (found below).
Add string entry to a column using raw character string data . This routine performs an auto - conversion to a P_BP_SFS_STRING_ENTRY . This is more of a utility routine than anything else as it just frontends into BP_AddStringEntryToColumn ( found below ) .
BP_ERROR_T BP_AddStringEntryToColumnUsingASCIIDataSFSession
(
	P_BP_SF_SESSION sfs,
	char *row_group_identifier,
	char *row_identifier,
	char *column_group_identifier,
	char *column_identifier,
	char *new_string_identifier,
	char *new_string_data,
	size_t new_string_len,
	size_t new_display_width,
	P_BP_COLOR_CODE_SET_T new_initial_colors,
	P_BP_STRING_ROW_BORDER_SET border_set
)
{
	if(!sfs)
		return ERR_FAILURE;
	if(!row_group_identifier || !row_identifier || !column_group_identifier || !column_identifier)
		return ERR_FAILURE;
	if(!new_string_identifier || !new_string_data || !new_string_len || !new_initial_colors)
		return ERR_FAILURE;
	P_BP_SFS_STRING_ENTRY string_entry = BP_GenerateStringEntryFromCharString
	(
			sfs,
			new_string_identifier,
			new_string_data,
			new_string_len,
			new_display_width,
			new_initial_colors,
			0,
			0,
			border_set
	);
	if(!string_entry)
		return ERR_FAILURE;
	return BP_AddStringEntryToColumnSFSession
	(
		sfs,
		row_group_identifier,
		row_identifier,
		column_group_identifier,
		column_identifier,
		string_entry,
		border_set
	);
}
BP_ERROR_T BP_AddStringEntryToColumnUsingASCIIDataSFSession ( P_BP_SF_SESSION sfs , char * row_group_identifier , char * row_identifier , char * column_group_identifier , char * column_identifier , char * new_string_identifier , char * new_string_data , size_t new_string_len , size_t new_display_width , P_BP_COLOR_CODE_SET_T new_initial_colors , P_BP_STRING_ROW_BORDER_SET border_set ) { if ( ! sfs ) return ERR_FAILURE ; if ( ! row_group_identifier || ! row_identifier || ! column_group_identifier || ! column_identifier ) return ERR_FAILURE ; if ( ! new_string_identifier || ! new_string_data || ! new_string_len || ! new_initial_colors ) return ERR_FAILURE ; P_BP_SFS_STRING_ENTRY string_entry = BP_GenerateStringEntryFromCharString ( sfs , new_string_identifier , new_string_data , new_string_len , new_display_width , new_initial_colors , 0 , 0 , border_set ) ; if ( ! string_entry ) return ERR_FAILURE ; return BP_AddStringEntryToColumnSFSession ( sfs , row_group_identifier , row_identifier , column_group_identifier , column_identifier , string_entry , border_set ) ; }
Add string entry to a column using raw character string data.
Add string entry to a column using raw character string data .
// ensure we have a sfs entry // ensure we have new elements to add // attempt to generate the string entry first // ensure we can create entry, or exit // return the addition return code