Go to the source code of this file.
◆ xmlIsBaseChar_ch
Value: (((0x41 <= (
c)) && ((
c) <= 0x5a)) || \
((0x61 <= (
c)) && ((
c) <= 0x7a)) || \
((0xc0 <= (
c)) && ((
c) <= 0xd6)) || \
((0xd8 <= (
c)) && ((
c) <= 0xf6)) || \
xmlIsBaseChar_ch:
: char to validate
Automatically generated by genChRanges.py
Definition at line 64 of file chvalid.h.
◆ xmlIsBaseCharQ
Value:
xmlIsBaseChar_ch((
c)) : \
XMLPUBVAR const xmlChRangeGroup xmlIsBaseCharGroup
XMLPUBFUN int XMLCALL xmlCharInRange(unsigned int val, const xmlChRangeGroup *group)
xmlIsBaseCharQ:
: char to validate
Automatically generated by genChRanges.py
Definition at line 76 of file chvalid.h.
◆ xmlIsBlank_ch
Value:
((0x9 <= (
c)) && ((
c) <= 0xa)) || \
xmlIsBlank_ch:
: char to validate
Automatically generated by genChRanges.py
Definition at line 88 of file chvalid.h.
◆ xmlIsBlankQ
Value:xmlIsBlankQ:
: char to validate
Automatically generated by genChRanges.py
Definition at line 98 of file chvalid.h.
◆ xmlIsChar_ch
Value: (((0x9 <= (
c)) && ((
c) <= 0xa)) || \
xmlIsChar_ch:
: char to validate
Automatically generated by genChRanges.py
Definition at line 108 of file chvalid.h.
◆ xmlIsCharQ
Value:
(((0x100 <= (
c)) && ((
c) <= 0xd7ff)) || \
((0xe000 <= (
c)) && ((
c) <= 0xfffd)) || \
((0x10000 <= (
c)) && ((
c) <= 0x10ffff))))
xmlIsCharQ:
: char to validate
Automatically generated by genChRanges.py
Definition at line 118 of file chvalid.h.
◆ xmlIsCombiningQ
Value:
0 : \
XMLPUBVAR const xmlChRangeGroup xmlIsCombiningGroup
xmlIsCombiningQ:
: char to validate
Automatically generated by genChRanges.py
Definition at line 132 of file chvalid.h.
◆ xmlIsDigit_ch
#define xmlIsDigit_ch |
( |
|
c | ) |
(((0x30 <= (c)) && ((c) <= 0x39))) |
xmlIsDigit_ch:
: char to validate
Automatically generated by genChRanges.py
Definition at line 144 of file chvalid.h.
◆ xmlIsDigitQ
Value:
XMLPUBVAR const xmlChRangeGroup xmlIsDigitGroup
xmlIsDigitQ:
: char to validate
Automatically generated by genChRanges.py
Definition at line 152 of file chvalid.h.
◆ xmlIsExtender_ch
#define xmlIsExtender_ch |
( |
|
c | ) |
(((c) == 0xb7)) |
xmlIsExtender_ch:
: char to validate
Automatically generated by genChRanges.py
Definition at line 164 of file chvalid.h.
◆ xmlIsExtenderQ
Value:
xmlIsExtender_ch((
c)) : \
XMLPUBVAR const xmlChRangeGroup xmlIsExtenderGroup
xmlIsExtenderQ:
: char to validate
Automatically generated by genChRanges.py
Definition at line 172 of file chvalid.h.
◆ xmlIsIdeographicQ
Value:
0 :\
(((0x4e00 <= (
c)) && ((
c) <= 0x9fa5)) || \
((0x3021 <= (
c)) && ((
c) <= 0x3029))))
xmlIsIdeographicQ:
: char to validate
Automatically generated by genChRanges.py
Definition at line 184 of file chvalid.h.
◆ xmlIsPubidChar_ch
xmlIsPubidChar_ch:
: char to validate
Automatically generated by genChRanges.py
Definition at line 199 of file chvalid.h.
◆ xmlIsPubidCharQ
Value:
xmlIsPubidChar_ch((
c)) : 0)
xmlIsPubidCharQ:
: char to validate
Automatically generated by genChRanges.py
Definition at line 207 of file chvalid.h.
◆ xmlChLRange
◆ xmlChLRangePtr
◆ xmlChRangeGroup
◆ xmlChRangeGroupPtr
◆ xmlChSRange
◆ xmlChSRangePtr
◆ xmlCharInRange()
Range checking routine
xmlCharInRange: @val: character to be validated @rptr: pointer to range to be used to validate
Does a binary search of the range table to determine if char is valid
Returns: true if character valid, false otherwise
Definition at line 168 of file chvalid.c.
168 {
169 int low, high, mid;
172
173 if (rptr ==
NULL)
return(0);
176 return 0;
177 low = 0;
180 while (low <= high) {
181 mid = (low + high) / 2;
182 if ((
unsigned short)
val < sptr[mid].
low) {
183 high = mid - 1;
184 } else {
185 if ((
unsigned short)
val > sptr[mid].
high) {
186 low = mid + 1;
187 } else {
188 return 1;
189 }
190 }
191 }
192 } else {
194 return 0;
195 }
196 low = 0;
199 while (low <= high) {
200 mid = (low + high) / 2;
201 if (
val < lptr[mid].low) {
202 high = mid - 1;
203 } else {
204 if (
val > lptr[mid].high) {
205 low = mid + 1;
206 } else {
207 return 1;
208 }
209 }
210 }
211 }
212 return 0;
213}
const xmlChLRange * longRange
const xmlChSRange * shortRange
◆ xmlIsBaseChar()
xmlIsBaseChar: @ch: character to validate
This function is DEPRECATED. Use xmlIsBaseChar_ch or xmlIsBaseCharQ instead
Returns true if argument valid, false otherwise
Definition at line 226 of file chvalid.c.
226 {
228}
#define xmlIsBaseCharQ(c)
◆ xmlIsBlank()
xmlIsBlank: @ch: character to validate
This function is DEPRECATED. Use xmlIsBlank_ch or xmlIsBlankQ instead
Returns true if argument valid, false otherwise
Definition at line 241 of file chvalid.c.
◆ xmlIsChar()
xmlIsChar: @ch: character to validate
This function is DEPRECATED. Use xmlIsChar_ch or xmlIsCharQ instead
Returns true if argument valid, false otherwise
Definition at line 256 of file chvalid.c.
◆ xmlIsCombining()
xmlIsCombining: @ch: character to validate
This function is DEPRECATED. Use xmlIsCombiningQ instead
Returns true if argument valid, false otherwise
Definition at line 271 of file chvalid.c.
271 {
273}
#define xmlIsCombiningQ(c)
◆ xmlIsDigit()
xmlIsDigit: @ch: character to validate
This function is DEPRECATED. Use xmlIsDigit_ch or xmlIsDigitQ instead
Returns true if argument valid, false otherwise
Definition at line 286 of file chvalid.c.
◆ xmlIsExtender()
xmlIsExtender: @ch: character to validate
This function is DEPRECATED. Use xmlIsExtender_ch or xmlIsExtenderQ instead
Returns true if argument valid, false otherwise
Definition at line 301 of file chvalid.c.
301 {
303}
#define xmlIsExtenderQ(c)
◆ xmlIsIdeographic()
xmlIsIdeographic: @ch: character to validate
This function is DEPRECATED. Use xmlIsIdeographicQ instead
Returns true if argument valid, false otherwise
Definition at line 316 of file chvalid.c.
316 {
318}
#define xmlIsIdeographicQ(c)
◆ xmlIsPubidChar()
xmlIsPubidChar: @ch: character to validate
This function is DEPRECATED. Use xmlIsPubidChar_ch or xmlIsPubidCharQ instead
Returns true if argument valid, false otherwise
Definition at line 331 of file chvalid.c.
331 {
333}
#define xmlIsPubidCharQ(c)
◆ xmlIsBaseCharGroup
◆ xmlIsCharGroup
◆ xmlIsCombiningGroup
◆ xmlIsDigitGroup
◆ xmlIsExtenderGroup
◆ xmlIsIdeographicGroup
◆ xmlIsPubidChar_tab