#include <string.h>
#include "cr-utils.h"
#include "cr-om-parser.h"
Go to the source code of this file.
Data Structures | |
struct | _CROMParserPriv |
struct | _ParsingContext |
Defines | |
#define | PRIVATE(a_this) ((a_this)->priv) |
Typedefs | |
typedef _ParsingContext | ParsingContext |
Functions | |
CROMParser * | cr_om_parser_new (CRInput *a_input) |
Constructor of the CROMParser. | |
enum CRStatus | cr_om_parser_parse_buf (CROMParser *a_this, const guchar *a_buf, gulong a_len, enum CREncoding a_enc, CRStyleSheet **a_result) |
Parses the content of an in memory buffer. | |
enum CRStatus | cr_om_parser_simply_parse_buf (const guchar *a_buf, gulong a_len, enum CREncoding a_enc, CRStyleSheet **a_result) |
The simpler way to parse an in memory css2 buffer. | |
enum CRStatus | cr_om_parser_parse_file (CROMParser *a_this, const guchar *a_file_uri, enum CREncoding a_enc, CRStyleSheet **a_result) |
Parses a css2 stylesheet contained in a file. | |
enum CRStatus | cr_om_parser_simply_parse_file (const guchar *a_file_path, enum CREncoding a_enc, CRStyleSheet **a_result) |
The simpler method to parse a css2 file. | |
void | cr_om_parser_destroy (CROMParser *a_this) |
Destructor of the CROMParser. |
This parser uses (and sits) the SAC api of libcroco defined in cr-parser.h and cr-doc-handler.h
Definition in file cr-om-parser.c.
|
Definition at line 43 of file cr-om-parser.c. |
|
Definition at line 50 of file cr-om-parser.c. |
|
Destructor of the CROMParser.
Definition at line 1067 of file cr-om-parser.c. References cr_parser_destroy(), and PRIVATE. Referenced by cr_om_parser_new(), cr_om_parser_simply_parse_buf(), and cr_om_parser_simply_parse_file(). |
|
Constructor of the CROMParser.
Definition at line 833 of file cr-om-parser.c. References CR_OK, cr_om_parser_destroy(), cr_parser_new_from_input(), cr_utils_trace_info, CROMParser, CRStatus, and PRIVATE. Referenced by cr_om_parser_simply_parse_buf(), and cr_om_parser_simply_parse_file(). |
|
Parses the content of an in memory buffer.
Definition at line 895 of file cr-om-parser.c. References CR_BAD_PARAM_ERROR, cr_doc_handler_get_result(), CR_ERROR, CR_OK, cr_parser_get_sac_handler(), cr_parser_new(), cr_parser_parse_buf(), CRDocHandler, CRStatus, and PRIVATE. Referenced by cr_om_parser_simply_parse_buf(). |
|
Parses a css2 stylesheet contained in a file.
Definition at line 984 of file cr-om-parser.c. References CR_BAD_PARAM_ERROR, cr_doc_handler_get_result(), CR_ERROR, CR_OK, cr_parser_get_sac_handler(), cr_parser_new_from_file(), cr_parser_parse_file(), CRDocHandler, CRStatus, and PRIVATE. Referenced by cr_om_parser_simply_parse_file(). |
|
The simpler way to parse an in memory css2 buffer.
Definition at line 943 of file cr-om-parser.c. References CR_ERROR, CR_OK, cr_om_parser_destroy(), cr_om_parser_new(), cr_om_parser_parse_buf(), cr_utils_trace_info, CROMParser, and CRStatus. Referenced by cr_box_view_new_from_xml_css_bufs(). |
|
The simpler method to parse a css2 file.
Definition at line 1035 of file cr-om-parser.c. References CR_ERROR, CR_OK, cr_om_parser_destroy(), cr_om_parser_new(), cr_om_parser_parse_file(), cr_utils_trace_info, CROMParser, and CRStatus. |