Lines Matching refs:options
373 …r)(void *data, const char *text, int size), void *data, XML_ELEM_OUTPUT_OPTIONS options, int depth) in xml_element_serialize() argument
386 if(!options) { in xml_element_serialize()
387 options = &default_opts; in xml_element_serialize()
395 if(options->encoding && *options->encoding) { in xml_element_serialize()
400 xml_elem_writefunc(fptr, options->encoding, data, 0); in xml_element_serialize()
404 if(options->verbosity != xml_elem_no_white_space) { in xml_element_serialize()
409 if(options->verbosity == xml_elem_pretty && depth > 2) { in xml_element_serialize()
448 if(options->escaping && options->escaping != xml_elem_cdata_escaping) { in xml_element_serialize()
449 … escaped_str = xml_elem_entity_escape(el->text.str, buflen, &buflen, options->escaping ); in xml_element_serialize()
455 if(options->escaping & xml_elem_cdata_escaping) { in xml_element_serialize()
465 if(options->escaping & xml_elem_cdata_escaping) { in xml_element_serialize()
475 if(options->verbosity != xml_elem_no_white_space) { in xml_element_serialize()
479 xml_element_serialize(kids, fptr, data, options, depth); in xml_element_serialize()
483 if(options->verbosity == xml_elem_pretty && depth > 2) { in xml_element_serialize()
493 if(options->verbosity != xml_elem_no_white_space) { in xml_element_serialize()
534 char* xml_elem_serialize_to_string(xml_element *el, XML_ELEM_OUTPUT_OPTIONS options, int *buf_len) in xml_elem_serialize_to_string() argument
539 xml_element_serialize(el, simplestring_out_fptr, (void *)&buf, options, 0); in xml_elem_serialize_to_string()
568 void xml_elem_serialize_to_stream(xml_element *el, FILE *output, XML_ELEM_OUTPUT_OPTIONS options) in xml_elem_serialize_to_stream() argument
570 xml_element_serialize(el, file_out_fptr, (void *)output, options, 0); in xml_elem_serialize_to_stream()
684 xml_element* xml_elem_parse_buf(const char* in_buf, int len, XML_ELEM_INPUT_OPTIONS options, XML_EL… in xml_elem_parse_buf() argument
690 if(!options) { in xml_elem_parse_buf()
691 options = &default_opts; in xml_elem_parse_buf()
702 mydata.input_options = options; in xml_elem_parse_buf()
703 mydata.needs_enc_conversion = options->encoding && strcmp(options->encoding, encoding_utf_8); in xml_elem_parse_buf()