summaryrefslogtreecommitdiff
path: root/xmlregexp.c
Commit message (Collapse)AuthorAgeFilesLines
* regenerated fixed a compilation problem some cleanups and one bug fixDaniel Veillard2005-08-231-11/+101
| | | | | | | | * elfgcchack.h testapi.c doc/*: regenerated * schematron.c: fixed a compilation problem * xmlregexp.c include/libxml/xmlregexp.h: some cleanups and one bug fix * result/expr/base: slightly changes the number of Cons. Daniel
* rescanned code and rebuilt small cleanup cleanup problems from codeDaniel Veillard2005-08-221-3/+3
| | | | | | | | * elfgcchack.h testapi.c doc/*: rescanned code and rebuilt * xmlregexp.c: small cleanup * include/libxml/schematron.h include/libxml/xmlexports.h include/libxml/xmlversion.h.in: cleanup problems from code scanner Daniel
* exported xmlExpExpDerive(), added it to the testRegexp command line toolDaniel Veillard2005-08-221-0/+37
| | | | | | | * testRegexp.c xmlregexp.c include/libxml/xmlregexp.h: exported xmlExpExpDerive(), added it to the testRegexp command line tool when providing multiple expressions. Daniel
* fixed an uninitialized variable extended the API to add the parser,Daniel Veillard2005-08-221-19/+336
| | | | | | | | | | | | | * valid.c: fixed an uninitialized variable * xmlregexp.c include/libxml/xmlregexp.h: extended the API to add the parser, serializer and some debugging * include/libxml/xmlversion.h.in: made the new support compiled by default if Schemas is included * testRegexp.c: cleanup and integration of the first part of the new code with a special switch * xmllint.c: show up Expr in --version if compiled in * include/libxml/tree.h: moved the xmlBuffer definition up Daniel
* pushing the formal expression handling code to have it in CVs from now.Daniel Veillard2005-08-221-0/+1394
| | | | | | | * xmlregexp.c include/libxml/xmlregexp.h: pushing the formal expression handling code to have it in CVs from now. Not plugged, and misses APIs it's not compiled in yet. Daniel
* fixed a determinism detection problem exposed by ##other tests commited byDaniel Veillard2005-08-091-0/+10
| | | | | | | | | * xmlregexp.c: fixed a determinism detection problem exposed by ##other tests commited by Kasimier, also added a small speedup of determinism detection. * test/results/any6_2_0* any8_1_0* any7_1_2* any7_2_2*: added the results to the regression tests now Daniel
* trying to nail down the remaining ##other issues completed the tests andDaniel Veillard2005-08-091-7/+35
| | | | | | | | | | | * xmlregexp.c xmlschemas.c: trying to nail down the remaining ##other issues * result/schemas/any7* test/schemas/any7: completed the tests and added the results * result/schemas/any3_0_0.err result/schemas/any5_0_0.err result/schemas/any5_1_0.err: this slightly chnages the output from 3 existing tests Daniel
* fixed bug #310264, basically it's about reentrancy of count basedDaniel Veillard2005-08-081-1/+17
| | | | | | | | | * xmlregexp.c: fixed bug #310264, basically it's about reentrancy of count based transition, when going though the counter must be reset to 0 * test/schemas/bug310264* result/schemas/bug310264*: added the regression test. Daniel
* allows an extra argument to subset the tests big speedup for validation,Daniel Veillard2005-07-301-36/+168
| | | | | | | * runtest.c: allows an extra argument to subset the tests * xmlregexp.c: big speedup for validation, basically avoided transition creation explosion when removing epsilon transition Daniel
* fixed the error reporting for not transitions fixed output DanielDaniel Veillard2005-07-191-4/+19
| | | | | | | | * xmlregexp.c xmlschemas.c: fixed the error reporting for not transitions * result/schemas/any5_0_0* result/schemas/any5_0_2* result/schemas/any5_1_0*: fixed output Daniel
* fixing bug #172215 about foreign namespaces by adding support for negatedDaniel Veillard2005-07-191-5/+75
| | | | | | | | | | * xmlregexp.c xmlschemas.c include/libxml/xmlautomata.h: fixing bug #172215 about foreign namespaces by adding support for negated string transitions. Error messages still need to be improved. * test/schemas/any5* result/schemas/any5*: adding regression tests for this. Daniel
* fixed where xmlMemoryDump() should be called. fixed handling of {0}, \n,Daniel Veillard2005-07-141-2/+32
| | | | | | | * testRegexp.c: fixed where xmlMemoryDump() should be called. * xmlregexp.c: fixed handling of {0}, \n, \r and \t, two bugs affecting NIST regression tests Daniel
* expanded test found and fixed the leak exposed by Microsoft regtestsDaniel Veillard2005-07-031-1/+3
| | | | | | * runsuite.c: expanded test * xmlregexp.c: found and fixed the leak exposed by Microsoft regtests Daniel
* Removed 5 unnecessary dereferences (reported by Andriy, bug #301074).Kasimier T. Buchcik2005-04-191-3/+3
| | | | | * xmlschemas.c xmlregexp.c: Removed 5 unnecessary dereferences (reported by Andriy, bug #301074).
* revamped the elfgcchack.h format to cope with gcc4 change of aliasingDaniel Veillard2005-04-011-0/+2
| | | | | | | | | | | * doc/apibuild.py doc/elfgcchack.xsl: revamped the elfgcchack.h format to cope with gcc4 change of aliasing allowed scopes, had to add extra informations to doc/libxml2-api.xml to separate the header from the c module source. * *.c: updated all c library files to add a #define bottom_xxx and reimport elfgcchack.h thereafter, and a bit of cleanups. * doc//* testapi.c: regenerated when rebuilding the API Daniel
* warning patches from Peter Breitenlohner serious DTD parsing speedups,Daniel Veillard2005-01-251-2/+2
| | | | | | | | * testdso.c xmlregexp.c: warning patches from Peter Breitenlohner * include/libxml/valid.h valid.c parser.c: serious DTD parsing speedups, start to deprecate 3 ElementDef related entry point and replace them with better ones. Daniel
* extended xmlRegExecErrInfo() and xmlRegExecNextValues() to return errorDaniel Veillard2005-01-121-20/+95
| | | | | | | * include/libxml/xmlregexp.h xmlregexp.c: extended xmlRegExecErrInfo() and xmlRegExecNextValues() to return error transition strings too, and sink state detection and handling. Daniel
* William noticed I forgot to add special support for xmlmodules.c defineDaniel Veillard2005-01-091-31/+106
| | | | | | | | | * gentest.py testapi.c: William noticed I forgot to add special support for xmlmodules.c define * xmlregexp.c include/libxml/xmlregexp.h: added terminal to xmlRegExecErrInfo() API, adding new xmlRegExecNextValues() entry point and refactored to use both code. Daniel
* fixing behaviour for xmlRegExecErrInfo in case of rollback DanielDaniel Veillard2005-01-081-8/+22
| | | | | | * xmlregexp.c: fixing behaviour for xmlRegExecErrInfo in case of rollback Daniel
* small update trying to add an API to get useful error informations backDaniel Veillard2005-01-071-4/+136
| | | | | | | * TODO: small update * xmlregexp.c: trying to add an API to get useful error informations back from a failing regexp context. Daniel
* more coverage more fixes DanielDaniel Veillard2004-11-081-0/+2
| | | | | | * gentest.py testapi.c: more coverage * debugXML.c parser.c xmlregexp.c xpath.c: more fixes Daniel
* Parsing of <complexContent> - handle attribute 'mixed', catch illegalKasimier T. Buchcik2004-09-291-0/+172
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * xmlschemas.c include/libxml/xmlerror.h include/libxml/xmlschemas.h include/libxml/schemasInternals.h: Parsing of <complexContent> - handle attribute 'mixed', catch illegal attributes. Parsing of <complexType> - handle attributes 'abstract', 'final' and 'block', catch illegal attributes. Validation of complex types - handle abstract types. Added handling of default/fixed attributes and element values. Per validation option attribute nodes/text nodes are created on the instance. Added the corresponding constraints for fixed/default. Added xmlSchemaSetValidOptions, xmlSchemaGetValidOptions to the external API. Extended element declaration constraints. Got rid of perseverative creation of temporery validation/parser contexts. Added handling of xsi:schemaLocation and xsi:noNamespaceSchemaLocation. Fixed xsi:type component resolution if using non-prefixed QNames. * xmlregexp.c xmlschemas.c include/libxml/xmlautomata.h: Enabled namespace awareness of the content model if using the model group "all". * test/schemas/bug152470_1.xsd: Removed an "abstract" attribute, which broke the test. * xstc/xstc.py: Workaround to accomodate case insensitive test definitions in ms-test.def.xml (was missing in a previous commit).
* another patch from Malcolm Tredinnick fixing warning generated by theDaniel Veillard2004-09-281-4/+1
| | | | | | | | * acconfig.h config.h.in configure.in xmlIO.c xmlregexp.c xmlschemas.c xmlschemastypes.c: another patch from Malcolm Tredinnick fixing warning generated by the Nonstop Kernel Open System Services compiler #151710 Daniel
* applied Schemas patches from Kasimier Buchcik lot of new tests for thingsDaniel Veillard2004-08-101-7/+49
| | | | | | | | | | | * configure.in xmlregexp.c xmlschemas.c xmlschemastypes.c include/libxml/schemasInternals.h include/libxml/xmlerror.h include/libxml/xmlschemastypes.h: applied Schemas patches from Kasimier Buchcik * test/ result/ bug141333* annot-err* any[1-4]* bug145246* element-err* element-minmax-err* include1* restrict-CT-attr-ref*: lot of new tests for things fixed by the patch Daniel
* enhanced xmlRegStateAddTrans to check if transition is already presentWilliam M. Brack2004-05-101-0/+22
| | | | | | | * xmlregexp.c: enhanced xmlRegStateAddTrans to check if transition is already present and, if so, to ignore the request to add it. This has a very dramatic effect on memory requirements as well as efficiency. It also fixes bug 141762.
* enhanced the handling of subexpression ranges which have a minOccurs of 0William M. Brack2004-05-061-48/+60
| | | | | | * xmlregexp.c: enhanced the handling of subexpression ranges which have a minOccurs of 0 (bug 140478 again); cleaned up comments throughout the module.
* enhanced xmlFARegExec range evaluation for min occurs 0 problems - fixesWilliam M. Brack2004-04-261-5/+31
| | | | | * xmlregexp.c: enhanced xmlFARegExec range evaluation for min occurs 0 problems - fixes bug 140478.
* patched a bug in parsing production 1 and 2 of xmlschemas regexp thatDaniel Veillard2004-03-311-33/+36
| | | | | | | | | * xmlregexp.c: patched a bug in parsing production 1 and 2 of xmlschemas regexp that William pointed out while working on #134120 * test/regexp/branch result/regexp/branch: added a specific regression test Daniel
* enhanced the logic of parsing char groups to better handle initial orWilliam M. Brack2004-03-201-8/+4
| | | | | * xmlregexp.c: enhanced the logic of parsing char groups to better handle initial or ending '-' (bug 135972)
* fixing bug #132930 with the provided patch, a bit suspicious about it butDaniel Veillard2004-02-121-3/+16
| | | | | | | | | * xmlregexp.c: fixing bug #132930 with the provided patch, a bit suspicious about it but this is fairly contained and regression tests still passes. * test/schemas/all1* result/schemas/all1*: added the test to the regression suite. Daniel
* fixed xmlFAParseCharRange for Unicode ranges with patch from CharlesWilliam M. Brack2003-12-271-5/+7
| | | | | * xmlregexp.c: fixed xmlFAParseCharRange for Unicode ranges with patch from Charles Bozeman.
* fixed problem causing segfault on validation error condition (reported onWilliam M. Brack2003-12-261-1/+2
| | | | | * xmlregexp.c: fixed problem causing segfault on validation error condition (reported on mailing list)
* fix bug #128401 affecting regexp quantifiers DanielDaniel Veillard2003-12-031-3/+18
| | | | | | * config.h.in configure.in xmlregexp.c: fix bug #128401 affecting regexp quantifiers Daniel
* fixing some Negative Character Group and Character Class SubtractionDaniel Veillard2003-11-241-4/+12
| | | | | | * xmlregexp.c: fixing some Negative Character Group and Character Class Subtraction handling. Daniel
* more XML Schemas fixes based on Eric van der Vlist examples addedDaniel Veillard2003-11-241-0/+5
| | | | | | | | | | | * xmlregexp.c xmlschemas.c: more XML Schemas fixes based on Eric van der Vlist examples * result/schemas/vdv-first4* test/schemas/vdv-first4*: added regression tests * doc/examples/Makefile.am doc/examples/index.py: do not regenerate the index on make all target, but only on make rebuild to avoid troubles. Daniel
* enhanced macros to avoid breaking ABI from previous versions. modified toWilliam M. Brack2003-10-181-4/+4
| | | | | | | | | | | | * genChRanges.py, chvalid.c, include/libxml/chvalid.h, include/libxml/parserInternals.h: enhanced macros to avoid breaking ABI from previous versions. * catalog.c, parser.c, tree.c: modified to use IS_* macros defined in parserInternals.h. Makes maintenance much easier. * testHTML.c, testSAX.c, python/libxml.c: minor fixes to avoid compilation warnings * configuration.in: fixed pushHTML test error; enhanced for better devel (me) testing
* Setting up the framework for structured error reporting, touches a lot ofDaniel Veillard2003-10-101-2/+2
| | | | | | | | | | | * HTMLparser.c c14n.c catalog.c error.c globals.c parser.c parserInternals.c relaxng.c valid.c xinclude.c xmlIO.c xmlregexp.c xmlschemas.c xpath.c xpointer.c include/libxml/globals.h include/libxml/parser.h include/libxml/valid.h include/libxml/xmlerror.h: Setting up the framework for structured error reporting, touches a lot of modules, but little code now the error handling trail has been cleaned up. Daniel
* error handling cleanup of the Regexp module. DanielDaniel Veillard2003-10-081-32/+79
| | | | | | * xmlregexp.c include/libxml/xmlerror.h: error handling cleanup of the Regexp module. Daniel
* =Bug 118559 (continued)William M. Brack2003-08-011-8/+9
|
* integrated the Out Of Memory test from Havoc Pennington #109368 a lot ofDaniel Veillard2003-04-241-35/+130
| | | | | | | | | | | | * Makefile.am testOOM.c testOOMlib.[ch] : integrated the Out Of Memory test from Havoc Pennington #109368 * SAX.c parser.c parserInternals.c tree.c uri.c valid.c xmlmemory.c xmlreader.c xmlregexp.c include/libxml/tree.h include/libxml/parser.h: a lot of memory allocation cleanups based on the results of the OOM testing * check-relaxng-test-suite2.py: seems I forgot to commit the script. Daniel
* added xmlMallocAtomic() to be used when allocating blocks which do notDaniel Veillard2003-04-191-2/+2
| | | | | | | | | | | | * DOCBparser.c HTMLparser.c c14n.c catalog.c encoding.c globals.c nanohttp.c parser.c parserInternals.c relaxng.c tree.c uri.c xmlmemory.c xmlreader.c xmlregexp.c xpath.c xpointer.c include/libxml/globals.h include/libxml/xmlmemory.h: added xmlMallocAtomic() to be used when allocating blocks which do not contains pointers, add xmlGcMemSetup() and xmlGcMemGet() to allow registering the full set of functions needed by a garbage collecting allocator like libgc, ref #109944 Daniel
* Starting work precompiling parts of RelaxNG schemas. Not plugged ontoDaniel Veillard2003-04-131-0/+111
| | | | | | | | | * relaxng.c xmlregexp.c include/libxml/xmlautomata.h include/libxml/xmlregexp.h: Starting work precompiling parts of RelaxNG schemas. Not plugged onto validity checking yet, just the regexp building part. Needed to extend some of the automata and regexp APIs. Daniel
* fixing bug #108976 get the ID/REFs to reference the ID in the documentDaniel Veillard2003-03-231-1/+0
| | | | | | | | | | | | | | | * parser.c: fixing bug #108976 get the ID/REFs to reference the ID in the document content and not in the entity copy * SAX.c include/libxml/parser.h: more checking of the ID/REF stuff, better solution for #107208 * xmlregexp.c: removed a direct printf, dohhh * xmlreader.c: fixed a bug on streaming validation of empty elements in entities * result/VC/ElementValid8 test/VCM/v20.xml result/valid/xhtml1.xhtml: cleanup of the validation tests * test/valid/id* test/valid/dtds/destfoo.ent result/valid/id*: added more ID/IDREF tests to the suite Daniel
* working on DTD validation on top of xml reader interfaces. Allows toDaniel Veillard2002-12-201-1/+1
| | | | | | | | | | | * testReader.c xmlreader.c valid.c include/libxml/tree.h include/libxml/valid.h include/libxml/xmlreader.h: working on DTD validation on top of xml reader interfaces. Allows to validate arbitrary large instances. This required some extensions to the valid module interface and augmenting the size of xmlID and xmlRef structs a bit. * uri.c xmlregexp.c: simple cleanup. Daniel
* new API building Python script, does the C parsing directly, generates aDaniel Veillard2002-12-111-3/+8
| | | | | | | | | | | | | | | * doc/apibuild.py doc/libxml2-api.xml doc/Makefile.am: new API building Python script, does the C parsing directly, generates a better API description including structure fieds defs and enums. Still a couple of bugs, but good enough for the python wrappers now. * DOCBparser.c SAX.c nanohttp.c parser.c parserInternals.c tree.c valid.c xmlIO.c xmlmemory.c xmlreader.c xmlregexp.c xmlschemas.c include/libxml/schemasInternals.h include/libxml/tree.h: more cleanup based on the python analysis script reports. * libxml.spec.in: make sure the API XML description is part of the devel package. Daniel
* code cleanup, especially the function comments. fixed a small bug whenDaniel Veillard2002-12-101-1/+3
| | | | | | | | | | * DOCBparser.c HTMLparser.c c14n.c debugXML.c encoding.c hash.c nanoftp.c nanohttp.c parser.c parserInternals.c testC14N.c testDocbook.c threads.c tree.c valid.c xmlIO.c xmllint.c xmlmemory.c xmlreader.c xmlregexp.c xmlschemas.c xmlschemastypes.c xpath.c: code cleanup, especially the function comments. * tree.c: fixed a small bug when freeing nodes which are XInclude ones. Daniel
* fixed the validation of sequences content model when some of the blocksDaniel Veillard2002-10-161-2/+4
| | | | | | | | | * xmlregexp.c xmlschemas.c: fixed the validation of sequences content model when some of the blocks have min or max, and a couple of bugs found in the process. * result/schemas/list0* test/schemas/list0*: added some specific regression tests Daniel
* improving some documentation comments found and fixed a mem leak withDaniel Veillard2002-09-251-0/+7
| | | | | | | | | | | | | * tree.c: improving some documentation comments * xmlregexp.c: found and fixed a mem leak with python regression tests * doc/*: rebuilt the doc and the API XML file including the xmlregexp.h xmlautomata.h and xmlunicode.h headers * python/generator.py python/libxml2class.txt python/libxml_wrap.h python/types.c: added access to the XML Schemas regexps from python * python/tests/Makefile.am python/tests/regexp.py: added a simple regexp bindings test Daniel
* fixed the data callback on transition functionality which was broken whenDaniel Veillard2002-09-241-1/+24
| | | | | | | | | | | | | * xmlregexp.c: fixed the data callback on transition functionality which was broken when using the compact form * result/schemas/*: updated the results, less verbose, all tests pass like before * DOCBparser.c testAutomata.c testC14N.c testSchemas.c testThreads.c testXPath.c valid.c xinclude.c xmllint.c xmlregexp.c xmlschemas.c xmlschemastypes.c xpath.c python/libxml.c: removed a bunch of annoying warnings * xpath.c: try to provide better error report when possible Daniel
* made configuring with regexps/automata/unicode the default but withoutDaniel Veillard2002-09-191-3/+345
| | | | | | | | | | | | | * Makefile.am configure.in include/libxml/xmlversion.h.in: made configuring with regexps/automata/unicode the default but without schemas ATM * testRegexp.c valid.c xmlregexp.c include/libxml/xmlregexp.h: fixed the regexp based DTD validation performance and memory problem by switching to a compact form for determinist regexps and detecting the determinism property in the process. Seems as fast as the old DTD validation specific engine :-) despite the regexp built and compaction process. Daniel