• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /macosx-10.9.5/libxml2-26/libxml2/

Lines Matching +defs:val +defs:pos

601  * @val:  an initial xmlXPathObjectPtr, or NULL
603 * Create a new xmlLocationSetPtr of type double and of value @val
608 xmlXPtrLocationSetCreate(xmlXPathObjectPtr val) {
617 if (val != NULL) {
628 ret->locTab[ret->locNr++] = val;
636 * @val: a new xmlXPathObjectPtr
639 * If the location already exist in the set @val is freed.
642 xmlXPtrLocationSetAdd(xmlLocationSetPtr cur, xmlXPathObjectPtr val) {
645 if ((cur == NULL) || (val == NULL)) return;
651 if (xmlXPtrRangesEqual(cur->locTab[i], val)) {
652 xmlXPathFreeObject(val);
682 cur->locTab[cur->locNr++] = val;
715 * @val: an xmlXPathObjectPtr
720 xmlXPtrLocationSetDel(xmlLocationSetPtr cur, xmlXPathObjectPtr val) {
724 if (val == NULL) return;
730 if (cur->locTab[i] == val) break;
748 * @val: the index to remove
753 xmlXPtrLocationSetRemove(xmlLocationSetPtr cur, int val) {
755 if (val >= cur->locNr) return;
757 for (;val < cur->locNr;val++)
758 cur->locTab[val] = cur->locTab[val + 1];
849 * @val: the LocationSet value
851 * Wrap the LocationSet @val in a new xmlXPathObjectPtr
856 xmlXPtrWrapLocationSet(xmlLocationSetPtr val) {
866 ret->user = (void *) val;
902 #define SKIP(val) ctxt->cur += (val)
903 #define NXT(val) ctxt->cur[(val)]
2361 int pos;
2369 pos = *indx;
2380 if (pos > 0) {
2381 cur = xmlXPtrGetNthChild(cur, pos);
2382 pos = 0;
2385 pos = 0;
2398 if (pos == 0) pos = 1;
2401 *indx = pos;
2412 if (pos > len) {
2415 pos = len;
2417 if (pos + bytes >= len) {
2418 bytes -= (len - pos);
2420 pos = 0;
2421 } else if (pos + bytes < len) {
2422 pos += bytes;
2424 *indx = pos;
2451 int pos; /* 0 based */
2466 pos = startindex - 1;
2470 if ((cur == *end) && (pos + stringlen > *endindex))
2475 if (len >= pos + stringlen) {
2476 match = (!xmlStrncmp(&cur->content[pos], string, stringlen));
2481 stringlen, pos + 1);
2486 *endindex = pos + stringlen;
2492 int sub = len - pos;
2493 match = (!xmlStrncmp(&cur->content[pos], string, sub));
2498 sub, pos + 1);
2512 pos = 0;
2538 int pos; /* 0 based */
2550 pos = *startindex - 1;
2556 while (pos <= len) {
2558 str = xmlStrchr(&cur->content[pos], first);
2560 pos = (str - (xmlChar *)(cur->content));
2564 first, pos + 1);
2568 if (xmlXPtrMatchString(string, cur, pos + 1,
2571 *startindex = pos + 1;
2574 pos++;
2576 pos = len + 1;
2587 pos + 1);
2592 *startindex = pos + 1;
2594 *endindex = pos + 1;
2599 if ((cur == *end) && (pos >= *endindex))
2604 pos = 1;
2621 int pos, len = 0;
2627 pos = *indx;
2632 if (pos > 0) {
2633 cur = xmlXPtrGetNthChild(cur, pos);
2772 int found, pos = 0, num = 0;
2790 pos = (int) position->floatval;
2850 pos - 1) == 0) {