library/src/utility/BP-StringFormattingSessions.cc
// Get the max width for a row.  This is primarily utilized to generate lines
// for the output buffer.
Get the max width for a row.  This is primarily utilized to generate lines
for the output buffer.
Get the max width for a row . This is primarily utilized to generate lines for the output buffer .
size_t BP_GetRowMaxWidthOfAllStringEntriesSFSession(P_BP_SFS_STRING_ROW row)
{
	size_t max_width = 0;
	size_t column_group_n = 0;
	size_t column_n       = 0;
	size_t entry_n        = 0;
	size_t max_row_width  = 0;
	char ** deliniated_rows = NULL;
	P_BP_SFS_STRING_ENTRY current_entry = NULL;
	for(; column_group_n < row->col_group_n; column_group_n++)
	for(column_n = 0; column_n < row->col_groups[column_group_n]->columns_n; column_n++)
	for(entry_n = 0; entry_n < row->col_groups[column_group_n]->columns[column_n]->entries; entry_n++)
	{
		current_entry = row->col_groups[column_group_n]->columns[column_n]->col_data[entry_n];
		if(current_entry->auto_calculate_max_width_by_newlines)
		{
		}
	}
	return max_width;
}
size_t BP_GetRowMaxWidthOfAllStringEntriesSFSession ( P_BP_SFS_STRING_ROW row ) { size_t max_width = 0 ; size_t column_group_n = 0 ; size_t column_n = 0 ; size_t entry_n = 0 ; size_t max_row_width = 0 ; char * * deliniated_rows = NULL ; P_BP_SFS_STRING_ENTRY current_entry = NULL ; for ( ; column_group_n < row -> col_group_n ; column_group_n ++ ) for ( column_n = 0 ; column_n < row -> col_groups [ column_group_n ] -> columns_n ; column_n ++ ) for ( entry_n = 0 ; entry_n < row -> col_groups [ column_group_n ] -> columns [ column_n ] -> entries ; entry_n ++ ) { current_entry = row -> col_groups [ column_group_n ] -> columns [ column_n ] -> col_data [ entry_n ] ; if ( current_entry -> auto_calculate_max_width_by_newlines ) { } } return max_width ; }
Get the max width for a row.
Get the max width for a row .
// this will be returned to the user // iterators for navigating the row // this is used // reference to add readability to the manipulations below // calculate entry count // set current entry // calculate by newlines // return the width