Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
libxml/chvalid.h@1:26f20484cbdc, 2016-08-25 (annotated)
- Committer:
- pcercuei
- Date:
- Thu Aug 25 10:07:34 2016 +0000
- Revision:
- 1:26f20484cbdc
- Parent:
- 0:03b5121a232e
Add config.h and dummy.c containing empty functions
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
pcercuei | 0:03b5121a232e | 1 | /* |
pcercuei | 0:03b5121a232e | 2 | * Summary: Unicode character range checking |
pcercuei | 0:03b5121a232e | 3 | * Description: this module exports interfaces for the character |
pcercuei | 0:03b5121a232e | 4 | * range validation APIs |
pcercuei | 0:03b5121a232e | 5 | * |
pcercuei | 0:03b5121a232e | 6 | * This file is automatically generated from the cvs source |
pcercuei | 0:03b5121a232e | 7 | * definition files using the genChRanges.py Python script |
pcercuei | 0:03b5121a232e | 8 | * |
pcercuei | 0:03b5121a232e | 9 | * Generation date: Mon Mar 27 11:09:48 2006 |
pcercuei | 0:03b5121a232e | 10 | * Sources: chvalid.def |
pcercuei | 0:03b5121a232e | 11 | * Author: William Brack <wbrack@mmm.com.hk> |
pcercuei | 0:03b5121a232e | 12 | */ |
pcercuei | 0:03b5121a232e | 13 | |
pcercuei | 0:03b5121a232e | 14 | #ifndef __XML_CHVALID_H__ |
pcercuei | 0:03b5121a232e | 15 | #define __XML_CHVALID_H__ |
pcercuei | 0:03b5121a232e | 16 | |
pcercuei | 0:03b5121a232e | 17 | #include <libxml/xmlversion.h> |
pcercuei | 0:03b5121a232e | 18 | #include <libxml/xmlstring.h> |
pcercuei | 0:03b5121a232e | 19 | |
pcercuei | 0:03b5121a232e | 20 | #ifdef __cplusplus |
pcercuei | 0:03b5121a232e | 21 | extern "C" { |
pcercuei | 0:03b5121a232e | 22 | #endif |
pcercuei | 0:03b5121a232e | 23 | |
pcercuei | 0:03b5121a232e | 24 | /* |
pcercuei | 0:03b5121a232e | 25 | * Define our typedefs and structures |
pcercuei | 0:03b5121a232e | 26 | * |
pcercuei | 0:03b5121a232e | 27 | */ |
pcercuei | 0:03b5121a232e | 28 | typedef struct _xmlChSRange xmlChSRange; |
pcercuei | 0:03b5121a232e | 29 | typedef xmlChSRange *xmlChSRangePtr; |
pcercuei | 0:03b5121a232e | 30 | struct _xmlChSRange { |
pcercuei | 0:03b5121a232e | 31 | unsigned short low; |
pcercuei | 0:03b5121a232e | 32 | unsigned short high; |
pcercuei | 0:03b5121a232e | 33 | }; |
pcercuei | 0:03b5121a232e | 34 | |
pcercuei | 0:03b5121a232e | 35 | typedef struct _xmlChLRange xmlChLRange; |
pcercuei | 0:03b5121a232e | 36 | typedef xmlChLRange *xmlChLRangePtr; |
pcercuei | 0:03b5121a232e | 37 | struct _xmlChLRange { |
pcercuei | 0:03b5121a232e | 38 | unsigned int low; |
pcercuei | 0:03b5121a232e | 39 | unsigned int high; |
pcercuei | 0:03b5121a232e | 40 | }; |
pcercuei | 0:03b5121a232e | 41 | |
pcercuei | 0:03b5121a232e | 42 | typedef struct _xmlChRangeGroup xmlChRangeGroup; |
pcercuei | 0:03b5121a232e | 43 | typedef xmlChRangeGroup *xmlChRangeGroupPtr; |
pcercuei | 0:03b5121a232e | 44 | struct _xmlChRangeGroup { |
pcercuei | 0:03b5121a232e | 45 | int nbShortRange; |
pcercuei | 0:03b5121a232e | 46 | int nbLongRange; |
pcercuei | 0:03b5121a232e | 47 | const xmlChSRange *shortRange; /* points to an array of ranges */ |
pcercuei | 0:03b5121a232e | 48 | const xmlChLRange *longRange; |
pcercuei | 0:03b5121a232e | 49 | }; |
pcercuei | 0:03b5121a232e | 50 | |
pcercuei | 0:03b5121a232e | 51 | /** |
pcercuei | 0:03b5121a232e | 52 | * Range checking routine |
pcercuei | 0:03b5121a232e | 53 | */ |
pcercuei | 0:03b5121a232e | 54 | XMLPUBFUN int XMLCALL |
pcercuei | 0:03b5121a232e | 55 | xmlCharInRange(unsigned int val, const xmlChRangeGroup *group); |
pcercuei | 0:03b5121a232e | 56 | |
pcercuei | 0:03b5121a232e | 57 | |
pcercuei | 0:03b5121a232e | 58 | /** |
pcercuei | 0:03b5121a232e | 59 | * xmlIsBaseChar_ch: |
pcercuei | 0:03b5121a232e | 60 | * @c: char to validate |
pcercuei | 0:03b5121a232e | 61 | * |
pcercuei | 0:03b5121a232e | 62 | * Automatically generated by genChRanges.py |
pcercuei | 0:03b5121a232e | 63 | */ |
pcercuei | 0:03b5121a232e | 64 | #define xmlIsBaseChar_ch(c) (((0x41 <= (c)) && ((c) <= 0x5a)) || \ |
pcercuei | 0:03b5121a232e | 65 | ((0x61 <= (c)) && ((c) <= 0x7a)) || \ |
pcercuei | 0:03b5121a232e | 66 | ((0xc0 <= (c)) && ((c) <= 0xd6)) || \ |
pcercuei | 0:03b5121a232e | 67 | ((0xd8 <= (c)) && ((c) <= 0xf6)) || \ |
pcercuei | 0:03b5121a232e | 68 | (0xf8 <= (c))) |
pcercuei | 0:03b5121a232e | 69 | |
pcercuei | 0:03b5121a232e | 70 | /** |
pcercuei | 0:03b5121a232e | 71 | * xmlIsBaseCharQ: |
pcercuei | 0:03b5121a232e | 72 | * @c: char to validate |
pcercuei | 0:03b5121a232e | 73 | * |
pcercuei | 0:03b5121a232e | 74 | * Automatically generated by genChRanges.py |
pcercuei | 0:03b5121a232e | 75 | */ |
pcercuei | 0:03b5121a232e | 76 | #define xmlIsBaseCharQ(c) (((c) < 0x100) ? \ |
pcercuei | 0:03b5121a232e | 77 | xmlIsBaseChar_ch((c)) : \ |
pcercuei | 0:03b5121a232e | 78 | xmlCharInRange((c), &xmlIsBaseCharGroup)) |
pcercuei | 0:03b5121a232e | 79 | |
pcercuei | 0:03b5121a232e | 80 | XMLPUBVAR const xmlChRangeGroup xmlIsBaseCharGroup; |
pcercuei | 0:03b5121a232e | 81 | |
pcercuei | 0:03b5121a232e | 82 | /** |
pcercuei | 0:03b5121a232e | 83 | * xmlIsBlank_ch: |
pcercuei | 0:03b5121a232e | 84 | * @c: char to validate |
pcercuei | 0:03b5121a232e | 85 | * |
pcercuei | 0:03b5121a232e | 86 | * Automatically generated by genChRanges.py |
pcercuei | 0:03b5121a232e | 87 | */ |
pcercuei | 0:03b5121a232e | 88 | #define xmlIsBlank_ch(c) (((c) == 0x20) || \ |
pcercuei | 0:03b5121a232e | 89 | ((0x9 <= (c)) && ((c) <= 0xa)) || \ |
pcercuei | 0:03b5121a232e | 90 | ((c) == 0xd)) |
pcercuei | 0:03b5121a232e | 91 | |
pcercuei | 0:03b5121a232e | 92 | /** |
pcercuei | 0:03b5121a232e | 93 | * xmlIsBlankQ: |
pcercuei | 0:03b5121a232e | 94 | * @c: char to validate |
pcercuei | 0:03b5121a232e | 95 | * |
pcercuei | 0:03b5121a232e | 96 | * Automatically generated by genChRanges.py |
pcercuei | 0:03b5121a232e | 97 | */ |
pcercuei | 0:03b5121a232e | 98 | #define xmlIsBlankQ(c) (((c) < 0x100) ? \ |
pcercuei | 0:03b5121a232e | 99 | xmlIsBlank_ch((c)) : 0) |
pcercuei | 0:03b5121a232e | 100 | |
pcercuei | 0:03b5121a232e | 101 | |
pcercuei | 0:03b5121a232e | 102 | /** |
pcercuei | 0:03b5121a232e | 103 | * xmlIsChar_ch: |
pcercuei | 0:03b5121a232e | 104 | * @c: char to validate |
pcercuei | 0:03b5121a232e | 105 | * |
pcercuei | 0:03b5121a232e | 106 | * Automatically generated by genChRanges.py |
pcercuei | 0:03b5121a232e | 107 | */ |
pcercuei | 0:03b5121a232e | 108 | #define xmlIsChar_ch(c) (((0x9 <= (c)) && ((c) <= 0xa)) || \ |
pcercuei | 0:03b5121a232e | 109 | ((c) == 0xd) || \ |
pcercuei | 0:03b5121a232e | 110 | (0x20 <= (c))) |
pcercuei | 0:03b5121a232e | 111 | |
pcercuei | 0:03b5121a232e | 112 | /** |
pcercuei | 0:03b5121a232e | 113 | * xmlIsCharQ: |
pcercuei | 0:03b5121a232e | 114 | * @c: char to validate |
pcercuei | 0:03b5121a232e | 115 | * |
pcercuei | 0:03b5121a232e | 116 | * Automatically generated by genChRanges.py |
pcercuei | 0:03b5121a232e | 117 | */ |
pcercuei | 0:03b5121a232e | 118 | #define xmlIsCharQ(c) (((c) < 0x100) ? \ |
pcercuei | 0:03b5121a232e | 119 | xmlIsChar_ch((c)) :\ |
pcercuei | 0:03b5121a232e | 120 | (((0x100 <= (c)) && ((c) <= 0xd7ff)) || \ |
pcercuei | 0:03b5121a232e | 121 | ((0xe000 <= (c)) && ((c) <= 0xfffd)) || \ |
pcercuei | 0:03b5121a232e | 122 | ((0x10000 <= (c)) && ((c) <= 0x10ffff)))) |
pcercuei | 0:03b5121a232e | 123 | |
pcercuei | 0:03b5121a232e | 124 | XMLPUBVAR const xmlChRangeGroup xmlIsCharGroup; |
pcercuei | 0:03b5121a232e | 125 | |
pcercuei | 0:03b5121a232e | 126 | /** |
pcercuei | 0:03b5121a232e | 127 | * xmlIsCombiningQ: |
pcercuei | 0:03b5121a232e | 128 | * @c: char to validate |
pcercuei | 0:03b5121a232e | 129 | * |
pcercuei | 0:03b5121a232e | 130 | * Automatically generated by genChRanges.py |
pcercuei | 0:03b5121a232e | 131 | */ |
pcercuei | 0:03b5121a232e | 132 | #define xmlIsCombiningQ(c) (((c) < 0x100) ? \ |
pcercuei | 0:03b5121a232e | 133 | 0 : \ |
pcercuei | 0:03b5121a232e | 134 | xmlCharInRange((c), &xmlIsCombiningGroup)) |
pcercuei | 0:03b5121a232e | 135 | |
pcercuei | 0:03b5121a232e | 136 | XMLPUBVAR const xmlChRangeGroup xmlIsCombiningGroup; |
pcercuei | 0:03b5121a232e | 137 | |
pcercuei | 0:03b5121a232e | 138 | /** |
pcercuei | 0:03b5121a232e | 139 | * xmlIsDigit_ch: |
pcercuei | 0:03b5121a232e | 140 | * @c: char to validate |
pcercuei | 0:03b5121a232e | 141 | * |
pcercuei | 0:03b5121a232e | 142 | * Automatically generated by genChRanges.py |
pcercuei | 0:03b5121a232e | 143 | */ |
pcercuei | 0:03b5121a232e | 144 | #define xmlIsDigit_ch(c) (((0x30 <= (c)) && ((c) <= 0x39))) |
pcercuei | 0:03b5121a232e | 145 | |
pcercuei | 0:03b5121a232e | 146 | /** |
pcercuei | 0:03b5121a232e | 147 | * xmlIsDigitQ: |
pcercuei | 0:03b5121a232e | 148 | * @c: char to validate |
pcercuei | 0:03b5121a232e | 149 | * |
pcercuei | 0:03b5121a232e | 150 | * Automatically generated by genChRanges.py |
pcercuei | 0:03b5121a232e | 151 | */ |
pcercuei | 0:03b5121a232e | 152 | #define xmlIsDigitQ(c) (((c) < 0x100) ? \ |
pcercuei | 0:03b5121a232e | 153 | xmlIsDigit_ch((c)) : \ |
pcercuei | 0:03b5121a232e | 154 | xmlCharInRange((c), &xmlIsDigitGroup)) |
pcercuei | 0:03b5121a232e | 155 | |
pcercuei | 0:03b5121a232e | 156 | XMLPUBVAR const xmlChRangeGroup xmlIsDigitGroup; |
pcercuei | 0:03b5121a232e | 157 | |
pcercuei | 0:03b5121a232e | 158 | /** |
pcercuei | 0:03b5121a232e | 159 | * xmlIsExtender_ch: |
pcercuei | 0:03b5121a232e | 160 | * @c: char to validate |
pcercuei | 0:03b5121a232e | 161 | * |
pcercuei | 0:03b5121a232e | 162 | * Automatically generated by genChRanges.py |
pcercuei | 0:03b5121a232e | 163 | */ |
pcercuei | 0:03b5121a232e | 164 | #define xmlIsExtender_ch(c) (((c) == 0xb7)) |
pcercuei | 0:03b5121a232e | 165 | |
pcercuei | 0:03b5121a232e | 166 | /** |
pcercuei | 0:03b5121a232e | 167 | * xmlIsExtenderQ: |
pcercuei | 0:03b5121a232e | 168 | * @c: char to validate |
pcercuei | 0:03b5121a232e | 169 | * |
pcercuei | 0:03b5121a232e | 170 | * Automatically generated by genChRanges.py |
pcercuei | 0:03b5121a232e | 171 | */ |
pcercuei | 0:03b5121a232e | 172 | #define xmlIsExtenderQ(c) (((c) < 0x100) ? \ |
pcercuei | 0:03b5121a232e | 173 | xmlIsExtender_ch((c)) : \ |
pcercuei | 0:03b5121a232e | 174 | xmlCharInRange((c), &xmlIsExtenderGroup)) |
pcercuei | 0:03b5121a232e | 175 | |
pcercuei | 0:03b5121a232e | 176 | XMLPUBVAR const xmlChRangeGroup xmlIsExtenderGroup; |
pcercuei | 0:03b5121a232e | 177 | |
pcercuei | 0:03b5121a232e | 178 | /** |
pcercuei | 0:03b5121a232e | 179 | * xmlIsIdeographicQ: |
pcercuei | 0:03b5121a232e | 180 | * @c: char to validate |
pcercuei | 0:03b5121a232e | 181 | * |
pcercuei | 0:03b5121a232e | 182 | * Automatically generated by genChRanges.py |
pcercuei | 0:03b5121a232e | 183 | */ |
pcercuei | 0:03b5121a232e | 184 | #define xmlIsIdeographicQ(c) (((c) < 0x100) ? \ |
pcercuei | 0:03b5121a232e | 185 | 0 :\ |
pcercuei | 0:03b5121a232e | 186 | (((0x4e00 <= (c)) && ((c) <= 0x9fa5)) || \ |
pcercuei | 0:03b5121a232e | 187 | ((c) == 0x3007) || \ |
pcercuei | 0:03b5121a232e | 188 | ((0x3021 <= (c)) && ((c) <= 0x3029)))) |
pcercuei | 0:03b5121a232e | 189 | |
pcercuei | 0:03b5121a232e | 190 | XMLPUBVAR const xmlChRangeGroup xmlIsIdeographicGroup; |
pcercuei | 0:03b5121a232e | 191 | XMLPUBVAR const unsigned char xmlIsPubidChar_tab[256]; |
pcercuei | 0:03b5121a232e | 192 | |
pcercuei | 0:03b5121a232e | 193 | /** |
pcercuei | 0:03b5121a232e | 194 | * xmlIsPubidChar_ch: |
pcercuei | 0:03b5121a232e | 195 | * @c: char to validate |
pcercuei | 0:03b5121a232e | 196 | * |
pcercuei | 0:03b5121a232e | 197 | * Automatically generated by genChRanges.py |
pcercuei | 0:03b5121a232e | 198 | */ |
pcercuei | 0:03b5121a232e | 199 | #define xmlIsPubidChar_ch(c) (xmlIsPubidChar_tab[(c)]) |
pcercuei | 0:03b5121a232e | 200 | |
pcercuei | 0:03b5121a232e | 201 | /** |
pcercuei | 0:03b5121a232e | 202 | * xmlIsPubidCharQ: |
pcercuei | 0:03b5121a232e | 203 | * @c: char to validate |
pcercuei | 0:03b5121a232e | 204 | * |
pcercuei | 0:03b5121a232e | 205 | * Automatically generated by genChRanges.py |
pcercuei | 0:03b5121a232e | 206 | */ |
pcercuei | 0:03b5121a232e | 207 | #define xmlIsPubidCharQ(c) (((c) < 0x100) ? \ |
pcercuei | 0:03b5121a232e | 208 | xmlIsPubidChar_ch((c)) : 0) |
pcercuei | 0:03b5121a232e | 209 | |
pcercuei | 0:03b5121a232e | 210 | XMLPUBFUN int XMLCALL |
pcercuei | 0:03b5121a232e | 211 | xmlIsBaseChar(unsigned int ch); |
pcercuei | 0:03b5121a232e | 212 | XMLPUBFUN int XMLCALL |
pcercuei | 0:03b5121a232e | 213 | xmlIsBlank(unsigned int ch); |
pcercuei | 0:03b5121a232e | 214 | XMLPUBFUN int XMLCALL |
pcercuei | 0:03b5121a232e | 215 | xmlIsChar(unsigned int ch); |
pcercuei | 0:03b5121a232e | 216 | XMLPUBFUN int XMLCALL |
pcercuei | 0:03b5121a232e | 217 | xmlIsCombining(unsigned int ch); |
pcercuei | 0:03b5121a232e | 218 | XMLPUBFUN int XMLCALL |
pcercuei | 0:03b5121a232e | 219 | xmlIsDigit(unsigned int ch); |
pcercuei | 0:03b5121a232e | 220 | XMLPUBFUN int XMLCALL |
pcercuei | 0:03b5121a232e | 221 | xmlIsExtender(unsigned int ch); |
pcercuei | 0:03b5121a232e | 222 | XMLPUBFUN int XMLCALL |
pcercuei | 0:03b5121a232e | 223 | xmlIsIdeographic(unsigned int ch); |
pcercuei | 0:03b5121a232e | 224 | XMLPUBFUN int XMLCALL |
pcercuei | 0:03b5121a232e | 225 | xmlIsPubidChar(unsigned int ch); |
pcercuei | 0:03b5121a232e | 226 | |
pcercuei | 0:03b5121a232e | 227 | #ifdef __cplusplus |
pcercuei | 0:03b5121a232e | 228 | } |
pcercuei | 0:03b5121a232e | 229 | #endif |
pcercuei | 0:03b5121a232e | 230 | #endif /* __XML_CHVALID_H__ */ |
pcercuei | 0:03b5121a232e | 231 |