Top |
gchar * | (*ICalParserLineGenFunc) () |
ICalParser * | i_cal_parser_new () |
ICalComponent * | i_cal_parser_add_line () |
ICalComponent * | i_cal_parser_clean () |
ICalParserState | i_cal_parser_get_state () |
void | i_cal_parser_free () |
ICalComponent * | i_cal_parser_parse () |
ICalComponent * | i_cal_parser_parse_string () |
gchar * | i_cal_parser_get_line () |
gchar * (*ICalParserLineGenFunc) (gchar *bytes
,size_t size
,gpointer user_data
);
ICalComponent * i_cal_parser_add_line (ICalParser *parser
,gchar *str
);
Add a line at one time into the ICalParser until the parsing is complete and ICalComponent will be returned.
parser |
The ICalParser used to parse the string into the ICalComponent. |
[in][transfer full] |
str |
A line of string representation of the ICalComponent. |
[nullable][transfer none] |
Since: 1.0
ICalComponent *
i_cal_parser_clean (ICalParser *parser
);
We won't get a clean exit if some components did not have an "END" tag. Clear off any component that may be left in the list.
Since: 1.0
ICalParserState
i_cal_parser_get_state (ICalParser *parser
);
Gets the state of the target parser.
Since: 1.0
ICalComponent * i_cal_parser_parse (ICalParser *parser
,ICalParserLineGenFunc func
,gpointer user_data
);
icalparser_parse takes a string that holds the text ( in RFC 2445 format ) and returns a pointer to an
ICalComponent. The caller owns the memory. func
is a pointer to a function that returns one content
line per invocation.
parser |
The parser used to parse the string and output the ICalComponent |
|
func |
The function used to parse. |
[scope call] |
user_data |
The data given to |
[closure] |
Since: 1.0
ICalComponent *
i_cal_parser_parse_string (const gchar *str
);
Parses the string into a ICalComponent.
Since: 1.0
gchar * i_cal_parser_get_line (ICalParser *parser
,ICalParserLineGenFunc func
,gpointer user_data
);
Given a line generator function, returns a single iCal content line.
parser |
The parser to be queried |
|
func |
A line generator function. |
[scope call] |
user_data |
The data given to |
[closure] |
Since: 1.0