as_int =
static_cast<int>(
value);
70 if(
value!=
static_cast<std::size_t
>(as_int))
86std::string::size_type
size= std::strlen(
buffer);
96 throw exception(
"Internal logic error. Node must be supplied to " 97 "check matching a namespace.");
106 return ns(nd->ns) == (*nspace);
111 throw exception(
"Internal logic error. Attribute must be " 112 "supplied to check matching a namespace.");
121 return ns(at->ns) == (*nspace);
126 throw exception(
"Internal logic error. Default attribute must be" 127 " supplied to check matching a namespace.");
135 if(dat->prefix ==
NULL)
139 reinterpret_cast<const char*
>(dat->prefix)) == 0;
143 intlibxml2_options = 0;
148libxml2_options |= XML_SAVE_FORMAT;
150libxml2_options |= XML_SAVE_NO_DECL;
152libxml2_options |= XML_SAVE_NO_EMPTY;
154libxml2_options |= XML_SAVE_NO_XHTML;
156 #if LIBXML_VERSION >= 20702 158libxml2_options |= XML_SAVE_XHTML;
160libxml2_options |= XML_SAVE_AS_XML;
162libxml2_options |= XML_SAVE_AS_HTML;
165 #if LIBXML_VERSION >= 20708 169libxml2_options &= ~XML_SAVE_FORMAT;
170libxml2_options |= XML_SAVE_WSNONSIG;
174 returnlibxml2_options;
178std::ostream *dst =
reinterpret_cast<std::ostream*
>(
ctx);
This exception class is thrown by xmlwrapp for all runtime XML-related errors along with the xml::par...
The xml::ns class is used to access and handle namespaces of nodes and attributes.
const char * get_prefix(void) const
Get the namespace prefix.
bool is_void(void) const
If a node or an attribute has no namespace, then a namespace with empty prefix and empty URI is retur...
const struct ncbi::grid::netcache::search::fields::SIZE size
const GenericPointer< typename T::ValueType > T2 value
int strcmp(const char *str1, const char *str2)
int save_to_string_cb(void *ctx, const char *buf, int len)
int convert_to_libxml2_save_options(int options)
void printf2string(std::string &s, const char *message, va_list ap)
int save_to_stream_cb(void *ctx, const char *buf, int len)
@ save_op_no_format
Do not format save output.
@ save_op_as_html
Force HTML serialization on XML doc. Ignored if libxml2 version is < 2.7.2.
@ save_op_no_xhtml
Disable XHTML1 specific rules.
@ save_op_with_non_significant_ws
Format with non-significant whitespace.
@ save_op_no_decl
Drop the xml declaration.
@ save_op_no_empty
No empty tags.
@ save_op_not_as_xml
Do not force XML serialization on HTML doc. Ignored if libxml2 version is < 2.7.2.
@ save_op_xhtml
Force XHTML1 specific rules. Ignored if libxml2 version is < 2.7.2.
int size_t_to_int_conversion(std::size_t value, const std::string &msg)
static SLJIT_INLINE sljit_ins msg(sljit_gpr r, sljit_s32 d, sljit_gpr x, sljit_gpr b)
static bool node_ns_match(xmlNode *nd, const ns *nspace)
static bool attr_ns_match(xmlAttr *at, const ns *nspace)
static bool default_attr_ns_match(xmlAttribute *dat, const ns *nspace)
Flags for saving XML documents and nodes.
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4