Lines Matching defs:parser
26 #include "cr-om-parser.h"
32 *This parser uses (and sits) the SAC api of libcroco defined
33 *in cr-parser.h and cr-doc-handler.h
37 CRParser *parser;
149 && PRIVATE (a_this)->parser,
152 status = cr_parser_get_sac_handler (PRIVATE (a_this)->parser,
181 status = cr_parser_set_sac_handler (PRIVATE (a_this)->parser,
824 PRIVATE (result)->parser = cr_parser_new_from_input (a_input);
826 if (!PRIVATE (result)->parser) {
871 if (!PRIVATE (a_this)->parser) {
872 PRIVATE (a_this)->parser = cr_parser_new (NULL);
875 status = cr_parser_parse_buf (PRIVATE (a_this)->parser,
883 cr_parser_get_sac_handler (PRIVATE (a_this)->parser,
915 CROMParser *parser = NULL;
918 parser = cr_om_parser_new (NULL);
919 if (!parser) {
920 cr_utils_trace_info ("Could not create om parser");
925 status = cr_om_parser_parse_buf (parser, a_buf, a_len,
928 if (parser) {
929 cr_om_parser_destroy (parser);
930 parser = NULL;
938 *@a_this: the current instance of the cssom parser.
960 if (!PRIVATE (a_this)->parser) {
961 PRIVATE (a_this)->parser = cr_parser_new_from_file
965 status = cr_parser_parse_file (PRIVATE (a_this)->parser,
973 cr_parser_get_sac_handler (PRIVATE (a_this)->parser,
1005 CROMParser *parser = NULL;
1008 parser = cr_om_parser_new (NULL);
1009 if (!parser) {
1010 cr_utils_trace_info ("Could not allocate om parser");
1015 status = cr_om_parser_parse_file (parser, a_file_path,
1017 if (parser) {
1018 cr_om_parser_destroy (parser);
1019 parser = NULL;
1106 CROMParser *parser = NULL;
1108 parser = cr_om_parser_new (NULL);
1109 if (!parser) {
1110 cr_utils_trace_info ("could not allocated om parser");
1114 status = cr_om_parser_parse_paths_to_cascade (parser,
1119 if (parser) {
1120 cr_om_parser_destroy (parser);
1121 parser = NULL;
1137 if (PRIVATE (a_this)->parser) {
1138 cr_parser_destroy (PRIVATE (a_this)->parser);
1139 PRIVATE (a_this)->parser = NULL;