mirror of
https://gitlab.gnome.org/GNOME/libxml2.git
synced 2025-10-26 00:37:43 +03:00
include: Make most IS_* macros private
Macros like IS_DIGIT or IS_LETTER severely pollute the C namespace.
This commit is contained in:
@@ -46,6 +46,20 @@
|
||||
(((ctxt)->input->entity != NULL) && \
|
||||
((ctxt)->input->entity->etype == XML_EXTERNAL_PARAMETER_ENTITY)))
|
||||
|
||||
#define IS_BYTE_CHAR(c) xmlIsChar_ch(c)
|
||||
#define IS_CHAR(c) xmlIsCharQ(c)
|
||||
#define IS_BASECHAR(c) xmlIsBaseCharQ(c)
|
||||
#define IS_DIGIT(c) xmlIsDigitQ(c)
|
||||
#define IS_COMBINING(c) xmlIsCombiningQ(c)
|
||||
#define IS_EXTENDER(c) xmlIsExtenderQ(c)
|
||||
#define IS_IDEOGRAPHIC(c) xmlIsIdeographicQ(c)
|
||||
#define IS_LETTER(c) (IS_BASECHAR(c) || IS_IDEOGRAPHIC(c))
|
||||
#define IS_ASCII_LETTER(c) ((0x61 <= ((c) | 0x20)) && \
|
||||
(((c) | 0x20) <= 0x7a))
|
||||
#define IS_ASCII_DIGIT(c) ((0x30 <= (c)) && ((c) <= 0x39))
|
||||
#define IS_PUBIDCHAR(c) xmlIsPubidCharQ(c)
|
||||
#define IS_PUBIDCHAR_CH(c) xmlIsPubidChar_ch(c)
|
||||
|
||||
struct _xmlAttrHashBucket {
|
||||
int index;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user