ICalGLib.Parser¶
- Subclasses:
None
Methods¶
- Inherited:
- Structs:
class |
|
class |
|
|
|
|
|
|
|
|
|
|
|
|
Virtual Methods¶
- Inherited:
Properties¶
- Inherited:
Signals¶
- Inherited:
Fields¶
- Inherited:
Class Details¶
- class ICalGLib.Parser(**kwargs)¶
- Bases:
- Abstract:
No
- Structure:
This is the
ICalGLib.Parser
instance.- classmethod new()¶
- Returns:
The newly created
ICalGLib.Parser
.- Return type:
Creates a default
ICalGLib.Parser
.New in version 1.0.
- classmethod parse_string(str)¶
- Parameters:
str (
str
) – The string to be parsed- Returns:
The
ICalGLib.Component
parsed from str.- Return type:
Parses the string into a
ICalGLib.Component
.New in version 1.0.
- add_line(str)¶
- Parameters:
str (
str
orNone
) – A line of string representation of theICalGLib.Component
- Returns:
The complete
ICalGLib.Component
.- Return type:
Add a line at one time into the
ICalGLib.Parser
until the parsing is complete andICalGLib.Component
will be returned.New in version 1.0.
- clean()¶
- Returns:
The root
ICalGLib.Component
in self.- Return type:
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.
New in version 1.0.
- free()¶
Frees a
ICalGLib.Parser
.New in version 1.0.
- get_line(func, *user_data)¶
- Parameters:
func (
ICalGLib.ParserLineGenFunc
) – A line generator function
- Returns:
A single iCal content line.
- Return type:
Given a line generator function, returns a single iCal content line.
New in version 1.0.
- get_state()¶
- Returns:
The parser state stored in the
ICalGLib.Parser
.- Return type:
Gets the state of the target parser.
New in version 1.0.
- parse(func, *user_data)¶
- Parameters:
func (
ICalGLib.ParserLineGenFunc
) – The function used to parse
- Returns:
The component output by the parser.
- Return type:
icalparser_parse takes a string that holds the text ( in RFC 2445 format ) and returns a pointer to an
ICalGLib.Component
. The caller owns the memory. func is a pointer to a function that returns one content line per invocation.New in version 1.0.