Projectname large_stringclasses 15
values | Filepath large_stringlengths 4 106 ⌀ | Function large_stringlengths 11 3.45k | Label list |
|---|---|---|---|
Chromium | third_party/libxml/src/testapi.c | static int test_xmlUCSIsOldItalic(void) {
int test_ret = 0;
#if defined(LIBXML_UNICODE_ENABLED)
int mem_base;
int ret_val;
int code;
int n_code;
for (n_code = 0; n_code < gen_nb_int; n_code++) {
mem_base = xmlMemBlocks();
code = gen_int(n_code, 0);
ret_val = xmlUCSIsOldItalic(code);
desre... | [
0,
0
] |
Chromium | third_party/libxml/src/testapi.c | static int test_xmlUCSIsOsmanya(void) {
int test_ret = 0;
#if defined(LIBXML_UNICODE_ENABLED)
int mem_base;
int ret_val;
int code;
int n_code;
for (n_code = 0; n_code < gen_nb_int; n_code++) {
mem_base = xmlMemBlocks();
code = gen_int(n_code, 0);
ret_val = xmlUCSIsOsmanya(code);
desret_in... | [
0,
0
] |
Chromium | third_party/libxml/src/testapi.c | static int test_xmlUCSIsThai(void) {
int test_ret = 0;
#if defined(LIBXML_UNICODE_ENABLED)
int mem_base;
int ret_val;
int code;
int n_code;
for (n_code = 0; n_code < gen_nb_int; n_code++) {
mem_base = xmlMemBlocks();
code = gen_int(n_code, 0);
ret_val = xmlUCSIsThai(code);
desret_int(ret_... | [
0,
0
] |
Chromium | third_party/libxml/src/testapi.c | static int test_xmlUCSIsUnifiedCanadianAboriginalSyllabics(void) {
int test_ret = 0;
#if defined(LIBXML_UNICODE_ENABLED)
int mem_base;
int ret_val;
int code;
int n_code;
for (n_code = 0; n_code < gen_nb_int; n_code++) {
mem_base = xmlMemBlocks();
code = gen_int(n_code, 0);
ret_val = xmlUCSIsU... | [
0,
0
] |
Chromium | third_party/libxml/src/testapi.c | static int test_xmlUCSIsYiRadicals(void) {
int test_ret = 0;
#if defined(LIBXML_UNICODE_ENABLED)
int mem_base;
int ret_val;
int code;
int n_code;
for (n_code = 0; n_code < gen_nb_int; n_code++) {
mem_base = xmlMemBlocks();
code = gen_int(n_code, 0);
ret_val = xmlUCSIsYiRadicals(code);
des... | [
0,
0
] |
Chromium | third_party/libxml/src/testapi.c | static int test_xmlUCSIsYijingHexagramSymbols(void) {
int test_ret = 0;
#if defined(LIBXML_UNICODE_ENABLED)
int mem_base;
int ret_val;
int code;
int n_code;
for (n_code = 0; n_code < gen_nb_int; n_code++) {
mem_base = xmlMemBlocks();
code = gen_int(n_code, 0);
ret_val = xmlUCSIsYijingHexagram... | [
0,
0
] |
Chromium | third_party/libxml/src/testapi.c | static int test_xmlNewTextWriterMemory(void) {
int test_ret = 0;
#if defined(LIBXML_WRITER_ENABLED)
int mem_base;
xmlTextWriterPtr ret_val;
xmlBufferPtr buf;
int n_buf;
int compression; /* compress the output? */
int n_compression;
for (n_buf = 0; n_buf < gen_nb_xmlBufferPtr; n_buf++) {
for (n_com... | [
0,
0
] |
Chromium | third_party/libxml/src/testapi.c | static int test_xmlNewTextWriterPushParser(void) {
int test_ret = 0;
#if defined(LIBXML_WRITER_ENABLED)
int mem_base;
xmlTextWriterPtr ret_val;
xmlParserCtxtPtr ctxt;
int n_ctxt;
int compression; /* compress the output? */
int n_compression;
for (n_ctxt = 0; n_ctxt < gen_nb_xmlParserCtxtPtr; n_ctxt++)... | [
1,
0
] |
Chromium | third_party/libxml/src/testapi.c | static int test_xmlNewTextWriterTree(void) {
int test_ret = 0;
#if defined(LIBXML_WRITER_ENABLED)
int mem_base;
xmlTextWriterPtr ret_val;
xmlDocPtr doc;
int n_doc;
xmlNodePtr node; /* xmlNodePtr or NULL for doc->children */
int n_node;
int compression; /* compress the output? */
int n_compression;
... | [
0,
0
] |
Chromium | third_party/libxml/src/testapi.c | static int test_xmlTextWriterEndElement(void) {
int test_ret = 0;
#if defined(LIBXML_WRITER_ENABLED)
int mem_base;
int ret_val;
xmlTextWriterPtr writer;
int n_writer;
for (n_writer = 0; n_writer < gen_nb_xmlTextWriterPtr; n_writer++) {
mem_base = xmlMemBlocks();
writer = gen_xmlTextWriterPtr(n_wri... | [
0,
0
] |
Chromium | third_party/libxml/src/testapi.c | static int test_xmlTextWriterSetQuoteChar(void) {
int test_ret = 0;
#if defined(LIBXML_WRITER_ENABLED)
int mem_base;
int ret_val;
xmlTextWriterPtr writer;
int n_writer;
xmlChar quotechar; /* the quote character */
int n_quotechar;
for (n_writer = 0; n_writer < gen_nb_xmlTextWriterPtr; n_writer++) {
... | [
0,
0
] |
Chromium | third_party/libxml/src/testapi.c | static int test_xmlTextWriterStartAttribute(void) {
int test_ret = 0;
#if defined(LIBXML_WRITER_ENABLED)
int mem_base;
int ret_val;
xmlTextWriterPtr writer;
int n_writer;
xmlChar *name; /* element name */
int n_name;
for (n_writer = 0; n_writer < gen_nb_xmlTextWriterPtr; n_writer++) {
for (n_name ... | [
0,
0
] |
Chromium | third_party/libxml/src/testapi.c | static int test_xmlTextWriterStartDTDElement(void) {
int test_ret = 0;
#if defined(LIBXML_WRITER_ENABLED)
int mem_base;
int ret_val;
xmlTextWriterPtr writer;
int n_writer;
xmlChar *name; /* the name of the DTD element */
int n_name;
for (n_writer = 0; n_writer < gen_nb_xmlTextWriterPtr; n_writer++) {
... | [
0,
0
] |
Chromium | third_party/libxml/src/testapi.c | static int test_xmlTextWriterStartElementNS(void) {
int test_ret = 0;
#if defined(LIBXML_WRITER_ENABLED)
int mem_base;
int ret_val;
xmlTextWriterPtr writer;
int n_writer;
xmlChar *prefix; /* namespace prefix or NULL */
int n_prefix;
xmlChar *name; /* element local name */
int n_name;
xmlChar *names... | [
0,
0
] |
Chromium | third_party/libxml/src/testapi.c | static int test_xmlTextWriterWriteComment(void) {
int test_ret = 0;
#if defined(LIBXML_WRITER_ENABLED)
int mem_base;
int ret_val;
xmlTextWriterPtr writer;
int n_writer;
xmlChar *content; /* comment string */
int n_content;
for (n_writer = 0; n_writer < gen_nb_xmlTextWriterPtr; n_writer++) {
for (n... | [
0,
0
] |
Chromium | third_party/libxml/src/testapi.c | static int test_xmlTextWriterWriteFormatDTDElement(void) {
int test_ret = 0;
return (test_ret);
} | [
0,
0
] |
Chromium | third_party/libxml/src/testapi.c | static int test_xmlTextWriterWriteFormatDTDInternalEntity(void) {
int test_ret = 0;
return (test_ret);
} | [
0,
0
] |
Chromium | third_party/libxml/src/testapi.c | static int test_xmlTextWriterWriteFormatElement(void) {
int test_ret = 0;
return (test_ret);
} | [
0,
0
] |
Chromium | third_party/libxml/src/testapi.c | static int test_xmlTextWriterWritePI(void) {
int test_ret = 0;
#if defined(LIBXML_WRITER_ENABLED)
int mem_base;
int ret_val;
xmlTextWriterPtr writer;
int n_writer;
xmlChar *target; /* PI target */
int n_target;
xmlChar *content; /* PI content */
int n_content;
for (n_writer = 0; n_writer < gen_nb_... | [
0,
0
] |
Chromium | third_party/libxml/src/testapi.c | static int test_xmlTextWriterWriteVFormatAttribute(void) {
int test_ret = 0;
return (test_ret);
} | [
0,
0
] |
Chromium | third_party/libxml/src/testapi.c | static int test_xmlTextWriterWriteVFormatComment(void) {
int test_ret = 0;
return (test_ret);
} | [
0,
0
] |
Chromium | third_party/libxml/src/testapi.c | static int test_xmlTextWriterWriteVFormatElementNS(void) {
int test_ret = 0;
return (test_ret);
} | [
0,
0
] |
Chromium | third_party/libxml/src/testapi.c | static int test_xmlXPathCastBooleanToNumber(void) {
int test_ret = 0;
#if defined(LIBXML_XPATH_ENABLED)
int mem_base;
double ret_val;
int val;
int n_val;
for (n_val = 0; n_val < gen_nb_int; n_val++) {
mem_base = xmlMemBlocks();
val = gen_int(n_val, 0);
ret_val = xmlXPathCastBooleanToNumber(va... | [
0,
0
] |
Chromium | third_party/libxml/src/testapi.c | static int test_xmlXPathCastToNumber(void) {
int test_ret = 0;
#if defined(LIBXML_XPATH_ENABLED)
int mem_base;
double ret_val;
xmlXPathObjectPtr val;
int n_val;
for (n_val = 0; n_val < gen_nb_xmlXPathObjectPtr; n_val++) {
mem_base = xmlMemBlocks();
val = gen_xmlXPathObjectPtr(n_val, 0);
ret_v... | [
0,
0
] |
Chromium | third_party/libxml/src/testapi.c | static int test_xmlXPathCmpNodes(void) {
int test_ret = 0;
#if defined(LIBXML_XPATH_ENABLED)
int mem_base;
int ret_val;
xmlNodePtr node1;
int n_node1;
xmlNodePtr node2; /* the second node */
int n_node2;
for (n_node1 = 0; n_node1 < gen_nb_xmlNodePtr; n_node1++) {
for (n_node2 = 0; n_node2 < gen_nb... | [
0,
0
] |
Chromium | third_party/libxml/src/testapi.c | static void des_xmlXPathCompExprPtr(int no ATTRIBUTE_UNUSED,
xmlXPathCompExprPtr val ATTRIBUTE_UNUSED,
int nr ATTRIBUTE_UNUSED) {}
#endif
#ifdef LIBXML_XPATH_ENABLED
#define gen_nb_xmlXPathContextPtr 1 | [
0,
0
] |
Chromium | third_party/libxml/src/testapi.c | static int test_xmlXPathIsInf(void) {
int test_ret = 0;
#if defined(LIBXML_XPATH_ENABLED) || defined(LIBXML_SCHEMAS_ENABLED)
int mem_base;
int ret_val;
double val;
int n_val;
for (n_val = 0; n_val < gen_nb_double; n_val++) {
mem_base = xmlMemBlocks();
val = gen_double(n_val, 0);
ret_val = xml... | [
0,
0
] |
Chromium | third_party/libxml/src/testapi.c | static int test_xmlXPathNodeEval(void) {
int test_ret = 0;
#if defined(LIBXML_XPATH_ENABLED)
int mem_base;
xmlXPathObjectPtr ret_val;
xmlNodePtr node;
int n_node;
xmlChar *str; /* the XPath expression */
int n_str;
xmlXPathContextPtr ctx; /* the XPath context */
int n_ctx;
for (n_node = 0; n_node ... | [
0,
0
] |
Chromium | third_party/libxml/src/testapi.c | static int test_xmlXPathNodeSetCreate(void) {
int test_ret = 0;
#if defined(LIBXML_XPATH_ENABLED)
int mem_base;
xmlNodeSetPtr ret_val;
xmlNodePtr val;
int n_val;
for (n_val = 0; n_val < gen_nb_xmlNodePtr; n_val++) {
mem_base = xmlMemBlocks();
val = gen_xmlNodePtr(n_val, 0);
ret_val = xmlXPath... | [
0,
0
] |
Chromium | third_party/libxml/src/testapi.c | static int test_xmlXPathObjectCopy(void) {
int test_ret = 0;
#if defined(LIBXML_XPATH_ENABLED)
int mem_base;
xmlXPathObjectPtr ret_val;
xmlXPathObjectPtr val;
int n_val;
for (n_val = 0; n_val < gen_nb_xmlXPathObjectPtr; n_val++) {
mem_base = xmlMemBlocks();
val = gen_xmlXPathObjectPtr(n_val, 0);
... | [
0,
0
] |
Chromium | third_party/libxml/src/testapi.c | static int test_xmlXPathOrderDocElems(void) {
int test_ret = 0;
#if defined(LIBXML_XPATH_ENABLED)
int mem_base;
long ret_val;
xmlDocPtr doc;
int n_doc;
for (n_doc = 0; n_doc < gen_nb_xmlDocPtr; n_doc++) {
mem_base = xmlMemBlocks();
doc = gen_xmlDocPtr(n_doc, 0);
ret_val = xmlXPathOrderDocElem... | [
0,
0
] |
Chromium | third_party/libxml/src/testapi.c | static void
des_xmlXPathParserContextPtr(int no ATTRIBUTE_UNUSED,
xmlXPathParserContextPtr val ATTRIBUTE_UNUSED,
int nr ATTRIBUTE_UNUSED) {}
#endif | [
0,
0
] |
Chromium | third_party/libxml/src/testapi.c | static int test_valuePush(void) {
int test_ret = 0;
#if defined(LIBXML_XPATH_ENABLED)
int mem_base;
int ret_val;
xmlXPathParserContextPtr ctxt;
int n_ctxt;
xmlXPathObjectPtr value; /* the XPath object */
int n_value;
for (n_ctxt = 0; n_ctxt < gen_nb_xmlXPathParserContextPtr; n_ctxt++) {
for (n_val... | [
0,
0
] |
Chromium | third_party/libxml/src/testapi.c | static int test_xmlXPathAddValues(void) {
int test_ret = 0;
#if defined(LIBXML_XPATH_ENABLED)
int mem_base;
xmlXPathParserContextPtr ctxt;
int n_ctxt;
for (n_ctxt = 0; n_ctxt < gen_nb_xmlXPathParserContextPtr; n_ctxt++) {
mem_base = xmlMemBlocks();
ctxt = gen_xmlXPathParserContextPtr(n_ctxt, 0);
... | [
0,
0
] |
Chromium | third_party/libxml/src/testapi.c | static int test_xmlXPathCeilingFunction(void) {
int test_ret = 0;
#if defined(LIBXML_XPATH_ENABLED)
int mem_base;
xmlXPathParserContextPtr ctxt;
int n_ctxt;
int nargs; /* the number of arguments */
int n_nargs;
for (n_ctxt = 0; n_ctxt < gen_nb_xmlXPathParserContextPtr; n_ctxt++) {
for (n_nargs = 0; ... | [
0,
0
] |
Chromium | third_party/libxml/src/testapi.c | static int test_xmlXPathCompareValues(void) {
int test_ret = 0;
#if defined(LIBXML_XPATH_ENABLED)
int mem_base;
int ret_val;
xmlXPathParserContextPtr ctxt;
int n_ctxt;
int inf; /* less than (1) or greater than (0) */
int n_inf;
int strict; /* is the comparison strict */
int n_strict;
for (n_ctxt =... | [
0,
0
] |
Chromium | third_party/libxml/src/testapi.c | static int test_xmlXPathDebugDumpCompExpr(void) {
int test_ret = 0;
#if defined(LIBXML_XPATH_ENABLED) && defined(LIBXML_DEBUG_ENABLED)
int mem_base;
FILE *output;
int n_output;
xmlXPathCompExprPtr comp; /* the precompiled XPath expression */
int n_comp;
int depth; /* the indentation level. */
int n_dep... | [
0,
0
] |
Chromium | third_party/libxml/src/testapi.c | static int test_xmlXPathDebugDumpObject(void) {
int test_ret = 0;
#if defined(LIBXML_XPATH_ENABLED) && defined(LIBXML_DEBUG_ENABLED)
int mem_base;
FILE *output;
int n_output;
xmlXPathObjectPtr cur; /* the object to inspect */
int n_cur;
int depth; /* indentation level */
int n_depth;
for (n_output =... | [
0,
0
] |
Chromium | third_party/libxml/src/testapi.c | static int test_xmlXPathFalseFunction(void) {
int test_ret = 0;
#if defined(LIBXML_XPATH_ENABLED)
int mem_base;
xmlXPathParserContextPtr ctxt;
int n_ctxt;
int nargs; /* the number of arguments */
int n_nargs;
for (n_ctxt = 0; n_ctxt < gen_nb_xmlXPathParserContextPtr; n_ctxt++) {
for (n_nargs = 0; n_... | [
0,
0
] |
Chromium | third_party/libxml/src/testapi.c | static int test_xmlXPathModValues(void) {
int test_ret = 0;
#if defined(LIBXML_XPATH_ENABLED)
int mem_base;
xmlXPathParserContextPtr ctxt;
int n_ctxt;
for (n_ctxt = 0; n_ctxt < gen_nb_xmlXPathParserContextPtr; n_ctxt++) {
mem_base = xmlMemBlocks();
ctxt = gen_xmlXPathParserContextPtr(n_ctxt, 0);
... | [
0,
0
] |
Chromium | third_party/libxml/src/testapi.c | static int test_xmlXPathNewCString(void) {
int test_ret = 0;
#if defined(LIBXML_XPATH_ENABLED)
int mem_base;
xmlXPathObjectPtr ret_val;
char *val;
int n_val;
for (n_val = 0; n_val < gen_nb_const_char_ptr; n_val++) {
mem_base = xmlMemBlocks();
val = gen_const_char_ptr(n_val, 0);
ret_val = xmlX... | [
0,
0
] |
Chromium | third_party/libxml/src/testapi.c | static int test_xmlXPathNewFloat(void) {
int test_ret = 0;
#if defined(LIBXML_XPATH_ENABLED)
int mem_base;
xmlXPathObjectPtr ret_val;
double val;
int n_val;
for (n_val = 0; n_val < gen_nb_double; n_val++) {
mem_base = xmlMemBlocks();
val = gen_double(n_val, 0);
ret_val = xmlXPathNewFloat(val)... | [
0,
0
] |
Chromium | third_party/libxml/src/testapi.c | static int test_xmlXPathNewNodeSetList(void) {
int test_ret = 0;
#if defined(LIBXML_XPATH_ENABLED)
int mem_base;
xmlXPathObjectPtr ret_val;
xmlNodeSetPtr val;
int n_val;
for (n_val = 0; n_val < gen_nb_xmlNodeSetPtr; n_val++) {
mem_base = xmlMemBlocks();
val = gen_xmlNodeSetPtr(n_val, 0);
ret_... | [
0,
0
] |
Chromium | third_party/libxml/src/testapi.c | static int test_xmlXPathNextFollowing(void) {
int test_ret = 0;
#if defined(LIBXML_XPATH_ENABLED)
int mem_base;
xmlNodePtr ret_val;
xmlXPathParserContextPtr ctxt;
int n_ctxt;
xmlNodePtr cur; /* the current node in the traversal */
int n_cur;
for (n_ctxt = 0; n_ctxt < gen_nb_xmlXPathParserContextPtr; n... | [
0,
0
] |
Chromium | third_party/libxml/src/testapi.c | static int test_xmlXPathNextPreceding(void) {
int test_ret = 0;
#if defined(LIBXML_XPATH_ENABLED)
int mem_base;
xmlNodePtr ret_val;
xmlXPathParserContextPtr ctxt;
int n_ctxt;
xmlNodePtr cur; /* the current node in the traversal */
int n_cur;
for (n_ctxt = 0; n_ctxt < gen_nb_xmlXPathParserContextPtr; n... | [
0,
0
] |
Chromium | third_party/libxml/src/testapi.c | static int test_xmlXPathNodeSetDel(void) {
int test_ret = 0;
#if defined(LIBXML_XPATH_ENABLED)
int mem_base;
xmlNodeSetPtr cur;
int n_cur;
xmlNodePtr val; /* an xmlNodePtr */
int n_val;
for (n_cur = 0; n_cur < gen_nb_xmlNodeSetPtr; n_cur++) {
for (n_val = 0; n_val < gen_nb_xmlNodePtr; n_val++) {
... | [
0,
0
] |
Chromium | third_party/libxml/src/testapi.c | static int test_xmlXPathNodeSetRemove(void) {
int test_ret = 0;
#if defined(LIBXML_XPATH_ENABLED)
int mem_base;
xmlNodeSetPtr cur;
int n_cur;
int val; /* the index to remove */
int n_val;
for (n_cur = 0; n_cur < gen_nb_xmlNodeSetPtr; n_cur++) {
for (n_val = 0; n_val < gen_nb_int; n_val++) {
me... | [
0,
0
] |
Chromium | third_party/libxml/src/testapi.c | static int test_xmlXPathNodeTrailing(void) {
int test_ret = 0;
#if defined(LIBXML_XPATH_ENABLED)
int mem_base;
xmlNodeSetPtr ret_val;
xmlNodeSetPtr nodes;
int n_nodes;
xmlNodePtr node; /* a node */
int n_node;
for (n_nodes = 0; n_nodes < gen_nb_xmlNodeSetPtr; n_nodes++) {
for (n_node = 0; n_node <... | [
0,
0
] |
Chromium | third_party/libxml/src/testapi.c | static int test_xmlXPathNormalizeFunction(void) {
int test_ret = 0;
#if defined(LIBXML_XPATH_ENABLED)
int mem_base;
xmlXPathParserContextPtr ctxt;
int n_ctxt;
int nargs; /* the number of arguments */
int n_nargs;
for (n_ctxt = 0; n_ctxt < gen_nb_xmlXPathParserContextPtr; n_ctxt++) {
for (n_nargs = 0... | [
0,
0
] |
Chromium | third_party/libxml/src/testapi.c | static int test_xmlXPathNsLookup(void) {
int test_ret = 0;
#if defined(LIBXML_XPATH_ENABLED)
int mem_base;
const xmlChar *ret_val;
xmlXPathContextPtr ctxt;
int n_ctxt;
xmlChar *prefix; /* the namespace prefix value */
int n_prefix;
for (n_ctxt = 0; n_ctxt < gen_nb_xmlXPathContextPtr; n_ctxt++) {
f... | [
0,
0
] |
Chromium | third_party/libxml/src/testapi.c | static int test_xmlXPathParseNCName(void) {
int test_ret = 0;
#if defined(LIBXML_XPATH_ENABLED)
int mem_base;
xmlChar *ret_val;
xmlXPathParserContextPtr ctxt;
int n_ctxt;
for (n_ctxt = 0; n_ctxt < gen_nb_xmlXPathParserContextPtr; n_ctxt++) {
mem_base = xmlMemBlocks();
ctxt = gen_xmlXPathParserCont... | [
0,
0
] |
Chromium | third_party/libxml/src/testapi.c | static int test_xmlXPathPopExternal(void) {
int test_ret = 0;
#if defined(LIBXML_XPATH_ENABLED)
int mem_base;
void *ret_val;
xmlXPathParserContextPtr ctxt;
int n_ctxt;
for (n_ctxt = 0; n_ctxt < gen_nb_xmlXPathParserContextPtr; n_ctxt++) {
mem_base = xmlMemBlocks();
ctxt = gen_xmlXPathParserContext... | [
0,
0
] |
Chromium | third_party/libxml/src/testapi.c | static int test_xmlXPathRegisterVariableLookup(void) {
int test_ret = 0;
return (test_ret);
} | [
0,
0
] |
Chromium | third_party/libxml/src/testapi.c | static int test_xmlXPathRegisterVariableNS(void) {
int test_ret = 0;
#if defined(LIBXML_XPATH_ENABLED)
int mem_base;
int ret_val;
xmlXPathContextPtr ctxt;
int n_ctxt;
xmlChar *name; /* the variable name */
int n_name;
xmlChar *ns_uri; /* the variable namespace URI */
int n_ns_uri;
xmlXPathObjectPtr... | [
0,
0
] |
Chromium | third_party/libxml/src/testapi.c | static int test_xmlXPathRegisteredNsCleanup(void) {
int test_ret = 0;
#if defined(LIBXML_XPATH_ENABLED)
int mem_base;
xmlXPathContextPtr ctxt;
int n_ctxt;
for (n_ctxt = 0; n_ctxt < gen_nb_xmlXPathContextPtr; n_ctxt++) {
mem_base = xmlMemBlocks();
ctxt = gen_xmlXPathContextPtr(n_ctxt, 0);
xmlXPa... | [
0,
0
] |
Chromium | third_party/libxml/src/testapi.c | static int test_xmlXPathSubstringBeforeFunction(void) {
int test_ret = 0;
#if defined(LIBXML_XPATH_ENABLED)
int mem_base;
xmlXPathParserContextPtr ctxt;
int n_ctxt;
int nargs; /* the number of arguments */
int n_nargs;
for (n_ctxt = 0; n_ctxt < gen_nb_xmlXPathParserContextPtr; n_ctxt++) {
for (n_nar... | [
0,
0
] |
Chromium | third_party/libxml/src/testapi.c | static int test_xmlXPathVariableLookup(void) {
int test_ret = 0;
#if defined(LIBXML_XPATH_ENABLED)
int mem_base;
xmlXPathObjectPtr ret_val;
xmlXPathContextPtr ctxt;
int n_ctxt;
xmlChar *name; /* the variable name */
int n_name;
for (n_ctxt = 0; n_ctxt < gen_nb_xmlXPathContextPtr; n_ctxt++) {
for (... | [
0,
0
] |
Chromium | third_party/libxml/src/testapi.c | static int test_xmlXPathWrapExternal(void) {
int test_ret = 0;
#if defined(LIBXML_XPATH_ENABLED)
int mem_base;
xmlXPathObjectPtr ret_val;
void *val;
int n_val;
for (n_val = 0; n_val < gen_nb_void_ptr; n_val++) {
mem_base = xmlMemBlocks();
val = gen_void_ptr(n_val, 0);
ret_val = xmlXPathWrapEx... | [
0,
0
] |
Chromium | third_party/libxml/src/testapi.c | static int test_xmlXPathWrapNodeSet(void) {
int test_ret = 0;
#if defined(LIBXML_XPATH_ENABLED)
int mem_base;
xmlXPathObjectPtr ret_val;
xmlNodeSetPtr val;
int n_val;
for (n_val = 0; n_val < gen_nb_xmlNodeSetPtr; n_val++) {
mem_base = xmlMemBlocks();
val = gen_xmlNodeSetPtr(n_val, 0);
ret_val... | [
0,
0
] |
Chromium | third_party/libxml/src/testapi.c | static int test_xmlXPtrEval(void) {
int test_ret = 0;
#if defined(LIBXML_XPTR_ENABLED)
int mem_base;
xmlXPathObjectPtr ret_val;
xmlChar *str;
int n_str;
xmlXPathContextPtr ctx; /* the XPointer context */
int n_ctx;
for (n_str = 0; n_str < gen_nb_const_xmlChar_ptr; n_str++) {
for (n_ctx = 0; n_ctx ... | [
0,
0
] |
Chromium | third_party/libxml/src/testapi.c | static int test_xmlXPtrEvalRangePredicate(void) {
int test_ret = 0;
#if defined(LIBXML_XPTR_ENABLED)
int mem_base;
xmlXPathParserContextPtr ctxt;
int n_ctxt;
for (n_ctxt = 0; n_ctxt < gen_nb_xmlXPathParserContextPtr; n_ctxt++) {
mem_base = xmlMemBlocks();
ctxt = gen_xmlXPathParserContextPtr(n_ctxt, ... | [
0,
0
] |
Chromium | third_party/libxml/src/testapi.c | static int test_xmlXPtrLocationSetAdd(void) {
int test_ret = 0;
#if defined(LIBXML_XPTR_ENABLED)
int mem_base;
xmlLocationSetPtr cur;
int n_cur;
xmlXPathObjectPtr val; /* a new xmlXPathObjectPtr */
int n_val;
for (n_cur = 0; n_cur < gen_nb_xmlLocationSetPtr; n_cur++) {
for (n_val = 0; n_val < gen_nb... | [
0,
0
] |
Chromium | third_party/libxml/src/testapi.c | static int test_xmlXPtrNewRange(void) {
int test_ret = 0;
#if defined(LIBXML_XPTR_ENABLED)
int mem_base;
xmlXPathObjectPtr ret_val;
xmlNodePtr start;
int n_start;
int startindex; /* the start index */
int n_startindex;
xmlNodePtr end; /* the ending point */
int n_end;
int endindex; /* the ending in... | [
0,
0
] |
Chromium | third_party/libxml/src/testapi.c | static int test_xmlXPtrNewRangePointNode(void) {
int test_ret = 0;
#if defined(LIBXML_XPTR_ENABLED)
int mem_base;
xmlXPathObjectPtr ret_val;
xmlXPathObjectPtr start;
int n_start;
xmlNodePtr end; /* the ending node */
int n_end;
for (n_start = 0; n_start < gen_nb_xmlXPathObjectPtr; n_start++) {
for... | [
0,
0
] |
Chromium | third_party/libxml/src/testapi.c |
static int test_xpointer(void) {
int test_ret = 0;
if (quiet == 0)
printf("Testing xpointer : 17 of 21 functions ...\n");
test_ret += test_xmlXPtrBuildNodeList();
test_ret += test_xmlXPtrEval();
test_ret += test_xmlXPtrEvalRangePredicate();
test_ret += test_xmlXPtrLocationSetAdd();
test_ret += test_... | [
0,
0
] |
Chromium | third_party/libxml/src/testAutomata.c | int main(int argc ATTRIBUTE_UNUSED, char **argv ATTRIBUTE_UNUSED) {
printf("%s : Automata support not compiled in\n", argv[0]);
return (0);
}
#endif | [
0,
0
] |
Chromium | third_party/libxml/src/testC14N.c | static int test_c14n(const char *xml_filename, int with_comments, int mode,
const char *xpath_filename,
xmlChar **inclusive_namespaces) {
xmlDocPtr doc;
xmlXPathObjectPtr xpath = NULL;
xmlChar *result = NULL;
int ret;
xmlLoadExtDtdDefaultValue = XML_DETECT_IDS | XML_... | [
0,
0
] |
Chromium | third_party/libxml/src/testC14N.c | static xmlChar **parse_list(xmlChar *str) {
xmlChar **buffer;
xmlChar **out = NULL;
int buffer_size = 0;
int len;
if (str == NULL) {
return (NULL);
}
len = xmlStrlen(str);
if ((str[0] == '\'') && (str[len - 1] == '\'')) {
str[len - 1] = '\0';
str++;
}
buffer_size = 1000;
buffer = (x... | [
1,
0
] |
Chromium | third_party/libxml/src/testchar.c | static void testCharRangeByte1(xmlParserCtxtPtr ctxt, char *data) {
int i = 0;
int len, c;
data[1] = 0;
data[2] = 0;
data[3] = 0;
for (i = 0; i <= 0xFF; i++) {
data[0] = i;
ctxt->charset = XML_CHAR_ENCODING_UTF8;
lastError = 0;
c = xmlCurrentChar(ctxt, &len);
if ((i == 0) || (i >= 0x80... | [
1,
0
] |
Chromium | third_party/libxml/src/testdict.c | static void clean_strings(void) {
int i;
for (i = 0; i < NB_STRINGS_MAX; i++) {
if (strings1[i] != NULL)
xmlFree(strings1[i]);
}
for (i = 0; i < NB_STRINGS_MAX; i++) {
if (strings2[i] != NULL)
xmlFree(strings2[i]);
}
} | [
0,
0
] |
Chromium | third_party/libxml/src/testHTML.c | static int hasInternalSubsetDebug(void *ctx ATTRIBUTE_UNUSED) {
fprintf(stdout, "SAX.hasInternalSubset()\n");
return (0);
} | [
0,
0
] |
Chromium | third_party/libxml/src/testHTML.c | static void entityDeclDebug(void *ctx ATTRIBUTE_UNUSED, const xmlChar *name,
int type, const xmlChar *publicId,
const xmlChar *systemId, xmlChar *content) {
fprintf(stdout, "SAX.entityDecl(%s, %d, %s, %s, %s)\n", name, type, publicId,
systemId, content... | [
0,
0
] |
Chromium | third_party/libxml/src/testHTML.c | static void attributeDeclDebug(void *ctx ATTRIBUTE_UNUSED, const xmlChar *elem,
const xmlChar *name, int type, int def,
const xmlChar *defaultValue,
xmlEnumerationPtr tree ATTRIBUTE_UNUSED) {
fprintf(stdout, "SAX.attributeDec... | [
0,
0
] |
Chromium | third_party/libxml/src/testHTML.c | static void elementDeclDebug(void *ctx ATTRIBUTE_UNUSED, const xmlChar *name,
int type,
xmlElementContentPtr content ATTRIBUTE_UNUSED) {
fprintf(stdout, "SAX.elementDecl(%s, %d, ...)\n", name, type);
} | [
0,
0
] |
Chromium | third_party/libxml/src/testHTML.c | static void charactersDebug(void *ctx ATTRIBUTE_UNUSED, const xmlChar *ch,
int len) {
unsigned char output[40];
int inlen = len, outlen = 30;
htmlEncodeEntities(output, &outlen, ch, &inlen, 0);
output[outlen] = 0;
fprintf(stdout, "SAX.characters(%s, %d)\n", output, len);
} | [
0,
0
] |
Chromium | third_party/libxml/src/testHTML.c | static void referenceDebug(void *ctx ATTRIBUTE_UNUSED, const xmlChar *name) {
fprintf(stdout, "SAX.reference(%s)\n", name);
} | [
0,
0
] |
Chromium | third_party/libxml/src/testHTML.c | static void XMLCDECL warningDebug(void *ctx ATTRIBUTE_UNUSED, const char *msg,
...) {
va_list args;
va_start(args, msg);
fprintf(stdout, "SAX.warning: ");
vfprintf(stdout, msg, args);
va_end(args);
} | [
0,
0
] |
Chromium | third_party/libxml/src/testHTML.c | static void XMLCDECL errorDebug(void *ctx ATTRIBUTE_UNUSED, const char *msg,
...) {
va_list args;
va_start(args, msg);
fprintf(stdout, "SAX.error: ");
vfprintf(stdout, msg, args);
va_end(args);
} | [
0,
0
] |
Chromium | third_party/libxml/src/testlimits.c | static void internalSubsetCallback(void *ctx ATTRIBUTE_UNUSED,
const xmlChar *name ATTRIBUTE_UNUSED,
const xmlChar *ExternalID ATTRIBUTE_UNUSED,
const xmlChar *SystemID ATTRIBUTE_UNUSED) {
callbacks++;
return;
} | [
0,
0
] |
Chromium | third_party/libxml/src/testlimits.c | static void elementDeclCallback(void *ctx ATTRIBUTE_UNUSED,
const xmlChar *name ATTRIBUTE_UNUSED,
int type ATTRIBUTE_UNUSED,
xmlElementContentPtr content ATTRIBUTE_UNUSED) {
callbacks++;
return;
} | [
0,
0
] |
Chromium | third_party/libxml/src/testlimits.c | static void charactersCallback(void *ctx ATTRIBUTE_UNUSED,
const xmlChar *ch ATTRIBUTE_UNUSED,
int len ATTRIBUTE_UNUSED) {
callbacks++;
return;
} | [
0,
0
] |
Chromium | third_party/libxml/src/testlimits.c | static void commentCallback(void *ctx ATTRIBUTE_UNUSED,
const xmlChar *value ATTRIBUTE_UNUSED) {
callbacks++;
return;
} | [
0,
0
] |
Chromium | third_party/libxml/src/testlimits.c | static void XMLCDECL warningCallback(void *ctx ATTRIBUTE_UNUSED,
const char *msg ATTRIBUTE_UNUSED, ...) {
callbacks++;
return;
} | [
0,
0
] |
Chromium | third_party/libxml/src/testlimits.c | static void XMLCDECL errorCallback(void *ctx ATTRIBUTE_UNUSED,
const char *msg ATTRIBUTE_UNUSED, ...) {
callbacks++;
return;
} | [
0,
0
] |
Chromium | third_party/libxml/src/testlimits.c | static void startElementNsCallback(
void *ctx ATTRIBUTE_UNUSED, const xmlChar *localname ATTRIBUTE_UNUSED,
const xmlChar *prefix ATTRIBUTE_UNUSED, const xmlChar *URI ATTRIBUTE_UNUSED,
int nb_namespaces ATTRIBUTE_UNUSED,
const xmlChar **namespaces ATTRIBUTE_UNUSED,
int nb_attributes ATTRIBUTE_UNUSED,... | [
0,
0
] |
Chromium | third_party/libxml/src/testlimits.c | static int launchTests(testDescPtr tst, unsigned int test) {
int res = 0, err = 0;
unsigned int i, j;
size_t limit;
int fail;
if (tst == NULL)
return (-1);
for (i = 0; i < sizeof(limitDescriptions) / sizeof(limitDescriptions[0]);
i++) {
limit = limitDescriptions[i].limit;
fail = limitDe... | [
1,
0
] |
Chromium | third_party/libxml/src/testlimits.c | static int launchCrazy(unsigned int test, int fail) {
int res = 0, err = 0;
crazy_indx = test;
res = readerTest("crazy::test", XML_MAX_LOOKUP_LIMIT - CHUNK, 0, fail);
if (res != 0) {
nb_errors++;
err++;
}
if (tests_quiet == 0)
fprintf(stderr, "%c", crazy[test]);
return (err);
} | [
0,
0
] |
Chromium | third_party/libxml/src/testModule.c | int main(int argc ATTRIBUTE_UNUSED, char **argv ATTRIBUTE_UNUSED) {
printf("%s : Module support not compiled in\n", argv[0]);
return (0);
}
#endif | [
0,
0
] |
Chromium | third_party/libxml/src/testReader.c |
static void processNode(xmlTextReaderPtr reader) {
int type;
type = xmlTextReaderNodeType(reader);
if (count) {
if (type == 1) {
elem++;
attrs += xmlTextReaderAttributeCount(reader);
}
}
} | [
0,
0
] |
Chromium | third_party/libxml/src/testrecurse.c | static void xmlParserPrintFileContextInternal(xmlParserInputPtr input,
xmlGenericErrorFunc chanl,
void *data) {
const xmlChar *cur, *base;
unsigned int n, col;
xmlChar content[81]; /* space for 80 chars + line terminator *... | [
1,
0
] |
Chromium | third_party/libxml/src/testrecurse.c |
static int checkTestFile(const char *filename) {
struct stat buf;
if (stat(filename, &buf) == -1)
return (0);
#if defined(_WIN32) && !defined(__CYGWIN__)
if (!(buf.st_mode & _S_IFREG))
return (0);
#else
if (!S_ISREG(buf.st_mode))
return (0);
#endif
return (1);
} | [
0,
0
] |
Chromium | third_party/libxml/src/testrecurse.c | static int notRecursiveDetectTest(const char *filename,
const char *result ATTRIBUTE_UNUSED,
const char *err ATTRIBUTE_UNUSED,
int options ATTRIBUTE_UNUSED) {
xmlDocPtr doc;
xmlParserCtxtPtr ctxt;
int res = 0;
... | [
0,
0
] |
Chromium | third_party/libxml/src/testrecurse.c | static int notRecursiveHugeTest(const char *filename ATTRIBUTE_UNUSED,
const char *result ATTRIBUTE_UNUSED,
const char *err ATTRIBUTE_UNUSED,
int options ATTRIBUTE_UNUSED) {
xmlTextReaderPtr reader;
int res = 0;
int re... | [
0,
0
] |
Chromium | third_party/libxml/src/testRegexp.c |
static void testReduce(xmlExpCtxtPtr ctxt, xmlExpNodePtr expr,
const char *tst) {
xmlBufferPtr xmlExpBuf;
xmlExpNodePtr sub, deriv;
sub = xmlExpParse(ctxt, tst);
if (sub == NULL) {
printf("Subset %s failed to parse\n", tst);
return;
}
xmlExpBuf = xmlBufferCreate();
xmlExpD... | [
0,
0
] |
Chromium | third_party/libxml/src/testRegexp.c |
static void exprDebug(xmlExpCtxtPtr ctxt, xmlExpNodePtr expr) {
xmlBufferPtr xmlExpBuf;
xmlExpNodePtr deriv;
const char *list[40];
int ret;
xmlExpBuf = xmlBufferCreate();
if (expr == NULL) {
printf("Failed to parse\n");
return;
}
xmlExpDump(xmlExpBuf, expr);
printf("Parsed as: %s\n", (const... | [
0,
0
] |
Chromium | third_party/libxml/src/testSAX.c | static xmlEntityPtr getParameterEntityDebug(void *ctx ATTRIBUTE_UNUSED,
const xmlChar *name) {
callbacks++;
if (quiet)
return (NULL);
fprintf(stdout, "SAX.getParameterEntity(%s)\n", name);
return (NULL);
} | [
0,
0
] |
Chromium | third_party/libxml/src/testSAX.c | static void attributeDeclDebug(void *ctx ATTRIBUTE_UNUSED, const xmlChar *elem,
const xmlChar *name, int type, int def,
const xmlChar *defaultValue,
xmlEnumerationPtr tree) {
callbacks++;
if (quiet)
return;
if (defaul... | [
1,
0
] |
Chromium | third_party/libxml/src/testSAX.c | static void charactersDebug(void *ctx ATTRIBUTE_UNUSED, const xmlChar *ch,
int len) {
char output[40];
int i;
callbacks++;
if (quiet)
return;
for (i = 0; (i < len) && (i < 30); i++)
output[i] = ch[i];
output[i] = 0;
fprintf(stdout, "SAX.characters(%s, %d)\n", output, ... | [
0,
0
] |
Chromium | third_party/libxml/src/testSAX.c | static void processingInstructionDebug(void *ctx ATTRIBUTE_UNUSED,
const xmlChar *target,
const xmlChar *data) {
callbacks++;
if (quiet)
return;
if (data != NULL)
fprintf(stdout, "SAX.processingInstruction(%s, %s)\n", (char *)ta... | [
0,
0
] |
Chromium | third_party/libxml/src/testSAX.c | static void XMLCDECL errorDebug(void *ctx ATTRIBUTE_UNUSED, const char *msg,
...) {
va_list args;
callbacks++;
if (quiet)
return;
va_start(args, msg);
fprintf(stdout, "SAX.error: ");
vfprintf(stdout, msg, args);
va_end(args);
} | [
0,
0
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.