export_to_string


Description:

public string export_to_string (DataModelIOFormat format, int[]? cols, int[]? rows, Set options)

Exports data contained in this to a string; the format is specified using the format argument, see the export_to_file documentation for more information about the options argument (except for the "OVERWRITE" option).

Warning: this function uses a DataModelIter iterator, and if this does not offer a random access (check using get_access_flags), the iterator will be the same as normally used to access data in this previously to calling this method, and this iterator will be moved (point to another row).

See also dump_as_string;

Parameters:

this

a DataModel

format

the format in which to export data

cols

an array containing which columns of this will be exported, or null for all columns

rows

an array containing which rows of this will be exported, or null for all rows

options

list of options for the export

nb_cols

the number of columns in cols

nb_rows

the number of rows in rows

Returns:

a new string, use g_free when no longer needed




2022 vala-language.org