diff --git a/chvalid.c b/chvalid.c index b80cc844..22f4a6c8 100644 --- a/chvalid.c +++ b/chvalid.c @@ -4,9 +4,6 @@ * * This file is automatically generated from the cvs source * definition files using the genChRanges.py Python script - * - * Generation date: Mon Mar 27 11:09:48 2006 - * Sources: chvalid.def */ #define IN_LIBXML @@ -181,7 +178,7 @@ xmlCharInRange (unsigned int val, const xmlChRangeGroup *rptr) { if ((unsigned short) val < sptr[mid].low) { high = mid - 1; } else { - if ((unsigned short) val > sptr[mid].high) { + if ((unsigned short) val > sptr[mid].high) { low = mid + 1; } else { return 1; @@ -200,7 +197,7 @@ xmlCharInRange (unsigned int val, const xmlChRangeGroup *rptr) { if (val < lptr[mid].low) { high = mid - 1; } else { - if (val > lptr[mid].high) { + if (val > lptr[mid].high) { low = mid + 1; } else { return 1; diff --git a/include/libxml/chvalid.h b/include/libxml/chvalid.h index 8144f08b..2a172d74 100644 --- a/include/libxml/chvalid.h +++ b/include/libxml/chvalid.h @@ -1,16 +1,13 @@ /** * @file - * + * * @brief Unicode character range checking - * + * * this module exports interfaces for the character * range validation APIs * * This file is automatically generated from the cvs source * definition files using the genChRanges.py Python script - * - * Generation date: Mon Mar 27 11:09:48 2006 - * Sources: chvalid.def */ #ifndef __XML_CHVALID_H__ @@ -66,7 +63,6 @@ XMLPUBVAR const unsigned char xmlIsPubidChar_tab[256]; XMLPUBFUN int xmlCharInRange(unsigned int val, const xmlChRangeGroup *group); - /** @endcond */ /** diff --git a/testapi.c b/testapi.c index 14fb2659..3c6f7bb4 100644 --- a/testapi.c +++ b/testapi.c @@ -95,7 +95,6 @@ main(int argc ATTRIBUTE_UNUSED, char **argv ATTRIBUTE_UNUSED) { xmlCharEncInFunc(NULL, NULL, NULL); xmlCharEncNewCustomHandler(NULL, 0, 0, 0, NULL, NULL, NULL); xmlCharEncOutFunc(NULL, NULL, NULL); - xmlCharInRange(0, NULL); xmlFree(xmlCharStrdup(NULL)); xmlFree(xmlCharStrndup(NULL, 0)); xmlCheckFilename(NULL); diff --git a/xmlunicode.c b/xmlunicode.c index 1826ac47..73914a69 100644 --- a/xmlunicode.c +++ b/xmlunicode.c @@ -5,9 +5,6 @@ * UCS description files of the Unicode Character Database * http://www.unicode.org/Public/4.0-Update1/UCD-4.0.1.html * using the genUnicode.py Python script. - * - * Generation date: Tue Mar 4 16:29:31 2025 - * Sources: Blocks-4.0.1.txt UnicodeData-4.0.1.txt */ #define IN_LIBXML