Top | ![]() |
![]() |
![]() |
![]() |
GsfInput * | gsf_input_textline_new () |
unsigned char * | gsf_input_textline_ascii_gets () |
guint8 * | gsf_input_textline_utf8_gets () |
GsfOutput * | gsf_output_iconv_new () |
gboolean | gsf_output_csv_write_eol () |
gboolean | gsf_output_csv_write_field () |
gchar * | fallback | Read / Write |
gchar * | input-charset | Read / Write / Construct Only |
gchar * | output-charset | Read / Write / Construct Only |
GsfOutput * | sink | Read / Write / Construct Only |
gchar * | eol | Read / Write / Construct |
gchar * | quote | Read / Write / Construct |
GsfOutputCsvQuotingMode | quoting-mode | Read / Write / Construct |
gboolean | quoting-on-whitespace | Read / Write |
gchar * | quoting-triggers | Read / Write |
gchar * | separator | Read / Write / Construct |
GsfOutput * | sink | Read / Write |
GObject ├── GsfInput │ ╰── GsfInputTextline ╰── GsfOutput ├── GsfOutputCsv ╰── GsfOutputIconv
GsfInput *
gsf_input_textline_new (GsfInput *source
);
source
.unsigned char *
gsf_input_textline_ascii_gets (GsfInputTextline *textline
);
A utility routine to read things line by line from the underlying source. Trailing newlines and carriage returns are stripped, and the resultant buffer can be edited.
guint8 *
gsf_input_textline_utf8_gets (GsfInputTextline *textline
);
A utility routine to read things line by line from the underlying source. Trailing newlines and carriage returns are stripped, and the resultant buffer can be edited.
GsfOutput * gsf_output_iconv_new (GsfOutput *sink
,char const *dst
,char const *src
);
Adds a reference to sink
.
gboolean gsf_output_csv_write_field (GsfOutputCsv *csv
,char const *field
,size_t len
);
“fallback”
property “fallback” gchar *
Either NULL or a UTF-8 string (representable in the target encoding) to convert and output in place of characters that cannot be represented in the target encoding. NULL means use \u1234 or \U12345678 format.
Flags: Read / Write
Default value: NULL
“input-charset”
property “input-charset” gchar *
The character set to convert from.
Flags: Read / Write / Construct Only
Default value: "UTF-8"
“output-charset”
property “output-charset” gchar *
The character set to convert to.
Flags: Read / Write / Construct Only
Default value: "UTF-8"
“sink”
property“sink” GsfOutput *
Where the converted data is written.
Flags: Read / Write / Construct Only
“eol”
property “eol” gchar *
The end-of-line marker.
Flags: Read / Write / Construct
Default value: "\n"
“quote”
property “quote” gchar *
The string used for quoting fields.
Flags: Read / Write / Construct
Default value: "\""
“quoting-mode”
property“quoting-mode” GsfOutputCsvQuotingMode
When to quote fields.
Flags: Read / Write / Construct
Default value: GSF_OUTPUT_CSV_QUOTING_MODE_NEVER
“quoting-on-whitespace”
property “quoting-on-whitespace” gboolean
Does initial or terminal whitespace force quoting?.
Flags: Read / Write
Default value: TRUE
“quoting-triggers”
property “quoting-triggers” gchar *
Characters that cause field quoting.
Flags: Read / Write
Default value: NULL
“separator”
property “separator” gchar *
The field separator.
Flags: Read / Write / Construct
Default value: ","