library/src/utility/BP-StringFormattingSessions.cc
// counts the number of string entries in the row
counts the number of string entries in the row
counts the number of string entries in the row
size_t BP_CountNumberOfStringEntriesInRowSFSession(P_BP_SFS_STRING_ROW row)
{
	if(!row)
		return ERR_FAILURE;
	size_t entry_count = 0;
	size_t column_group_n = 0;
	size_t column_n = 0;
	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++)
			entry_count+=row->col_groups[column_group_n]->columns[column_n]->entries;
	return entry_count;
}
size_t BP_CountNumberOfStringEntriesInRowSFSession ( P_BP_SFS_STRING_ROW row ) { if ( ! row ) return ERR_FAILURE ; size_t entry_count = 0 ; size_t column_group_n = 0 ; size_t column_n = 0 ; 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 ++ ) entry_count += row -> col_groups [ column_group_n ] -> columns [ column_n ] -> entries ; return entry_count ; }
counts the number of string entries in the row
counts the number of string entries in the row
// entry count to return // iterators for navigating the row // calculate entry count // return the final count