Projectname large_stringclasses 15
values | Filepath large_stringlengths 4 106 ⌀ | Function large_stringlengths 11 3.45k | Label list |
|---|---|---|---|
Chromium | third_party/libxml/src/xmlunicode.c | int xmlUCSIsByzantineMusicalSymbols(int code) {
return (((code >= 0x1D000) && (code <= 0x1D0FF)));
} | [
0,
0
] |
Chromium | third_party/libxml/src/xmlunicode.c | int xmlUCSIsCJKUnifiedIdeographs(int code) {
return (((code >= 0x4E00) && (code <= 0x9FFF)));
} | [
0,
0
] |
Chromium | third_party/libxml/src/xmlunicode.c | int xmlUCSIsCherokee(int code) {
return (((code >= 0x13A0) && (code <= 0x13FF)));
} | [
0,
0
] |
Chromium | third_party/libxml/src/xmlunicode.c | int xmlUCSIsCombiningDiacriticalMarksforSymbols(int code) {
return (((code >= 0x20D0) && (code <= 0x20FF)));
} | [
0,
0
] |
Chromium | third_party/libxml/src/xmlunicode.c | int xmlUCSIsCypriotSyllabary(int code) {
return (((code >= 0x10800) && (code <= 0x1083F)));
} | [
0,
0
] |
Chromium | third_party/libxml/src/xmlunicode.c | int xmlUCSIsDeseret(int code) {
return (((code >= 0x10400) && (code <= 0x1044F)));
} | [
0,
0
] |
Chromium | third_party/libxml/src/xmlunicode.c | int xmlUCSIsGothic(int code) {
return (((code >= 0x10330) && (code <= 0x1034F)));
} | [
0,
0
] |
Chromium | third_party/libxml/src/xmlunicode.c | int xmlUCSIsGreekandCoptic(int code) {
return (((code >= 0x0370) && (code <= 0x03FF)));
} | [
0,
0
] |
Chromium | third_party/libxml/src/xmlunicode.c | int xmlUCSIsHalfwidthandFullwidthForms(int code) {
return (((code >= 0xFF00) && (code <= 0xFFEF)));
} | [
0,
0
] |
Chromium | third_party/libxml/src/xmlunicode.c | int xmlUCSIsHangulJamo(int code) {
return (((code >= 0x1100) && (code <= 0x11FF)));
} | [
0,
0
] |
Chromium | third_party/libxml/src/xmlunicode.c | int xmlUCSIsHangulSyllables(int code) {
return (((code >= 0xAC00) && (code <= 0xD7AF)));
} | [
0,
0
] |
Chromium | third_party/libxml/src/xmlunicode.c | int xmlUCSIsIdeographicDescriptionCharacters(int code) {
return (((code >= 0x2FF0) && (code <= 0x2FFF)));
} | [
0,
0
] |
Chromium | third_party/libxml/src/xmlunicode.c | int xmlUCSIsKhmer(int code) { return (((code >= 0x1780) && (code <= 0x17FF))); } | [
0,
0
] |
Chromium | third_party/libxml/src/xmlunicode.c | int xmlUCSIsLatinExtendedA(int code) {
return (((code >= 0x0100) && (code <= 0x017F)));
} | [
0,
0
] |
Chromium | third_party/libxml/src/xmlunicode.c | int xmlUCSIsMalayalam(int code) {
return (((code >= 0x0D00) && (code <= 0x0D7F)));
} | [
0,
0
] |
Chromium | third_party/libxml/src/xmlunicode.c | int xmlUCSIsMiscellaneousMathematicalSymbolsA(int code) {
return (((code >= 0x27C0) && (code <= 0x27EF)));
} | [
0,
0
] |
Chromium | third_party/libxml/src/xmlunicode.c | int xmlUCSIsMusicalSymbols(int code) {
return (((code >= 0x1D100) && (code <= 0x1D1FF)));
} | [
0,
0
] |
Chromium | third_party/libxml/src/xmlunicode.c | int xmlUCSIsMyanmar(int code) {
return (((code >= 0x1000) && (code <= 0x109F)));
} | [
0,
0
] |
Chromium | third_party/libxml/src/xmlunicode.c | int xmlUCSIsOldItalic(int code) {
return (((code >= 0x10300) && (code <= 0x1032F)));
} | [
0,
0
] |
Chromium | third_party/libxml/src/xmlunicode.c | int xmlUCSIsRunic(int code) { return (((code >= 0x16A0) && (code <= 0x16FF))); } | [
0,
0
] |
Chromium | third_party/libxml/src/xmlunicode.c | int xmlUCSIsSuperscriptsandSubscripts(int code) {
return (((code >= 0x2070) && (code <= 0x209F)));
} | [
0,
0
] |
Chromium | third_party/libxml/src/xmlunicode.c | int xmlUCSIsSupplementaryPrivateUseAreaA(int code) {
return (((code >= 0xF0000) && (code <= 0xFFFFF)));
} | [
0,
0
] |
Chromium | third_party/libxml/src/xmlunicode.c | int xmlUCSIsSupplementaryPrivateUseAreaB(int code) {
return (((code >= 0x100000) && (code <= 0x10FFFF)));
} | [
0,
0
] |
Chromium | third_party/libxml/src/xmlunicode.c | int xmlUCSIsSyriac(int code) {
return (((code >= 0x0700) && (code <= 0x074F)));
} | [
0,
0
] |
Chromium | third_party/libxml/src/xmlunicode.c | int xmlUCSIsThai(int code) { return (((code >= 0x0E00) && (code <= 0x0E7F))); } | [
0,
0
] |
Chromium | third_party/libxml/src/xmlunicode.c | int xmlUCSIsVariationSelectorsSupplement(int code) {
return (((code >= 0xE0100) && (code <= 0xE01EF)));
} | [
0,
0
] |
Chromium | third_party/libxml/src/xmlunicode.c | int xmlUCSIsYiRadicals(int code) {
return (((code >= 0xA490) && (code <= 0xA4CF)));
} | [
0,
0
] |
Chromium | third_party/libxml/src/xmlunicode.c | int xmlUCSIsYijingHexagramSymbols(int code) {
return (((code >= 0x4DC0) && (code <= 0x4DFF)));
} | [
0,
0
] |
Chromium | third_party/libxml/src/xmlunicode.c | int xmlUCSIsCatCc(int code) {
return (((code >= 0x0) && (code <= 0x1f)) ||
((code >= 0x7f) && (code <= 0x9f)));
} | [
0,
0
] |
Chromium | third_party/libxml/src/xmlunicode.c | int xmlUCSIsCatCo(int code) {
return ((code == 0xe000) || (code == 0xf8ff) || (code == 0xf0000) ||
(code == 0xffffd) || (code == 0x100000) || (code == 0x10fffd));
} | [
0,
0
] |
Chromium | third_party/libxml/src/xmlunicode.c | int xmlUCSIsCatLm(int code) {
return (xmlCharInRange((unsigned int)code, &xmlLmG));
} | [
0,
0
] |
Chromium | third_party/libxml/src/xmlunicode.c | int xmlUCSIsCatM(int code) {
return (xmlCharInRange((unsigned int)code, &xmlMG));
} | [
0,
0
] |
Chromium | third_party/libxml/src/xmlunicode.c | int xmlUCSIsCatMc(int code) {
return (xmlCharInRange((unsigned int)code, &xmlMcG));
} | [
0,
0
] |
Chromium | third_party/libxml/src/xmlunicode.c | int xmlUCSIsCatN(int code) {
return (xmlCharInRange((unsigned int)code, &xmlNG));
} | [
0,
0
] |
Chromium | third_party/libxml/src/xmlunicode.c | int xmlUCSIsCatPc(int code) {
return ((code == 0x5f) || ((code >= 0x203f) && (code <= 0x2040)) ||
(code == 0x2054) || (code == 0x30fb) ||
((code >= 0xfe33) && (code <= 0xfe34)) ||
((code >= 0xfe4d) && (code <= 0xfe4f)) || (code == 0xff3f) ||
(code == 0xff65));
} | [
0,
0
] |
Chromium | third_party/libxml/src/xmlunicode.c | int xmlUCSIsCatSc(int code) {
return (xmlCharInRange((unsigned int)code, &xmlScG));
} | [
0,
0
] |
Chromium | third_party/libxml/src/xmlunicode.c | int xmlUCSIsCatZ(int code) {
return (xmlCharInRange((unsigned int)code, &xmlZG));
} | [
0,
0
] |
Chromium | third_party/libxml/src/xmlunicode.c | int xmlUCSIsCatZl(int code) { return ((code == 0x2028)); } | [
0,
0
] |
Chromium | third_party/libxml/src/xmlunicode.c | int xmlUCSIsCatZs(int code) {
return ((code == 0x20) || (code == 0xa0) || (code == 0x1680) ||
(code == 0x180e) || ((code >= 0x2000) && (code <= 0x200a)) ||
(code == 0x202f) || (code == 0x205f) || (code == 0x3000));
} | [
0,
0
] |
Chromium | third_party/libxml/src/xmlwriter.c | xmlTextWriterPtr xmlNewTextWriterFilename(const char *uri, int compression) {
xmlTextWriterPtr ret;
xmlOutputBufferPtr out;
out = xmlOutputBufferCreateFilename(uri, NULL, compression);
if (out == NULL) {
xmlWriterErrMsg(NULL, XML_IO_EIO,
"xmlNewTextWriterFilename : cannot open uri\n");
... | [
0,
0
] |
Chromium | third_party/libxml/src/xmlwriter.c | xmlTextWriterPtr xmlNewTextWriterMemory(xmlBufferPtr buf,
int compression ATTRIBUTE_UNUSED) {
xmlTextWriterPtr ret;
xmlOutputBufferPtr out;
out = xmlOutputBufferCreateBuffer(buf, NULL);
if (out == NULL) {
xmlWriterErrMsg(NULL, XML_ERR_NO_MEMORY,
... | [
0,
1
] |
Chromium | third_party/libxml/src/xmlwriter.c | xmlTextWriterPtr xmlNewTextWriterPushParser(xmlParserCtxtPtr ctxt,
int compression ATTRIBUTE_UNUSED) {
xmlTextWriterPtr ret;
xmlOutputBufferPtr out;
if (ctxt == NULL) {
xmlWriterErrMsg(NULL, XML_ERR_INTERNAL_ERROR,
"xmlNewTextWriterPushParser : ... | [
0,
1
] |
Chromium | third_party/libxml/src/xmlwriter.c | xmlTextWriterPtr xmlNewTextWriterDoc(xmlDocPtr *doc, int compression) {
xmlTextWriterPtr ret;
xmlSAXHandler saxHandler;
xmlParserCtxtPtr ctxt;
memset(&saxHandler, '\0', sizeof(saxHandler));
xmlSAX2InitDefaultSAXHandler(&saxHandler, 1);
saxHandler.startDocument = xmlTextWriterStartDocumentCallback;
saxHan... | [
1,
0
] |
Chromium | third_party/libxml/src/xmlwriter.c | int xmlTextWriterEndDocument(xmlTextWriterPtr writer) {
int count;
int sum;
xmlLinkPtr lk;
xmlTextWriterStackEntry *p;
if (writer == NULL) {
xmlWriterErrMsg(writer, XML_ERR_INTERNAL_ERROR,
"xmlTextWriterEndDocument : invalid writer!\n");
return -1;
}
sum = 0;
while ((lk = x... | [
0,
0
] |
Chromium | third_party/libxml/src/xmlwriter.c | int xmlTextWriterEndComment(xmlTextWriterPtr writer) {
int count;
int sum;
xmlLinkPtr lk;
xmlTextWriterStackEntry *p;
if (writer == NULL) {
xmlWriterErrMsg(writer, XML_ERR_INTERNAL_ERROR,
"xmlTextWriterEndComment : invalid writer!\n");
return -1;
}
lk = xmlListFront(writer->n... | [
0,
0
] |
Chromium | third_party/libxml/src/xmlwriter.c | int XMLCDECL xmlTextWriterWriteFormatRaw(xmlTextWriterPtr writer,
const char *format, ...) {
int rc;
va_list ap;
va_start(ap, format);
rc = xmlTextWriterWriteVFormatRaw(writer, format, ap);
va_end(ap);
return rc;
} | [
0,
0
] |
Chromium | third_party/libxml/src/xmlwriter.c | int xmlTextWriterWriteVFormatString(xmlTextWriterPtr writer, const char *format,
va_list argptr) {
int rc;
xmlChar *buf;
if ((writer == NULL) || (format == NULL))
return -1;
buf = xmlTextWriterVSprintf(format, argptr);
if (buf == NULL)
return -1;
rc = xmlTextWr... | [
0,
0
] |
Chromium | third_party/libxml/src/xmlwriter.c | int xmlTextWriterWriteString(xmlTextWriterPtr writer, const xmlChar *content) {
int count;
int sum;
xmlLinkPtr lk;
xmlTextWriterStackEntry *p;
xmlChar *buf;
if ((writer == NULL) || (content == NULL))
return -1;
sum = 0;
buf = (xmlChar *)content;
lk = xmlListFront(writer->nodes);
if (lk != 0) {... | [
1,
0
] |
Chromium | third_party/libxml/src/xmlwriter.c | static int xmlOutputBufferWriteBinHex(xmlOutputBufferPtr out, int len,
const unsigned char *data) {
int count;
int sum;
static char hex[16] = {'0', '1', '2', '3', '4', '5', '6', '7',
'8', '9', 'A', 'B', 'C', 'D', 'E', 'F'};
int i;
if ((out == NUL... | [
0,
1
] |
Chromium | third_party/libxml/src/xmlwriter.c | int xmlTextWriterStartAttribute(xmlTextWriterPtr writer, const xmlChar *name) {
int count;
int sum;
xmlLinkPtr lk;
xmlTextWriterStackEntry *p;
if ((writer == NULL) || (name == NULL) || (*name == '\0'))
return -1;
sum = 0;
lk = xmlListFront(writer->nodes);
if (lk == 0)
return -1;
p = (xmlTex... | [
0,
0
] |
Chromium | third_party/libxml/src/xmlwriter.c | int xmlTextWriterWriteVFormatElement(xmlTextWriterPtr writer,
const xmlChar *name, const char *format,
va_list argptr) {
int rc;
xmlChar *buf;
if (writer == NULL)
return -1;
buf = xmlTextWriterVSprintf(format, argptr);
if (buf == ... | [
0,
0
] |
Chromium | third_party/libxml/src/xmlwriter.c | int xmlTextWriterWriteElement(xmlTextWriterPtr writer, const xmlChar *name,
const xmlChar *content) {
int count;
int sum;
sum = 0;
count = xmlTextWriterStartElement(writer, name);
if (count == -1)
return -1;
sum += count;
if (content != NULL) {
count = xmlTextWriterW... | [
0,
0
] |
Chromium | third_party/libxml/src/xmlwriter.c | int XMLCDECL xmlTextWriterWriteFormatElementNS(xmlTextWriterPtr writer,
const xmlChar *prefix,
const xmlChar *name,
const xmlChar *namespaceURI,
... | [
0,
0
] |
Chromium | third_party/libxml/src/xmlwriter.c | int xmlTextWriterEndCDATA(xmlTextWriterPtr writer) {
int count;
int sum;
xmlLinkPtr lk;
xmlTextWriterStackEntry *p;
if (writer == NULL)
return -1;
lk = xmlListFront(writer->nodes);
if (lk == 0)
return -1;
p = (xmlTextWriterStackEntry *)xmlLinkGetData(lk);
if (p == 0)
return -1;
sum =... | [
0,
0
] |
Chromium | third_party/libxml/src/xmlwriter.c | int xmlTextWriterWriteVFormatDTD(xmlTextWriterPtr writer, const xmlChar *name,
const xmlChar *pubid, const xmlChar *sysid,
const char *format, va_list argptr) {
int rc;
xmlChar *buf;
if (writer == NULL)
return -1;
buf = xmlTextWriterVSprint... | [
0,
0
] |
Chromium | third_party/libxml/src/xmlwriter.c | int xmlTextWriterEndDTDAttlist(xmlTextWriterPtr writer) {
int count;
int sum;
xmlLinkPtr lk;
xmlTextWriterStackEntry *p;
if (writer == NULL)
return -1;
sum = 0;
lk = xmlListFront(writer->nodes);
if (lk == 0)
return -1;
p = (xmlTextWriterStackEntry *)xmlLinkGetData(lk);
if (p == 0)
ret... | [
0,
0
] |
Chromium | third_party/libxml/src/xmlwriter.c | int xmlTextWriterWriteDTDInternalEntity(xmlTextWriterPtr writer, int pe,
const xmlChar *name,
const xmlChar *content) {
int count;
int sum;
if ((name == NULL) || (*name == '\0') || (content == NULL))
return -1;
sum = 0;
coun... | [
0,
0
] |
Chromium | third_party/libxml/src/xmlwriter.c | int xmlTextWriterFlush(xmlTextWriterPtr writer) {
int count;
if (writer == NULL)
return -1;
if (writer->out == NULL)
count = 0;
else
count = xmlOutputBufferFlush(writer->out);
return count;
} | [
1,
0
] |
Chromium | third_party/libxml/src/xmlwriter.c | int xmlTextWriterSetIndent(xmlTextWriterPtr writer, int indent) {
if ((writer == NULL) || (indent < 0))
return -1;
writer->indent = indent;
writer->doindent = 1;
return 0;
} | [
0,
0
] |
Chromium | third_party/libxml/src/xmlwriter.c | int xmlTextWriterSetIndentString(xmlTextWriterPtr writer, const xmlChar *str) {
if ((writer == NULL) || (!str))
return -1;
if (writer->ichar != NULL)
xmlFree(writer->ichar);
writer->ichar = xmlStrdup(str);
if (!writer->ichar)
return -1;
else
return 0;
} | [
0,
0
] |
Chromium | third_party/libxml/src/xpath.c | static void xmlXPathErrMemory(xmlXPathContextPtr ctxt, const char *extra) {
if (ctxt != NULL) {
xmlResetError(&ctxt->lastError);
if (extra) {
xmlChar buf[200];
xmlStrPrintf(buf, 200, "Memory allocation failed : %s\n", extra);
ctxt->lastError.message = (char *)xmlStrdup(buf);
} else {
... | [
0,
0
] |
Chromium | third_party/libxml/src/xpath.c | static void xmlXPathPErrMemory(xmlXPathParserContextPtr ctxt,
const char *extra) {
if (ctxt == NULL)
xmlXPathErrMemory(NULL, extra);
else {
ctxt->error = XPATH_MEMORY_ERROR;
xmlXPathErrMemory(ctxt->context, extra);
}
} | [
0,
0
] |
Chromium | third_party/libxml/src/xpath.c | static int xmlPointerListAddSize(xmlPointerListPtr list, void *item,
int initialSize) {
if (list->items == NULL) {
if (initialSize <= 0)
initialSize = 1;
list->items = (void **)xmlMalloc(initialSize * sizeof(void *));
if (list->items == NULL) {
xmlXPathErrMemor... | [
1,
1
] |
Chromium | third_party/libxml/src/xpath.c | static void xmlXPathDebugDumpNode(FILE *output, xmlNodePtr cur, int depth) {
int i;
char shift[100];
for (i = 0; ((i < depth) && (i < 25)); i++)
shift[2 * i] = shift[2 * i + 1] = ' ';
shift[2 * i] = shift[2 * i + 1] = 0;
if (cur == NULL) {
fprintf(output, "%s", shift);
fprintf(output, "Node is NU... | [
1,
0
] |
Chromium | third_party/libxml/src/xpath.c | static void xmlXPathDebugDumpNodeList(FILE *output, xmlNodePtr cur, int depth) {
xmlNodePtr tmp;
int i;
char shift[100];
for (i = 0; ((i < depth) && (i < 25)); i++)
shift[2 * i] = shift[2 * i + 1] = ' ';
shift[2 * i] = shift[2 * i + 1] = 0;
if (cur == NULL) {
fprintf(output, "%s", shift);
fprin... | [
1,
0
] |
Chromium | third_party/libxml/src/xpath.c |
static void xmlXPathDebugDumpValueTree(FILE *output, xmlNodeSetPtr cur,
int depth) {
int i;
char shift[100];
for (i = 0; ((i < depth) && (i < 25)); i++)
shift[2 * i] = shift[2 * i + 1] = ' ';
shift[2 * i] = shift[2 * i + 1] = 0;
if ((cur == NULL) || (cur->nodeNr =... | [
1,
0
] |
Chromium | third_party/libxml/src/xpath.c | void xmlXPathDebugDumpCompExpr(FILE *output, xmlXPathCompExprPtr comp,
int depth) {
int i;
char shift[100];
if ((output == NULL) || (comp == NULL))
return;
for (i = 0; ((i < depth) && (i < 25)); i++)
shift[2 * i] = shift[2 * i + 1] = ' ';
shift[2 * i] = shift[2 * i + 1... | [
1,
0
] |
Chromium | third_party/libxml/src/xpath.c | int xmlXPathContextSetCache(xmlXPathContextPtr ctxt, int active, int value,
int options) {
if (ctxt == NULL)
return (-1);
if (active) {
xmlXPathContextCachePtr cache;
if (ctxt->cache == NULL) {
ctxt->cache = xmlXPathNewCache();
if (ctxt->cache == NULL)
re... | [
0,
0
] |
Chromium | third_party/libxml/src/xpath.c | static xmlXPathObjectPtr xmlXPathCacheNewNodeSet(xmlXPathContextPtr ctxt,
xmlNodePtr val) {
if ((ctxt != NULL) && (ctxt->cache)) {
xmlXPathContextCachePtr cache = (xmlXPathContextCachePtr)ctxt->cache;
if ((cache->nodesetObjs != NULL) && (cache->nodesetObjs->nu... | [
1,
1
] |
Chromium | third_party/libxml/src/xpath.c | static xmlXPathObjectPtr xmlXPathCacheNewBoolean(xmlXPathContextPtr ctxt,
int val) {
if ((ctxt != NULL) && (ctxt->cache)) {
xmlXPathContextCachePtr cache = (xmlXPathContextCachePtr)ctxt->cache;
if ((cache->booleanObjs != NULL) && (cache->booleanObjs->number !=... | [
1,
0
] |
Chromium | third_party/libxml/src/xpath.c | static xmlXPathObjectPtr xmlXPathCacheNewFloat(xmlXPathContextPtr ctxt,
double val) {
if ((ctxt != NULL) && (ctxt->cache)) {
xmlXPathContextCachePtr cache = (xmlXPathContextCachePtr)ctxt->cache;
if ((cache->numberObjs != NULL) && (cache->numberObjs->number != 0)... | [
1,
0
] |
Chromium | third_party/libxml/src/xpath.c | static xmlXPathObjectPtr xmlXPathCacheConvertString(xmlXPathContextPtr ctxt,
xmlXPathObjectPtr val) {
xmlChar *res = NULL;
if (val == NULL)
return (xmlXPathCacheNewCString(ctxt, ""));
switch (val->type) {
case XPATH_UNDEFINED:
#ifdef DEBUG_EXPR
xmlGe... | [
1,
0
] |
Chromium | third_party/libxml/src/xpath.c | static xmlXPathObjectPtr xmlXPathCacheObjectCopy(xmlXPathContextPtr ctxt,
xmlXPathObjectPtr val) {
if (val == NULL)
return (NULL);
if (XP_HAS_CACHE(ctxt)) {
switch (val->type) {
case XPATH_NODESET:
return (xmlXPathCacheWrapNodeSet(
ctxt, ... | [
0,
0
] |
Chromium | third_party/libxml/src/xpath.c | static void xmlXPathPopFrame(xmlXPathParserContextPtr ctxt, int frame) {
if (ctxt == NULL)
return;
if (ctxt->valueNr < ctxt->valueFrame) {
xmlXPatherror(ctxt, __FILE__, __LINE__, XPATH_STACK_ERROR);
}
ctxt->valueFrame = frame;
} | [
0,
0
] |
Chromium | third_party/libxml/src/xpath.c | xmlXPathObjectPtr valuePop(xmlXPathParserContextPtr ctxt) {
xmlXPathObjectPtr ret;
if ((ctxt == NULL) || (ctxt->valueNr <= 0))
return (NULL);
if (ctxt->valueNr <= ctxt->valueFrame) {
xmlXPatherror(ctxt, __FILE__, __LINE__, XPATH_STACK_ERROR);
return (NULL);
}
ctxt->valueNr--;
if (ctxt->valueN... | [
1,
0
] |
Chromium | third_party/libxml/src/xpath.c | int xmlXPathPopBoolean(xmlXPathParserContextPtr ctxt) {
xmlXPathObjectPtr obj;
int ret;
obj = valuePop(ctxt);
if (obj == NULL) {
xmlXPathSetError(ctxt, XPATH_INVALID_OPERAND);
return (0);
}
if (obj->type != XPATH_BOOLEAN)
ret = xmlXPathCastToBoolean(obj);
else
ret = obj->boolval;
xmlXPa... | [
1,
0
] |
Chromium | third_party/libxml/src/xpath.c | xmlChar *xmlXPathPopString(xmlXPathParserContextPtr ctxt) {
xmlXPathObjectPtr obj;
xmlChar *ret;
obj = valuePop(ctxt);
if (obj == NULL) {
xmlXPathSetError(ctxt, XPATH_INVALID_OPERAND);
return (NULL);
}
ret = xmlXPathCastToString(obj);
/* TODO: needs refactoring somewhere else */
if (obj->string... | [
0,
1
] |
Chromium | third_party/libxml/src/xpath.c | xmlNodeSetPtr xmlXPathPopNodeSet(xmlXPathParserContextPtr ctxt) {
xmlXPathObjectPtr obj;
xmlNodeSetPtr ret;
if (ctxt == NULL)
return (NULL);
if (ctxt->value == NULL) {
xmlXPathSetError(ctxt, XPATH_INVALID_OPERAND);
return (NULL);
}
if (!xmlXPathStackIsNodeSet(ctxt)) {
xmlXPathSetTypeError(c... | [
1,
0
] |
Chromium | third_party/libxml/src/xpath.c | void *xmlXPathPopExternal(xmlXPathParserContextPtr ctxt) {
xmlXPathObjectPtr obj;
void *ret;
if ((ctxt == NULL) || (ctxt->value == NULL)) {
xmlXPathSetError(ctxt, XPATH_INVALID_OPERAND);
return (NULL);
}
if (ctxt->value->type != XPATH_USERS) {
xmlXPathSetTypeError(ctxt);
return (NULL);
}
... | [
1,
0
] |
Chromium | third_party/libxml/src/xpath.c | void xmlXPathNodeSetSort(xmlNodeSetPtr set) {
#ifndef WITH_TIM_SORT
int i, j, incr, len;
xmlNodePtr tmp;
#endif
if (set == NULL)
return;
#ifndef WITH_TIM_SORT
len = set->nodeNr;
for (incr = len / 2; incr > 0; incr /= 2) {
for (i = incr; i < len; i++) {
j = i - incr;
while (j >= 0) {
#if... | [
1,
0
] |
Chromium | third_party/libxml/src/xpath.c | xmlNodeSetPtr xmlXPathNodeSetCreate(xmlNodePtr val) {
xmlNodeSetPtr ret;
ret = (xmlNodeSetPtr)xmlMalloc(sizeof(xmlNodeSet));
if (ret == NULL) {
xmlXPathErrMemory(NULL, "creating nodeset\n");
return (NULL);
}
memset(ret, 0, (size_t)sizeof(xmlNodeSet));
if (val != NULL) {
ret->nodeTab =
(... | [
1,
1
] |
Chromium | third_party/libxml/src/xpath.c | int xmlXPathNodeSetContains(xmlNodeSetPtr cur, xmlNodePtr val) {
int i;
if ((cur == NULL) || (val == NULL))
return (0);
if (val->type == XML_NAMESPACE_DECL) {
for (i = 0; i < cur->nodeNr; i++) {
if (cur->nodeTab[i]->type == XML_NAMESPACE_DECL) {
xmlNsPtr ns1, ns2;
ns1 = (xmlNsPtr)v... | [
1,
0
] |
Chromium | third_party/libxml/src/xpath.c | int xmlXPathNodeSetAdd(xmlNodeSetPtr cur, xmlNodePtr val) {
int i;
if ((cur == NULL) || (val == NULL))
return (-1);
/*
* prevent duplicates
*/
for (i = 0; i < cur->nodeNr; i++)
if (cur->nodeTab[i] == val)
return (0);
/*
* grow the nodeTab if needed
*/
if (cur->nodeMax == 0) {
... | [
1,
1
] |
Chromium | third_party/libxml/src/xpath.c | int xmlXPathNodeSetAddUnique(xmlNodeSetPtr cur, xmlNodePtr val) {
if ((cur == NULL) || (val == NULL))
return (-1);
/*
* grow the nodeTab if needed
*/
if (cur->nodeMax == 0) {
cur->nodeTab =
(xmlNodePtr *)xmlMalloc(XML_NODESET_DEFAULT * sizeof(xmlNodePtr));
if (cur->nodeTab == NULL) {
... | [
1,
1
] |
Chromium | third_party/libxml/src/xpath.c | void xmlXPathNodeSetDel(xmlNodeSetPtr cur, xmlNodePtr val) {
int i;
if (cur == NULL)
return;
if (val == NULL)
return;
for (i = 0; i < cur->nodeNr; i++)
if (cur->nodeTab[i] == val)
break;
if (i >= cur->nodeNr) { /* not found */
#ifdef DEBUG
xmlGenericError(xmlGenericErrorContext,
... | [
1,
0
] |
Chromium | third_party/libxml/src/xpath.c | static void xmlXPathNodeSetKeepLast(xmlNodeSetPtr set) {
int i;
xmlNodePtr node;
if ((set == NULL) || (set->nodeNr <= 1))
return;
for (i = 0; i < set->nodeNr - 1; i++) {
node = set->nodeTab[i];
if ((node != NULL) && (node->type == XML_NAMESPACE_DECL))
xmlXPathNodeSetFreeNs((xmlNsPtr)node);
... | [
1,
0
] |
Chromium | third_party/libxml/src/xpath.c | void xmlGenericErrorContextNodeSet(FILE *output, xmlNodeSetPtr obj) {
int i;
if (output == NULL)
output = xmlGenericErrorContext;
if (obj == NULL) {
fprintf(output, "NodeSet == NULL !\n");
return;
}
if (obj->nodeNr == 0) {
fprintf(output, "NodeSet is empty\n");
return;
}
if (obj->node... | [
1,
0
] |
Chromium | third_party/libxml/src/xpath.c | xmlXPathObjectPtr xmlXPathWrapNodeSet(xmlNodeSetPtr val) {
xmlXPathObjectPtr ret;
ret = (xmlXPathObjectPtr)xmlMalloc(sizeof(xmlXPathObject));
if (ret == NULL) {
xmlXPathErrMemory(NULL, "creating node set object\n");
return (NULL);
}
memset(ret, 0, (size_t)sizeof(xmlXPathObject));
ret->type = XPATH_... | [
1,
0
] |
Chromium | third_party/libxml/src/xpath.c | xmlNodeSetPtr xmlXPathDifference(xmlNodeSetPtr nodes1, xmlNodeSetPtr nodes2) {
xmlNodeSetPtr ret;
int i, l1;
xmlNodePtr cur;
if (xmlXPathNodeSetIsEmpty(nodes2))
return (nodes1);
ret = xmlXPathNodeSetCreate(NULL);
if (xmlXPathNodeSetIsEmpty(nodes1))
return (ret);
l1 = xmlXPathNodeSetGetLength(no... | [
0,
1
] |
Chromium | third_party/libxml/src/xpath.c | xmlNodeSetPtr xmlXPathNodeLeadingSorted(xmlNodeSetPtr nodes, xmlNodePtr node) {
int i, l;
xmlNodePtr cur;
xmlNodeSetPtr ret;
if (node == NULL)
return (nodes);
ret = xmlXPathNodeSetCreate(NULL);
if (ret == NULL)
return (ret);
if (xmlXPathNodeSetIsEmpty(nodes) || (!xmlXPathNodeSetContains(nodes, n... | [
0,
1
] |
Chromium | third_party/libxml/src/xpath.c | xmlNodeSetPtr xmlXPathNodeTrailingSorted(xmlNodeSetPtr nodes, xmlNodePtr node) {
int i, l;
xmlNodePtr cur;
xmlNodeSetPtr ret;
if (node == NULL)
return (nodes);
ret = xmlXPathNodeSetCreate(NULL);
if (ret == NULL)
return (ret);
if (xmlXPathNodeSetIsEmpty(nodes) || (!xmlXPathNodeSetContains(nodes, ... | [
1,
1
] |
Chromium | third_party/libxml/src/xpath.c | int xmlXPathRegisterFuncNS(xmlXPathContextPtr ctxt, const xmlChar *name,
const xmlChar *ns_uri, xmlXPathFunction f) {
if (ctxt == NULL)
return (-1);
if (name == NULL)
return (-1);
if (ctxt->funcHash == NULL)
ctxt->funcHash = xmlHashCreate(0);
if (ctxt->funcHash == NULL)
... | [
0,
0
] |
Chromium | third_party/libxml/src/xpath.c | void xmlXPathRegisterVariableLookup(xmlXPathContextPtr ctxt,
xmlXPathVariableLookupFunc f, void *data) {
if (ctxt == NULL)
return;
ctxt->varLookupFunc = f;
ctxt->varLookupData = data;
} | [
0,
0
] |
Chromium | third_party/libxml/src/xpath.c | xmlChar *xmlXPathCastBooleanToString(int val) {
xmlChar *ret;
if (val)
ret = xmlStrdup((const xmlChar *)"true");
else
ret = xmlStrdup((const xmlChar *)"false");
return (ret);
} | [
0,
0
] |
Chromium | third_party/libxml/src/xpath.c | xmlChar *xmlXPathCastNumberToString(double val) {
xmlChar *ret;
switch (xmlXPathIsInf(val)) {
case 1:
ret = xmlStrdup((const xmlChar *)"Infinity");
break;
case -1:
ret = xmlStrdup((const xmlChar *)"-Infinity");
break;
default:
if (xmlXPathIsNaN(val)) {
ret = xmlStrdup((const xmlChar ... | [
0,
0
] |
Chromium | third_party/libxml/src/xpath.c | xmlChar *xmlXPathCastNodeSetToString(xmlNodeSetPtr ns) {
if ((ns == NULL) || (ns->nodeNr == 0) || (ns->nodeTab == NULL))
return (xmlStrdup((const xmlChar *)""));
if (ns->nodeNr > 1)
xmlXPathNodeSetSort(ns);
return (xmlXPathCastNodeToString(ns->nodeTab[0]));
} | [
1,
0
] |
Chromium | third_party/libxml/src/xpath.c | double xmlXPathCastStringToNumber(const xmlChar *val) {
return (xmlXPathStringEvalNumber(val));
} | [
0,
0
] |
Chromium | third_party/libxml/src/xpath.c | int xmlXPathCastToBoolean(xmlXPathObjectPtr val) {
int ret = 0;
if (val == NULL)
return (0);
switch (val->type) {
case XPATH_UNDEFINED:
#ifdef DEBUG_EXPR
xmlGenericError(xmlGenericErrorContext, "BOOLEAN: undefined\n");
#endif
ret = 0;
break;
case XPATH_NODESET:
case XPATH_XSLT_TREE:
ret... | [
1,
0
] |
Chromium | third_party/libxml/src/xpath.c | void xmlXPathFreeContext(xmlXPathContextPtr ctxt) {
if (ctxt == NULL)
return;
if (ctxt->cache != NULL)
xmlXPathFreeCache((xmlXPathContextCachePtr)ctxt->cache);
xmlXPathRegisteredNsCleanup(ctxt);
xmlXPathRegisteredFuncsCleanup(ctxt);
xmlXPathRegisteredVariablesCleanup(ctxt);
xmlResetError(&ctxt->las... | [
1,
0
] |
Chromium | third_party/libxml/src/xpath.c | static int xmlXPathCompareNodeSetFloat(xmlXPathParserContextPtr ctxt, int inf,
int strict, xmlXPathObjectPtr arg,
xmlXPathObjectPtr f) {
int i, ret = 0;
xmlNodeSetPtr ns;
xmlChar *str2;
if ((f == NULL) || (arg == NULL) ||
((arg... | [
0,
0
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.