![]() | ![]() | ![]() | GSF Reference Manual | ![]() |
---|
#define GSF_INPUT_TEXTLINE_TYPE #define GSF_INPUT_TEXTLINE (o) struct GsfInputTextline; GType gsf_input_textline_get_type (void); GsfInputTextline* gsf_input_textline_new (GsfInput *source); unsigned char* gsf_input_textline_ascii_gets (GsfInputTextline *input); guint8* gsf_input_textline_utf8_gets (GsfInputTextline *input);
#define GSF_INPUT_TEXTLINE(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), GSF_INPUT_TEXTLINE_TYPE, GsfInputTextline))
o : |
|
GsfInputTextline* gsf_input_textline_new (GsfInput *source);
NOTE : adds a reference to source
source : | in some combination of ascii and utf8 |
Returns : | a new file or NULL. |
unsigned char* gsf_input_textline_ascii_gets (GsfInputTextline *input);
A utility routine to read things line by line from the underlying source. Trailing newlines and carriage returns are stipped, and the resultant buffer can be edited.
input : | |
Returns : | the string read, or NULL on eof. |
guint8* gsf_input_textline_utf8_gets (GsfInputTextline *input);
input : | |
Returns : |
|
<<< gsf-input-textline | gsf-out-file >>> |