RPC-XML-Deparser-XS
view release on metacpan or search on metacpan
libxwrite.c view on Meta::CPAN
}
void xwrite_add_text(XWrite* this, const gchar* str) {
xwrite_finish_element(this);
xwrite_escape(this, str);
this->element_has_children = TRUE;
this->last_node_was_text = TRUE;
}
void xwrite_add_CDATA(XWrite* this, const gchar* cdata) {
#if HAVE_STRSTR
g_assert(strstr(cdata, "]]>") == NULL);
#endif
xwrite_finish_element(this);
xwrite_copy(this, "<![CDATA[");
xwrite_copy(this, cdata);
xwrite_copy(this, "]]>");
this->element_has_children = TRUE;
this->last_node_was_text = TRUE;
}
void xwrite_add_base64(XWrite* this, const gchar* str, gsize len) {
gchar* encoded = g_base64_encode(str, len);
xwrite_add_text(this, encoded);
libxwrite.h view on Meta::CPAN
* \param this The context.
* \param str The text in UTF-8.
* \see xwrite_add_base64()
*/
void xwrite_add_text(XWrite* this, const gchar* str);
/**
* \brief Add an XML CDATA.
*
* \param this The context.
* \param cdata The CDATA in UTF-8.
*/
void xwrite_add_CDATA(XWrite* this, const gchar* cdata);
/**
* \brief Add a binary to the innermost open element with encoding in
* Base64.
*
* \param this The context.
* \param buf The beginning address of region to be added.
* \param len The length of region.
* \see xwrite_add_text()
*/
( run in 0.508 second using v1.01-cache-2.11-cpan-454fe037f31 )