1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
/**
* @file
*
* Character validation API (libxml-rs).
*
* Headers mirror upstream libxml2 2.15.3 chvalid.h: the character-class
* tables, the range check and the deprecated xmlIs* family.
*/
#ifndef __XML_CHVALID_H__
#define __XML_CHVALID_H__
#include <libxml/xmlversion.h>
#ifdef __cplusplus
extern "C" {
#endif
/**
* A range of valid characters.
*/
typedef struct _xmlChSRange xmlChSRange;
typedef xmlChSRange *xmlChSRangePtr;
struct _xmlChSRange {
unsigned short low;
unsigned short high;
};
typedef struct _xmlChLRange xmlChLRange;
typedef xmlChLRange *xmlChLRangePtr;
struct _xmlChLRange {
unsigned int low;
unsigned int high;
};
typedef struct _xmlChRangeGroup xmlChRangeGroup;
typedef xmlChRangeGroup *xmlChRangeGroupPtr;
struct _xmlChRangeGroup {
int nbShortRange;
int nbLongRange;
const xmlChSRange *shortRange;
const xmlChLRange *longRange;
};
XMLPUBVAR const xmlChRangeGroup xmlIsBaseCharGroup;
XMLPUBVAR const xmlChRangeGroup xmlIsCharGroup;
XMLPUBVAR const xmlChRangeGroup xmlIsCombiningGroup;
XMLPUBVAR const xmlChRangeGroup xmlIsDigitGroup;
XMLPUBVAR const xmlChRangeGroup xmlIsExtenderGroup;
XMLPUBVAR const xmlChRangeGroup xmlIsIdeographicGroup;
XMLPUBVAR const unsigned char xmlIsPubidChar_tab[256];
/**
* Range checking routine.
*/
XMLPUBFUN int xmlCharInRange(unsigned int val, const xmlChRangeGroup *group);
XMLPUBFUN int xmlIsBaseChar(unsigned int ch);
XMLPUBFUN int xmlIsBlank(unsigned int ch);
XMLPUBFUN int xmlIsChar(unsigned int ch);
XMLPUBFUN int xmlIsCombining(unsigned int ch);
XMLPUBFUN int xmlIsDigit(unsigned int ch);
XMLPUBFUN int xmlIsExtender(unsigned int ch);
XMLPUBFUN int xmlIsIdeographic(unsigned int ch);
XMLPUBFUN int xmlIsPubidChar(unsigned int ch);
#ifdef __cplusplus
}
#endif
#endif /* __XML_CHVALID_H__ */