diff options
author | Mike Hommey <mh@glandium.org> | 2004-10-28 09:07:41 +0000 |
---|---|---|
committer | Mike Hommey <mh@glandium.org> | 2004-10-28 09:07:41 +0000 |
commit | 9705f1a5e858108d21a0128556f42b25d16833cd (patch) | |
tree | f819e7482d433f8bf5da005695c79189dd5ce527 /include/libxml/parserInternals.h | |
parent | 0732be88d054db33fa0ca479eab9988c8e6be42e (diff) | |
download | libxml2-upstream/2.6.15.tar.gz |
Load /tmp/tmp.SgII7T/libxml2-2.6.15 intoupstream/2.6.15
packages/libxml2/branches/upstream/current.
Diffstat (limited to 'include/libxml/parserInternals.h')
-rw-r--r-- | include/libxml/parserInternals.h | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/include/libxml/parserInternals.h b/include/libxml/parserInternals.h index 57c4b17..14d4e4d 100644 --- a/include/libxml/parserInternals.h +++ b/include/libxml/parserInternals.h @@ -197,6 +197,26 @@ XMLPUBVAR unsigned int xmlParserMaxDepth; * */ #define IS_LETTER_CH(c) xmlIsBaseChar_ch(c) + +/** + * IS_ASCII_LETTER(c) + * @c: an xmlChar value + * + * Macro to check [a-zA-Z] + * + */ +#define IS_ASCII_LETTER(c) (((0x41 <= (c)) && ((c) <= 0x5a)) || \ + ((0x61 <= (c)) && ((c) <= 0x7a))) + +/** + * IS_ASCII_DIGIT(c) + * @c: an xmlChar value + * + * Macro to check [0-9] + * + */ +#define IS_ASCII_DIGIT(c) ((0x30 <= (c)) && ((c) <= 0x39)) + /** * IS_PUBIDCHAR: * @c: an UNICODE value (int) |