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 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 170 of file chvalid.c.
170 {
171 int low, high, mid;
174
175 if (rptr ==
NULL)
return(0);
178 return 0;
179 low = 0;
182 while (low <= high) {
183 mid = (low + high) / 2;
184 if ((
unsigned short)
val < sptr[mid].
low) {
185 high = mid - 1;
186 } else {
187 if ((
unsigned short)
val > sptr[mid].
high) {
188 low = mid + 1;
189 } else {
190 return 1;
191 }
192 }
193 }
194 } else {
196 return 0;
197 }
198 low = 0;
201 while (low <= high) {
202 mid = (low + high) / 2;
203 if (
val < lptr[mid].low) {
204 high = mid - 1;
205 } else {
206 if (
val > lptr[mid].high) {
207 low = mid + 1;
208 } else {
209 return 1;
210 }
211 }
212 }
213 }
214 return 0;
215}
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 228 of file chvalid.c.
228 {
230}
#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 243 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 258 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 273 of file chvalid.c.
273 {
275}
#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 288 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 303 of file chvalid.c.
303 {
305}
#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 318 of file chvalid.c.
318 {
320}
#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 333 of file chvalid.c.
333 {
335}
#define xmlIsPubidCharQ(c)
◆ xmlIsBaseCharGroup
◆ xmlIsCharGroup
◆ xmlIsCombiningGroup
◆ xmlIsDigitGroup
◆ xmlIsExtenderGroup
◆ xmlIsIdeographicGroup
◆ xmlIsPubidChar_tab