Lines Matching refs:options

376 …r)(void *data, const char *text, int size), void *data, XML_ELEM_OUTPUT_OPTIONS options, int depth)  in xml_element_serialize()  argument
389 if(!options) { in xml_element_serialize()
390 options = &default_opts; in xml_element_serialize()
398 if(options->encoding && *options->encoding) { in xml_element_serialize()
403 xml_elem_writefunc(fptr, options->encoding, data, 0); in xml_element_serialize()
407 if(options->verbosity != xml_elem_no_white_space) { in xml_element_serialize()
412 if(options->verbosity == xml_elem_pretty && depth > 2) { in xml_element_serialize()
451 if(options->escaping && options->escaping != xml_elem_cdata_escaping) { in xml_element_serialize()
452 … escaped_str = xml_elem_entity_escape(el->text.str, buflen, &buflen, options->escaping ); in xml_element_serialize()
458 if(options->escaping & xml_elem_cdata_escaping) { in xml_element_serialize()
468 if(options->escaping & xml_elem_cdata_escaping) { in xml_element_serialize()
478 if(options->verbosity != xml_elem_no_white_space) { in xml_element_serialize()
482 xml_element_serialize(kids, fptr, data, options, depth); in xml_element_serialize()
486 if(options->verbosity == xml_elem_pretty && depth > 2) { in xml_element_serialize()
496 if(options->verbosity != xml_elem_no_white_space) { in xml_element_serialize()
537 char* xml_elem_serialize_to_string(xml_element *el, XML_ELEM_OUTPUT_OPTIONS options, int *buf_len) in xml_elem_serialize_to_string() argument
542 xml_element_serialize(el, simplestring_out_fptr, (void *)&buf, options, 0); in xml_elem_serialize_to_string()
571 void xml_elem_serialize_to_stream(xml_element *el, FILE *output, XML_ELEM_OUTPUT_OPTIONS options) in xml_elem_serialize_to_stream() argument
573 xml_element_serialize(el, file_out_fptr, (void *)output, options, 0); in xml_elem_serialize_to_stream()
687 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
693 if(!options) { in xml_elem_parse_buf()
694 options = &default_opts; in xml_elem_parse_buf()
705 mydata.input_options = options; in xml_elem_parse_buf()
706 mydata.needs_enc_conversion = options->encoding && strcmp(options->encoding, encoding_utf_8); in xml_elem_parse_buf()