Top | ![]() |
![]() |
![]() |
![]() |
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 () |
void | i_cal_parser_set_gen_data () |
ICalComponent * | i_cal_parser_parse_string () |
gchar * | i_cal_parser_get_line () |
gchar * | i_cal_parser_string_line_generator () |
#define | I_CAL_PARSER_TYPE |
struct | ICalParser |
struct | ICalParserClass |
enum | ICalParserState |
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. |
[allow-none][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
);
Get the state of the target parser.
Since 1.0
ICalComponent * i_cal_parser_parse (ICalParser *parser
,gchar* (*func) (gchar *,size_t,void *)
);
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. line_gen_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. |
Since 1.0
void i_cal_parser_set_gen_data (ICalParser *parser
,void *data
);
Set the data that icalparser_parse will give to the line_gen_func as the parameter 'd'
parser |
The parser |
|
data |
Set the data that icalparser_parse will give to the line_gen_func as the parameter 'd' |
Since 1.0
ICalComponent *
i_cal_parser_parse_string (const gchar *str
);
Parse the string into a ICalComponent.
Since 1.0
gchar * i_cal_parser_get_line (ICalParser *parser
,gchar* (*func) (gchar *,size_t,void *)
);
Given a line generator function, return a single iCal content line.
Since 1.0