1
0
mirror of https://gitlab.gnome.org/GNOME/libxml2.git synced 2025-07-29 11:41:22 +03:00

chvalid: Mark functions as deprecated

This commit is contained in:
Nick Wellnhofer
2025-05-16 21:18:16 +02:00
parent 954aae907d
commit 210f5a3746
3 changed files with 24 additions and 16 deletions

View File

@ -78,8 +78,7 @@ xmlCharInRange (unsigned int val, const xmlChRangeGroup *rptr) {
/**
* This function is DEPRECATED.
* Use xmlIsBaseChar_ch() or xmlIsBaseCharQ() instead
* @deprecated Use xmlIsBaseChar_ch() or xmlIsBaseCharQ().
*
* @param ch character to validate
* @returns true if argument valid, false otherwise
@ -91,8 +90,7 @@ xmlIsBaseChar(unsigned int ch) {
/**
* This function is DEPRECATED.
* Use xmlIsBlank_ch() or xmlIsBlankQ() instead
* @deprecated Use xmlIsBlank_ch() or xmlIsBlankQ().
*
* @param ch character to validate
* @returns true if argument valid, false otherwise
@ -104,8 +102,7 @@ xmlIsBlank(unsigned int ch) {
/**
* This function is DEPRECATED.
* Use xmlIsChar_ch() or xmlIsCharQ() instead
* @deprecated Use xmlIsChar_ch() or xmlIsCharQ().
*
* @param ch character to validate
* @returns true if argument valid, false otherwise
@ -117,8 +114,7 @@ xmlIsChar(unsigned int ch) {
/**
* This function is DEPRECATED.
* Use xmlIsCombiningQ() instead
* @deprecated Use xmlIsCombiningQ().
*
* @param ch character to validate
* @returns true if argument valid, false otherwise
@ -130,8 +126,7 @@ xmlIsCombining(unsigned int ch) {
/**
* This function is DEPRECATED.
* Use xmlIsDigit_ch() or xmlIsDigitQ() instead
* @deprecated Use xmlIsDigit_ch() or xmlIsDigitQ().
*
* @param ch character to validate
* @returns true if argument valid, false otherwise
@ -143,8 +138,7 @@ xmlIsDigit(unsigned int ch) {
/**
* This function is DEPRECATED.
* Use xmlIsExtender_ch() or xmlIsExtenderQ() instead
* @deprecated Use xmlIsExtender_ch() or xmlIsExtenderQ().
*
* @param ch character to validate
* @returns true if argument valid, false otherwise
@ -156,8 +150,7 @@ xmlIsExtender(unsigned int ch) {
/**
* This function is DEPRECATED.
* Use xmlIsIdeographicQ() instead
* @deprecated Use xmlIsIdeographicQ().
*
* @param ch character to validate
* @returns true if argument valid, false otherwise
@ -169,8 +162,7 @@ xmlIsIdeographic(unsigned int ch) {
/**
* This function is DEPRECATED.
* Use xmlIsPubidChar_ch() or xmlIsPubidCharQ() instead
* @deprecated Use xmlIsPubidChar_ch() or xmlIsPubidCharQ().
*
* @param ch character to validate
* @returns true if argument valid, false otherwise

View File

@ -187,20 +187,28 @@ XMLPUBFUN int
#define xmlIsPubidCharQ(c) (((c) < 0x100) ? \
xmlIsPubidChar_ch((c)) : 0)
XML_DEPRECATED
XMLPUBFUN int
xmlIsBaseChar(unsigned int ch);
XML_DEPRECATED
XMLPUBFUN int
xmlIsBlank(unsigned int ch);
XML_DEPRECATED
XMLPUBFUN int
xmlIsChar(unsigned int ch);
XML_DEPRECATED
XMLPUBFUN int
xmlIsCombining(unsigned int ch);
XML_DEPRECATED
XMLPUBFUN int
xmlIsDigit(unsigned int ch);
XML_DEPRECATED
XMLPUBFUN int
xmlIsExtender(unsigned int ch);
XML_DEPRECATED
XMLPUBFUN int
xmlIsIdeographic(unsigned int ch);
XML_DEPRECATED
XMLPUBFUN int
xmlIsPubidChar(unsigned int ch);

View File

@ -597,7 +597,15 @@ deprecated_funcs = {
'xmlInitializeDict': True,
'xmlIOFTPMatch': True,
'xmlIOHTTPMatch': True,
'xmlIsBaseChar': True,
'xmlIsBlank': True,
'xmlIsChar': True,
'xmlIsCombining': True,
'xmlIsDigit': True,
'xmlIsExtender': True,
'xmlIsIdeographic': True,
'xmlIsLetter': True,
'xmlIsPubidChar': True,
'xmlIsRef': True,
'xmlKeepBlanksDefault': True,
'xmlLineNumbersDefault': True,