nokolexbor 0.2.5 → 0.3.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/ext/nokolexbor/CMakeLists.txt +7 -4
- data/ext/nokolexbor/config.h.cmake.in +2 -0
- data/ext/nokolexbor/extconf.rb +47 -25
- data/ext/nokolexbor/libxml/SAX2.h +4 -4
- data/ext/nokolexbor/libxml/chvalid.h +21 -21
- data/ext/nokolexbor/libxml/dict.h +13 -13
- data/ext/nokolexbor/libxml/globals.h +202 -202
- data/ext/nokolexbor/libxml/hash.h +25 -25
- data/ext/nokolexbor/libxml/parser.h +5 -5
- data/ext/nokolexbor/libxml/parserInternals.h +4 -4
- data/ext/nokolexbor/libxml/pattern.h +14 -14
- data/ext/nokolexbor/libxml/threads.h +15 -15
- data/ext/nokolexbor/libxml/tree.h +5 -5
- data/ext/nokolexbor/libxml/xmlerror.h +5 -5
- data/ext/nokolexbor/libxml/xmlmemory.h +16 -16
- data/ext/nokolexbor/libxml/xmlstring.h +30 -30
- data/ext/nokolexbor/libxml/xpath.h +43 -43
- data/ext/nokolexbor/libxml/xpathInternals.h +128 -128
- data/ext/nokolexbor/memory.c +6 -6
- data/ext/nokolexbor/nl_cdata.c +44 -0
- data/ext/nokolexbor/nl_comment.c +44 -0
- data/ext/nokolexbor/nl_document.c +23 -9
- data/ext/nokolexbor/nl_node.c +191 -178
- data/ext/nokolexbor/nl_node_set.c +38 -73
- data/ext/nokolexbor/nl_text.c +44 -0
- data/ext/nokolexbor/nl_xpath_context.c +33 -42
- data/ext/nokolexbor/nokolexbor.c +7 -3
- data/ext/nokolexbor/nokolexbor.h +9 -7
- data/ext/nokolexbor/private/buf.h +1 -1
- data/ext/nokolexbor/private/error.h +3 -3
- data/ext/nokolexbor/xml_SAX2.c +8 -8
- data/ext/nokolexbor/xml_buf.c +19 -19
- data/ext/nokolexbor/xml_chvalid.c +25 -25
- data/ext/nokolexbor/xml_dict.c +69 -69
- data/ext/nokolexbor/xml_encoding.c +2 -2
- data/ext/nokolexbor/xml_error.c +51 -51
- data/ext/nokolexbor/xml_globals.c +329 -329
- data/ext/nokolexbor/xml_hash.c +131 -131
- data/ext/nokolexbor/xml_memory.c +25 -25
- data/ext/nokolexbor/xml_parser.c +3 -3
- data/ext/nokolexbor/xml_parserInternals.c +15 -15
- data/ext/nokolexbor/xml_pattern.c +103 -103
- data/ext/nokolexbor/xml_string.c +93 -93
- data/ext/nokolexbor/xml_threads.c +61 -61
- data/ext/nokolexbor/xml_tree.c +12 -12
- data/ext/nokolexbor/xml_xpath.c +1194 -1203
- data/lib/nokolexbor/document.rb +92 -1
- data/lib/nokolexbor/node.rb +64 -0
- data/lib/nokolexbor/node_set.rb +6 -5
- data/lib/nokolexbor/version.rb +1 -1
- data/lib/nokolexbor.rb +21 -1
- data/patches/0001-lexbor-support-text-pseudo-element.patch +1 -1
- metadata +7 -4
@@ -413,9 +413,9 @@ struct _xmlXPathParserContext {
|
|
413
413
|
* Objects and Nodesets handling
|
414
414
|
*/
|
415
415
|
|
416
|
-
XMLPUBVAR double
|
417
|
-
XMLPUBVAR double
|
418
|
-
XMLPUBVAR double
|
416
|
+
XMLPUBVAR double nl_xmlXPathNAN;
|
417
|
+
XMLPUBVAR double nl_xmlXPathPINF;
|
418
|
+
XMLPUBVAR double nl_xmlXPathNINF;
|
419
419
|
|
420
420
|
/* These macros may later turn into functions */
|
421
421
|
/**
|
@@ -455,68 +455,68 @@ XMLPUBVAR double xmlXPathNINF;
|
|
455
455
|
|
456
456
|
|
457
457
|
XMLPUBFUN void XMLCALL
|
458
|
-
|
458
|
+
nl_xmlXPathFreeObject (xmlXPathObjectPtr obj);
|
459
459
|
XMLPUBFUN xmlNodeSetPtr XMLCALL
|
460
|
-
|
460
|
+
nl_xmlXPathNodeSetCreate (lxb_dom_node_t_ptr val);
|
461
461
|
XMLPUBFUN void XMLCALL
|
462
|
-
|
462
|
+
nl_xmlXPathFreeNodeSetList (xmlXPathObjectPtr obj);
|
463
463
|
XMLPUBFUN void XMLCALL
|
464
|
-
|
464
|
+
nl_xmlXPathFreeNodeSet (xmlNodeSetPtr obj);
|
465
465
|
XMLPUBFUN xmlXPathObjectPtr XMLCALL
|
466
|
-
|
466
|
+
nl_xmlXPathObjectCopy (xmlXPathObjectPtr val);
|
467
467
|
XMLPUBFUN int XMLCALL
|
468
|
-
|
468
|
+
nl_xmlXPathCmpNodes (lxb_dom_node_t_ptr node1,
|
469
469
|
lxb_dom_node_t_ptr node2);
|
470
470
|
/**
|
471
471
|
* Conversion functions to basic types.
|
472
472
|
*/
|
473
473
|
XMLPUBFUN int XMLCALL
|
474
|
-
|
474
|
+
nl_xmlXPathCastNumberToBoolean (double val);
|
475
475
|
XMLPUBFUN int XMLCALL
|
476
|
-
|
476
|
+
nl_xmlXPathCastStringToBoolean (const xmlChar * val);
|
477
477
|
XMLPUBFUN int XMLCALL
|
478
|
-
|
478
|
+
nl_xmlXPathCastNodeSetToBoolean(xmlNodeSetPtr ns);
|
479
479
|
XMLPUBFUN int XMLCALL
|
480
|
-
|
480
|
+
nl_xmlXPathCastToBoolean (xmlXPathObjectPtr val);
|
481
481
|
|
482
482
|
XMLPUBFUN double XMLCALL
|
483
|
-
|
483
|
+
nl_xmlXPathCastBooleanToNumber (int val);
|
484
484
|
XMLPUBFUN double XMLCALL
|
485
|
-
|
485
|
+
nl_xmlXPathCastStringToNumber (const xmlChar * val);
|
486
486
|
XMLPUBFUN double XMLCALL
|
487
|
-
|
487
|
+
nl_xmlXPathCastNodeToNumber (lxb_dom_node_t_ptr node);
|
488
488
|
XMLPUBFUN double XMLCALL
|
489
|
-
|
489
|
+
nl_xmlXPathCastNodeSetToNumber (xmlNodeSetPtr ns);
|
490
490
|
XMLPUBFUN double XMLCALL
|
491
|
-
|
491
|
+
nl_xmlXPathCastToNumber (xmlXPathObjectPtr val);
|
492
492
|
|
493
493
|
XMLPUBFUN xmlChar * XMLCALL
|
494
|
-
|
494
|
+
nl_xmlXPathCastBooleanToString (int val);
|
495
495
|
XMLPUBFUN xmlChar * XMLCALL
|
496
|
-
|
496
|
+
nl_xmlXPathCastNumberToString (double val);
|
497
497
|
XMLPUBFUN xmlChar * XMLCALL
|
498
|
-
|
498
|
+
nl_xmlXPathCastNodeToString (lxb_dom_node_t_ptr node);
|
499
499
|
XMLPUBFUN xmlChar * XMLCALL
|
500
|
-
|
500
|
+
nl_xmlXPathCastNodeSetToString (xmlNodeSetPtr ns);
|
501
501
|
XMLPUBFUN xmlChar * XMLCALL
|
502
|
-
|
502
|
+
nl_xmlXPathCastToString (xmlXPathObjectPtr val);
|
503
503
|
|
504
504
|
XMLPUBFUN xmlXPathObjectPtr XMLCALL
|
505
|
-
|
505
|
+
nl_xmlXPathConvertBoolean (xmlXPathObjectPtr val);
|
506
506
|
XMLPUBFUN xmlXPathObjectPtr XMLCALL
|
507
|
-
|
507
|
+
nl_xmlXPathConvertNumber (xmlXPathObjectPtr val);
|
508
508
|
XMLPUBFUN xmlXPathObjectPtr XMLCALL
|
509
|
-
|
509
|
+
nl_xmlXPathConvertString (xmlXPathObjectPtr val);
|
510
510
|
|
511
511
|
/**
|
512
512
|
* Context handling.
|
513
513
|
*/
|
514
514
|
XMLPUBFUN xmlXPathContextPtr XMLCALL
|
515
|
-
|
515
|
+
nl_xmlXPathNewContext (lxb_dom_document_t_ptr doc);
|
516
516
|
XMLPUBFUN void XMLCALL
|
517
|
-
|
517
|
+
nl_xmlXPathFreeContext (xmlXPathContextPtr ctxt);
|
518
518
|
XMLPUBFUN int XMLCALL
|
519
|
-
|
519
|
+
nl_xmlXPathContextSetCache(xmlXPathContextPtr ctxt,
|
520
520
|
int active,
|
521
521
|
int value,
|
522
522
|
int options);
|
@@ -524,48 +524,48 @@ XMLPUBFUN int XMLCALL
|
|
524
524
|
* Evaluation functions.
|
525
525
|
*/
|
526
526
|
XMLPUBFUN long XMLCALL
|
527
|
-
|
527
|
+
nl_xmlXPathOrderDocElems (lxb_dom_document_t_ptr doc);
|
528
528
|
XMLPUBFUN int XMLCALL
|
529
|
-
|
529
|
+
nl_xmlXPathSetContextNode (lxb_dom_node_t_ptr node,
|
530
530
|
xmlXPathContextPtr ctx);
|
531
531
|
XMLPUBFUN xmlXPathObjectPtr XMLCALL
|
532
|
-
|
532
|
+
nl_xmlXPathNodeEval (lxb_dom_node_t_ptr node,
|
533
533
|
const xmlChar *str,
|
534
534
|
xmlXPathContextPtr ctx);
|
535
535
|
XMLPUBFUN xmlXPathObjectPtr XMLCALL
|
536
|
-
|
536
|
+
nl_xmlXPathEval (const xmlChar *str,
|
537
537
|
xmlXPathContextPtr ctx);
|
538
538
|
XMLPUBFUN xmlXPathObjectPtr XMLCALL
|
539
|
-
|
539
|
+
nl_xmlXPathEvalExpression (const xmlChar *str,
|
540
540
|
xmlXPathContextPtr ctxt);
|
541
541
|
XMLPUBFUN int XMLCALL
|
542
|
-
|
542
|
+
nl_xmlXPathEvalPredicate (xmlXPathContextPtr ctxt,
|
543
543
|
xmlXPathObjectPtr res);
|
544
544
|
/**
|
545
545
|
* Separate compilation/evaluation entry points.
|
546
546
|
*/
|
547
547
|
XMLPUBFUN xmlXPathCompExprPtr XMLCALL
|
548
|
-
|
548
|
+
nl_xmlXPathCompile (const xmlChar *str);
|
549
549
|
XMLPUBFUN xmlXPathCompExprPtr XMLCALL
|
550
|
-
|
550
|
+
nl_xmlXPathCtxtCompile (xmlXPathContextPtr ctxt,
|
551
551
|
const xmlChar *str);
|
552
552
|
XMLPUBFUN xmlXPathObjectPtr XMLCALL
|
553
|
-
|
553
|
+
nl_xmlXPathCompiledEval (xmlXPathCompExprPtr comp,
|
554
554
|
xmlXPathContextPtr ctx);
|
555
555
|
XMLPUBFUN int XMLCALL
|
556
|
-
|
556
|
+
nl_xmlXPathCompiledEvalToBoolean(xmlXPathCompExprPtr comp,
|
557
557
|
xmlXPathContextPtr ctxt);
|
558
558
|
XMLPUBFUN void XMLCALL
|
559
|
-
|
559
|
+
nl_xmlXPathFreeCompExpr (xmlXPathCompExprPtr comp);
|
560
560
|
#endif /* LIBXML_XPATH_ENABLED */
|
561
561
|
#if defined(LIBXML_XPATH_ENABLED) || defined(LIBXML_SCHEMAS_ENABLED)
|
562
562
|
XML_DEPRECATED
|
563
563
|
XMLPUBFUN void XMLCALL
|
564
|
-
|
564
|
+
nl_xmlXPathInit (void);
|
565
565
|
XMLPUBFUN int XMLCALL
|
566
|
-
|
566
|
+
nl_xmlXPathIsNaN (double val);
|
567
567
|
XMLPUBFUN int XMLCALL
|
568
|
-
|
568
|
+
nl_xmlXPathIsInf (double val);
|
569
569
|
|
570
570
|
#ifdef __cplusplus
|
571
571
|
}
|